ANDROID: vendor_hooks: fix __section macro
After upstream33def8498f
("treewide: Convert macro and uses of __section(foo) to __section("foo")"), the preprocessor macro __section now requires the section name to be double quoted. This patch resolves breakage that results from merging down from mainline in this out of tree header. Fixes:33def8498f
("treewide: Convert macro and uses of __section(foo) to __section("foo")") Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ie6a701251e6420e63187a466b43ec2c834e0ec2e
This commit is contained in:
parent
338f8e80b4
commit
4cc2f83c77
@ -15,11 +15,11 @@
|
||||
|
||||
#define DEFINE_HOOK_FN(_name, _reg, _unreg, proto, args) \
|
||||
static const char __tpstrtab_##_name[] \
|
||||
__section(__tracepoints_strings) = #_name; \
|
||||
__section("__tracepoints_strings") = #_name; \
|
||||
extern struct static_call_key STATIC_CALL_KEY(tp_func_##_name); \
|
||||
int __traceiter_##_name(void *__data, proto); \
|
||||
struct tracepoint __tracepoint_##_name __used \
|
||||
__section(__tracepoints) = { \
|
||||
__section("__tracepoints") = { \
|
||||
.name = __tpstrtab_##_name, \
|
||||
.key = STATIC_KEY_INIT_FALSE, \
|
||||
.static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \
|
||||
|
Loading…
Reference in New Issue
Block a user