]> git.sesse.net Git - bcachefs-tools-debian/commit
bcachefs-tools: Guard the __struct_group() #define in kernel.h
authorChris Webb <chris@arachsys.com>
Sat, 9 Dec 2023 14:15:08 +0000 (14:15 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Dec 2023 04:28:58 +0000 (23:28 -0500)
commit0d401928b876d75ea6f85a4e305f945d946adde4
tree32984a0e8417c0ae2c8ba88b3bce12d3fbb37b5f
parent872cd437e7b5a15c928e094710a7022184ab0217
bcachefs-tools: Guard the __struct_group() #define in kernel.h

Our include/linux/byteorder.h uses the system <asm/byteorder.h>
because we don't provide our own in include/asm. This then pulls in
system <linux/stddef.h> which defines __struct_group. That definition
collides with the unconditional #define __struct_group in our local
include/linux/kernel.h, provoking preprocessor warnings.

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/kernel.h