srcu: Avoid escaped section names
The stringification operator, `#`, in the preprocessor escapes strings. For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how they treat section names that contain \". The portable solution is to not use a string literal with the preprocessor stringification operator. Change-Id: I7ec44bd2ef15fa8019f2fa5efe2eddf40585ab5a Link: https://bugs.llvm.org/show_bug.cgi?id=42950 Fixes: fe15b50c ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules") Reviewed-by:Kees Cook <keescook@chromium.org> Reviewed-by:
Nathan Chancellor <natechancellor@gmail.com> Tested-by:
Nathan Chancellor <natechancellor@gmail.com> Reviewed-by:
Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by:
Nick Desaulniers <ndesaulniers@google.com> Signed-off-by:
Paul E. McKenney <paulmck@kernel.org> Git-commit: c1370c128cf49147f1d4c670b7101134231b3dc5 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
lixiang <lixiang@codeaurora.org>
Loading
Please register or sign in to comment