Commit 531108ec authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Kees Cook

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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Fixes: c8248faf ("Compiler Attributes: counted_by: Adjust name and identifier expansion")
Link: https://lore.kernel.org/r/b1f5081e-339d-421d-81b2-cbb94e1f6f5f@p183Co-developed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 5f536ac6
...@@ -44,8 +44,9 @@ ...@@ -44,8 +44,9 @@
struct { } __empty_ ## NAME; \ struct { } __empty_ ## NAME; \
TYPE NAME[]; \ TYPE NAME[]; \
} }
#endif
#ifndef __counted_by #ifndef __counted_by
#define __counted_by(m) #define __counted_by(m)
#endif #endif
#endif /* _UAPI_LINUX_STDDEF_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment