Whamcloud - gitweb
e2fsck: double cast a pointer to suppress a bogus compiler warning in kfree()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:35:12 +0000 (15:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:46:45 +0000 (15:46 -0500)
commitd6ed24794e408a51cee2429841cc452323da4af8
tree64df7fc4bc423172ad494f46a42fd682e46ed8af
parent4d91d64b5a97a27b9e5fbc6cff11ca69ea887cf6
e2fsck: double cast a pointer to suppress a bogus compiler warning in kfree()

The C standard is wrong[1] with respect to the function signature of
free(), while the kernel's kfree() is correct.  Unfortunately, this
leads to compiler warnings.

Sayeth Dennis Ritchie: "Noalias must go.  This is non-negotiable"[2].
Noalias went.  The confusion around const, alas, still remains.

[1] https://yarchive.net/comp/const.html
[2] https://www.lysator.liu.se/c/dmr-on-noalias.html

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/jfs_user.h