]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: prefer __section from compiler_attributes.h
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 12 Aug 2019 21:50:45 +0000 (14:50 -0700)
committerWill Deacon <will@kernel.org>
Tue, 13 Aug 2019 17:32:15 +0000 (18:32 +0100)
commit537192f5d14518005df2b31ea9a001b848032b13
tree26543584d8c5a700c1d366cefe309cd91cca6e6e
parentbbdecebf1e2fd8e6f9df0e6e50b0199f76830187
arm64: prefer __section from compiler_attributes.h

GCC unescapes escaped string section names while Clang does not. Because
__section uses the `#` stringification operator for the section name, it
doesn't need to be escaped.

This antipattern was found with:
$ grep -e __section\(\" -e __section__\(\" -r

Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/cache.h
arch/arm64/kernel/smp_spin_table.c