]> git.baikalelectronics.ru Git - kernel.git/commit
uapi/linux/stddef.h: Add include guards
authorTadeusz Struk <tadeusz.struk@linaro.org>
Tue, 29 Mar 2022 17:12:52 +0000 (10:12 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 31 Mar 2022 20:04:44 +0000 (13:04 -0700)
commitc1c0c42c7a3ed1e7fbdf02c775ceba747800d516
treed5abd5325aa4844dffa598b3ee4f1a7922151199
parent964fd4623c099cfc2bc66ed137b6f2bc418575b6
uapi/linux/stddef.h: Add include guards

Add include guard wrapper define to uapi/linux/stddef.h to prevent macro
redefinition errors when stddef.h is included more than once. This was not
needed before since the only contents already used a redefinition test.

Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Link: https://lore.kernel.org/r/20220329171252.57279-1-tadeusz.struk@linaro.org
Fixes: 968d917838e5 ("stddef: Introduce struct_group() helper macro")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
include/uapi/linux/stddef.h