diff mbox series

[13/16] include/asm-generic: prefer __section from compiler_attributes.h

Message ID 20190812215052.71840-13-ndesaulniers@google.com
State Superseded
Headers show
Series [01/16] s390/boot: fix section name escaping | expand

Commit Message

Nick Desaulniers Aug. 12, 2019, 9:50 p.m. UTC
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

---
 include/asm-generic/error-injection.h | 2 +-
 include/asm-generic/kprobes.h         | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

-- 
2.23.0.rc1.153.gdeed80330f-goog

Comments

Arnd Bergmann Aug. 13, 2019, 7:57 a.m. UTC | #1
On Mon, Aug 12, 2019 at 11:52 PM 'Nick Desaulniers' via Clang Built
Linux <clang-built-linux@googlegroups.com> wrote:
>

> Reported-by: Sedat Dilek <sedat.dilek@gmail.com>

> Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>

> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>


The patch looks fine, but it looks like you forgot to add a description.

       Arnd
Naveen N. Rao Aug. 19, 2019, 5:52 p.m. UTC | #2
Nick Desaulniers wrote:
> Reported-by: Sedat Dilek <sedat.dilek@gmail.com>

> Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>

> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

> ---


Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>


- Naveen
Sedat Dilek Aug. 19, 2019, 5:56 p.m. UTC | #3
On Mon, Aug 19, 2019 at 7:52 PM Naveen N. Rao
<naveen.n.rao@linux.ibm.com> wrote:
>

> Nick Desaulniers wrote:

> > Reported-by: Sedat Dilek <sedat.dilek@gmail.com>

> > Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>

> > Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

> > ---

>

> Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>

>


Tested-by: Sedat Dilek <sedat.dilek@gmail.com> [ Linux v5.3-rc5 ]


Patchset "for-5.3/x86-section-name-escaping":

include/linux/compiler.h: remove unused KENTRY macro
include/linux: prefer __section from compiler_attributes.h
include/asm-generic: prefer __section from compiler_attributes.h
x86: prefer __section from compiler_attributes.h

- Sedat -
diff mbox series

Patch

diff --git a/include/asm-generic/error-injection.h b/include/asm-generic/error-injection.h
index 95a159a4137f..a593a50b33e3 100644
--- a/include/asm-generic/error-injection.h
+++ b/include/asm-generic/error-injection.h
@@ -23,7 +23,7 @@  struct error_injection_entry {
  */
 #define ALLOW_ERROR_INJECTION(fname, _etype)				\
 static struct error_injection_entry __used				\
-	__attribute__((__section__("_error_injection_whitelist")))	\
+	__section(_error_injection_whitelist)				\
 	_eil_addr_##fname = {						\
 		.addr = (unsigned long)fname,				\
 		.etype = EI_ETYPE_##_etype,				\
diff --git a/include/asm-generic/kprobes.h b/include/asm-generic/kprobes.h
index 4a982089c95c..20d69719270f 100644
--- a/include/asm-generic/kprobes.h
+++ b/include/asm-generic/kprobes.h
@@ -9,12 +9,11 @@ 
  * by using this macro.
  */
 # define __NOKPROBE_SYMBOL(fname)				\
-static unsigned long __used					\
-	__attribute__((__section__("_kprobe_blacklist")))	\
+static unsigned long __used __section(_kprobe_blacklist)	\
 	_kbl_addr_##fname = (unsigned long)fname;
 # define NOKPROBE_SYMBOL(fname)	__NOKPROBE_SYMBOL(fname)
 /* Use this to forbid a kprobes attach on very low level functions */
-# define __kprobes	__attribute__((__section__(".kprobes.text")))
+# define __kprobes	__section(.kprobes.text)
 # define nokprobe_inline	__always_inline
 #else
 # define NOKPROBE_SYMBOL(fname)