tree:
https://android.googlesource.com/kernel/common android-mainline
head: 859b5a7b1f280b64f882b469f1a6f3d0c50c298c
commit: efab334061ff7ed8f9dd5e28f2c7bdb09e2a77ec [1/3] ANDROID: add vendor hooks to
override show_cpufinfo_max_freq
config: i386-randconfig-c001-20210115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-mainline
git checkout efab334061ff7ed8f9dd5e28f2c7bdb09e2a77ec
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/trace/hooks/cpufreq.h:10,
from drivers/android/vendor_hooks.c:27:
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:235:32: note: in definition of macro
'__DECLARE_TRACE'
235 | extern int __traceiter_##name(data_proto); \
| ^~~~~~~~~~
include/linux/tracepoint.h:413:4: note: in expansion of macro 'PARAMS'
413 | PARAMS(void *__data, proto), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:238:34: note: in definition of macro
'__DECLARE_TRACE'
238 | static inline void trace_##name(proto) \
| ^~~~~
include/linux/tracepoint.h:411:24: note: in expansion of macro 'PARAMS'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~
include/trace/hooks/cpufreq.h: In function 'trace_android_vh_show_max_freq':
> include/trace/hooks/cpufreq.h:17:10: error: passing argument 2 of
'(({...}))' from incompatible pointer type [-Werror=incompatible-pointer-types]
17 | TP_ARGS(policy, max_freq));
| ^~~~~~
| |
| struct cpufreq_policy *
include/linux/tracepoint.h:197:26: note: in definition of macro '__DO_TRACE'
197 | __DO_TRACE_CALL(name)(args); \
| ^~~~
include/linux/tracepoint.h:243:5: note: in expansion of macro 'TP_ARGS'
243 | TP_ARGS(data_args), \
| ^~~~~~~
include/linux/tracepoint.h:411:2: note: in expansion of macro
'__DECLARE_TRACE'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:414:4: note: in expansion of macro 'PARAMS'
414 | PARAMS(__data, args))
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:17:2: note: in expansion of macro 'TP_ARGS'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~~
include/trace/hooks/cpufreq.h:17:10: note: expected 'struct cpufreq_policy *'
but argument is of type 'struct cpufreq_policy *'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~
include/linux/tracepoint.h:197:26: note: in definition of macro '__DO_TRACE'
197 | __DO_TRACE_CALL(name)(args); \
| ^~~~
include/linux/tracepoint.h:243:5: note: in expansion of macro 'TP_ARGS'
243 | TP_ARGS(data_args), \
| ^~~~~~~
include/linux/tracepoint.h:411:2: note: in expansion of macro
'__DECLARE_TRACE'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:414:4: note: in expansion of macro 'PARAMS'
414 | PARAMS(__data, args))
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:17:2: note: in expansion of macro 'TP_ARGS'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~~
include/trace/hooks/cpufreq.h: At top level:
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:210:44: note: in definition of macro
'__DECLARE_TRACE_RCU'
210 | static inline void trace_##name##_rcuidle(proto) \
| ^~~~~
include/linux/tracepoint.h:251:28: note: in expansion of macro 'PARAMS'
251 | __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~
include/linux/tracepoint.h:411:2: note: in expansion of macro
'__DECLARE_TRACE'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:411:24: note: in expansion of macro 'PARAMS'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~
include/trace/hooks/cpufreq.h: In function
'trace_android_vh_show_max_freq_rcuidle':
> include/trace/hooks/cpufreq.h:17:10: error: passing argument 2 of
'(({...}))' from incompatible pointer type [-Werror=incompatible-pointer-types]
17 | TP_ARGS(policy, max_freq));
| ^~~~~~
| |
| struct cpufreq_policy *
include/linux/tracepoint.h:197:26: note: in definition of macro '__DO_TRACE'
197 | __DO_TRACE_CALL(name)(args); \
| ^~~~
include/linux/tracepoint.h:215:5: note: in expansion of macro 'TP_ARGS'
215 | TP_ARGS(data_args), \
| ^~~~~~~
include/linux/tracepoint.h:251:2: note: in expansion of macro
'__DECLARE_TRACE_RCU'
251 | __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:252:37: note: in expansion of macro 'PARAMS'
252 | PARAMS(cond), PARAMS(data_proto), PARAMS(data_args)) \
| ^~~~~~
include/linux/tracepoint.h:411:2: note: in expansion of macro
'__DECLARE_TRACE'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:414:4: note: in expansion of macro 'PARAMS'
414 | PARAMS(__data, args))
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:17:2: note: in expansion of macro 'TP_ARGS'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~~
include/trace/hooks/cpufreq.h:17:10: note: expected 'struct cpufreq_policy *'
but argument is of type 'struct cpufreq_policy *'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~
include/linux/tracepoint.h:197:26: note: in definition of macro '__DO_TRACE'
197 | __DO_TRACE_CALL(name)(args); \
| ^~~~
include/linux/tracepoint.h:215:5: note: in expansion of macro 'TP_ARGS'
215 | TP_ARGS(data_args), \
| ^~~~~~~
include/linux/tracepoint.h:251:2: note: in expansion of macro
'__DECLARE_TRACE_RCU'
251 | __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:252:37: note: in expansion of macro 'PARAMS'
252 | PARAMS(cond), PARAMS(data_proto), PARAMS(data_args)) \
| ^~~~~~
include/linux/tracepoint.h:411:2: note: in expansion of macro
'__DECLARE_TRACE'
411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:414:4: note: in expansion of macro 'PARAMS'
414 | PARAMS(__data, args))
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:17:2: note: in expansion of macro 'TP_ARGS'
17 | TP_ARGS(policy, max_freq));
| ^~~~~~~
include/trace/hooks/cpufreq.h: At top level:
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:254:38: note: in definition of macro
'__DECLARE_TRACE'
254 | register_trace_##name(void (*probe)(data_proto), void *data) \
| ^~~~~~~~~~
include/linux/tracepoint.h:413:4: note: in expansion of macro 'PARAMS'
413 | PARAMS(void *__data, proto), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:260:43: note: in definition of macro
'__DECLARE_TRACE'
260 | register_trace_prio_##name(void (*probe)(data_proto), void *data,\
| ^~~~~~~~~~
include/linux/tracepoint.h:413:4: note: in expansion of macro 'PARAMS'
413 | PARAMS(void *__data, proto), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~
include/trace/hooks/cpufreq.h:16:18: warning: 'struct cpufreq_policy' declared
inside parameter list will not be visible outside of this definition or declaration
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
| ^~~~~~~~~~~~~~
include/linux/tracepoint.h:267:40: note: in definition of macro
'__DECLARE_TRACE'
267 | unregister_trace_##name(void (*probe)(data_proto), void *data) \
| ^~~~~~~~~~
include/linux/tracepoint.h:413:4: note: in expansion of macro 'PARAMS'
413 | PARAMS(void *__data, proto), \
| ^~~~~~
include/trace/hooks/vendor_hooks.h:12:22: note: in expansion of macro
'DECLARE_TRACE'
12 | #define DECLARE_HOOK DECLARE_TRACE
| ^~~~~~~~~~~~~
include/trace/hooks/cpufreq.h:16:2: note: in expansion of macro 'TP_PROTO'
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
vim +17 include/trace/hooks/cpufreq.h
14
15 DECLARE_HOOK(android_vh_show_max_freq,
16 TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
17 TP_ARGS(policy, max_freq));
18
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org