uapi: stddef.h: Fix header guard location
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 12 Sep 2023 16:23:21 +0000 (19:23 +0300)
committerKees Cook <keescook@chromium.org>
Thu, 14 Sep 2023 03:08:52 +0000 (20:08 -0700)
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>
include/uapi/linux/stddef.h

index 7c3fc39..c027b20 100644 (file)
@@ -44,8 +44,9 @@
                struct { } __empty_ ## NAME; \
                TYPE NAME[]; \
        }
-#endif
 
 #ifndef __counted_by
 #define __counted_by(m)
 #endif
+
+#endif /* _UAPI_LINUX_STDDEF_H */