History

linux/coff.h: add include guard

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.

Masahiro Yamada committed 7 years ago

Commit 541be051 parent e55d9d91 file · +5 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/coff.h+5−0
@@ -11,6 +11,9 @@ · 10 unmodified lines
1111 more information about COFF, then O'Reilly has a very excellent book.
1212 */
1313
14+#ifndef _UAPI_LINUX_COFF_H
15+#define _UAPI_LINUX_COFF_H
16+
1417 #define E_SYMNMLEN 8 /* Number of characters in a symbol name */
1518 #define E_FILNMLEN 14 /* Number of characters in a file name */
1619 #define E_DIMNUM 4 /* Number of array dimensions in auxiliary entry */
@@ -350,3 +353,5 @@ struct COFF_reloc { · 333 unmodified lines
350353
351354 /* For new sections we haven't heard of before */
352355 #define COFF_DEF_SECTION_ALIGNMENT 4
356+
357+#endif /* _UAPI_LINUX_COFF_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t