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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 include/linux/build-salt.h | 2 --
 include/linux/elfnote.h    | 5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)

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 */
-- 
2.30.2





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux