Skip to content

Commit

Permalink
linux/coff.h: add include guard
Browse files Browse the repository at this point in the history
Add a header include guard just in case.

My motivation is to allow Kbuild to detect missing include guard:

https://patchwork.kernel.org/patch/11063011/

Before I enable this checker I want to fix as many headers as possible.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
masahir0y authored and torvalds committed Sep 26, 2019
1 parent e55d9d9 commit 541be05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/uapi/linux/coff.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
more information about COFF, then O'Reilly has a very excellent book.
*/

#ifndef _UAPI_LINUX_COFF_H
#define _UAPI_LINUX_COFF_H

#define E_SYMNMLEN 8 /* Number of characters in a symbol name */
#define E_FILNMLEN 14 /* Number of characters in a file name */
#define E_DIMNUM 4 /* Number of array dimensions in auxiliary entry */
Expand Down Expand Up @@ -350,3 +353,5 @@ struct COFF_reloc {

/* For new sections we haven't heard of before */
#define COFF_DEF_SECTION_ALIGNMENT 4

#endif /* _UAPI_LINUX_COFF_H */

0 comments on commit 541be05

Please sign in to comment.