diff mbox series

[kbuild,v3,1/2] kbuild: move LINUX_ELFNOTE_BUILD_SALT to elfnote.h

Message ID 20210401012411.1801610-1-yhs@fb.com (mailing list archive)
State New, archived
Headers show
Series add an elfnote with type BUILD_COMPILER_LTO_INFO | expand

Commit Message

Yonghong Song April 1, 2021, 1:24 a.m. UTC
Move LINUX_ELFNOTE_BUILD_SALT to elfnote.h so we have
a central place for all types with "Linux" owner.
This will make add more types easier.

Signed-off-by: Yonghong Song <yhs@fb.com>
---
 include/linux/build-salt.h | 2 --
 include/linux/elfnote.h    | 5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/build-salt.h b/include/linux/build-salt.h
index bb007bd05e7a..6ab1db1d7f44 100644
--- a/include/linux/build-salt.h
+++ b/include/linux/build-salt.h
@@ -3,8 +3,6 @@ 
 
 #include <linux/elfnote.h>
 
-#define LINUX_ELFNOTE_BUILD_SALT       0x100
-
 #ifdef __ASSEMBLER__
 
 #define BUILD_SALT \
diff --git a/include/linux/elfnote.h b/include/linux/elfnote.h
index 69b136e4dd2b..04af7ac40b1a 100644
--- a/include/linux/elfnote.h
+++ b/include/linux/elfnote.h
@@ -96,4 +96,9 @@ 
 #define ELFNOTE64(name, type, desc) ELFNOTE(64, name, type, desc)
 #endif	/* __ASSEMBLER__ */
 
+/*
+ * The types for "Linux" owned notes.
+ */
+#define LINUX_ELFNOTE_BUILD_SALT	0x100
+
 #endif /* _LINUX_ELFNOTE_H */