All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yonghong Song <yhs@fb.com>
To: <linux-kbuild@vger.kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>,
	Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>,
	<bpf@vger.kernel.org>, <kernel-team@fb.com>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Michal Marek <michal.lkml@markovi.net>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: [PATCH kbuild v3 1/2] kbuild: move LINUX_ELFNOTE_BUILD_SALT to elfnote.h
Date: Wed, 31 Mar 2021 18:24:11 -0700	[thread overview]
Message-ID: <20210401012411.1801610-1-yhs@fb.com> (raw)
In-Reply-To: <20210401012406.1800957-1-yhs@fb.com>

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 --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


  reply	other threads:[~2021-04-01  1:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01  1:24 [PATCH kbuild v3 0/2] add an elfnote with type BUILD_COMPILER_LTO_INFO Yonghong Song
2021-04-01  1:24 ` Yonghong Song [this message]
2021-04-01  1:24 ` [PATCH kbuild v3 2/2] kbuild: " Yonghong Song
2021-04-01 18:28   ` Nick Desaulniers
2021-04-01 20:50     ` Yonghong Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210401012411.1801610-1-yhs@fb.com \
    --to=yhs@fb.com \
    --cc=arnaldo.melo@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=kernel-team@fb.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=ndesaulniers@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.