diff options
author | наб <[email protected]> | 2021-12-12 15:20:26 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-23 09:36:12 -0800 |
commit | da5f5ec508a817ba6750bfdb8f245675662b9701 (patch) | |
tree | e2c692afee09bc1cd3dd58bdd37930371712de85 /lib | |
parent | 42aaf0e7c4b9cf0fe9c18d218f291f12dd5b26a2 (diff) |
libspl: kmem.h: mark unused kmem_*() macro arguments used
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12844
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libspl/include/sys/kmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libspl/include/sys/kmem.h b/lib/libspl/include/sys/kmem.h index 83d47565a..06c614e51 100644 --- a/lib/libspl/include/sys/kmem.h +++ b/lib/libspl/include/sys/kmem.h @@ -35,8 +35,8 @@ extern "C" { #define KM_SLEEP 0x00000000 /* same as KM_SLEEP */ #define KM_NOSLEEP 0x00000001 /* same as KM_NOSLEEP */ -#define kmem_alloc(size, flags) malloc(size) -#define kmem_free(ptr, size) free(ptr) +#define kmem_alloc(size, flags) ((void) sizeof (flags), malloc(size)) +#define kmem_free(ptr, size) ((void) sizeof (size), free(ptr)) #ifdef __cplusplus } |