summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2023-09-12 19:23:21 +0300
committerKees Cook <keescook@chromium.org>2023-09-14 06:08:52 +0300
commit531108ec5b5cd45ec6272a6115e73275baef7d22 (patch)
treeb59d6622a9433e98da2ca48c296819e6757492b4 /include/uapi
parent5f536ac6a5a7b67351e4e5ae4f9e1e57d31268e6 (diff)
downloadlinux-531108ec5b5cd45ec6272a6115e73275baef7d22.tar.xz
uapi: stddef.h: Fix header guard location
The #endif for the header guard wasn't at the end of the header. This was harmless since the define that escaped was already testing for its own redefinition. Regardless, move the #endif to the correct place. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Fixes: c8248faf3ca2 ("Compiler Attributes: counted_by: Adjust name and identifier expansion") Link: https://lore.kernel.org/r/b1f5081e-339d-421d-81b2-cbb94e1f6f5f@p183 Co-developed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/stddef.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h
index 7c3fc3980881..c027b2070d79 100644
--- a/include/uapi/linux/stddef.h
+++ b/include/uapi/linux/stddef.h
@@ -44,8 +44,9 @@
struct { } __empty_ ## NAME; \
TYPE NAME[]; \
}
-#endif
#ifndef __counted_by
#define __counted_by(m)
#endif
+
+#endif /* _UAPI_LINUX_STDDEF_H */