Skip to content

Commit 531108e

Browse files
Alexey Dobriyankees
authored andcommitted
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: c8248fa ("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>
1 parent 5f536ac commit 531108e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/uapi/linux/stddef.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
struct { } __empty_ ## NAME; \
4545
TYPE NAME[]; \
4646
}
47-
#endif
4847

4948
#ifndef __counted_by
5049
#define __counted_by(m)
5150
#endif
51+
52+
#endif /* _UAPI_LINUX_STDDEF_H */

0 commit comments

Comments
 (0)