Whamcloud - gitweb
e2fsck: use real functions for kernel slab functions
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:18 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
commit013e5d86db02957d840d9fd331a677218dc693df
tree89c81daa4aa50f2e67d113c9ff5248c97d0bc07f
parent1e2c0e71688eca764d63f7e73a1f2fa5732e6f77
e2fsck: use real functions for kernel slab functions

The macros that e2fsck uses to implement kmalloc et al. use only some of
their arguments, so unlike standard function calls, they can cause
compiler warnings like:

./../e2fsck/revoke.c:141:8: warning: variable 'gfp_mask' set but not used [-Wunused-but-set-variable]

Fix this by providing a proper definition for each function, making sure
to match the function prototypes used in the kernel.

Remove the kmem_cache_t typedef, as it doesn't exist in the kernel.

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