Re: [linux-next:master 7954/8516] include/linux/trace_events.h:695:81: warning: unused parameter 'bpf_cookie'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 17, 2021 at 3:36 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   9803fb968c8c2e1283f67b3baeb88e0adba435b4
> commit: 82e6b1eee6a8875ef4eacfd60711cce6965c6b04 [7954/8516] bpf: Allow to specify user-provided bpf_cookie for BPF perf links
> config: i386-randconfig-r021-20210816 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=82e6b1eee6a8875ef4eacfd60711cce6965c6b04
>         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>         git fetch --no-tags linux-next master
>         git checkout 82e6b1eee6a8875ef4eacfd60711cce6965c6b04
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All warnings (new ones prefixed by >>):
>
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:956:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    TRACE_EVENT_CONDITION(i915_reg_rw,
>    ^
>    include/linux/tracepoint.h:563:2: note: expanded from macro 'TRACE_EVENT_CONDITION'
>            DECLARE_TRACE_CONDITION(name, PARAMS(proto),            \
>            ^
>    include/linux/tracepoint.h:424:2: note: expanded from macro 'DECLARE_TRACE_CONDITION'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:984:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    TRACE_EVENT(intel_gpu_freq_change,
>    ^
>    include/linux/tracepoint.h:553:2: note: expanded from macro 'TRACE_EVENT'
>            DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>            ^
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:1026:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    DEFINE_EVENT(i915_ppgtt, i915_ppgtt_create,
>    ^
>    include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
>            DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>            ^
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:1031:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    DEFINE_EVENT(i915_ppgtt, i915_ppgtt_release,
>    ^
>    include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
>            DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>            ^
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:1063:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    DEFINE_EVENT(i915_context, i915_context_create,
>    ^
>    include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
>            DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>            ^
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    drivers/gpu/drm/i915/i915_trace.h:1068:1: warning: unused parameter 'cb' [-Wunused-parameter]
>    DEFINE_EVENT(i915_context, i915_context_free,
>    ^
>    include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
>            DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>            ^
>    include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
>            __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
>            ^
>    include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
>            check_trace_callback_type_##name(void (*cb)(data_proto))        \
>                                                    ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    In file included from include/trace/../../drivers/gpu/drm/i915/i915_trace.h:1078:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:21:
>    include/linux/trace_events.h:689:68: warning: unused parameter 'call' [-Wunused-parameter]
>    static inline unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx)
>                                                                       ^
>    include/linux/trace_events.h:689:80: warning: unused parameter 'ctx' [-Wunused-parameter]
>    static inline unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx)
>                                                                                   ^
>    include/linux/trace_events.h:695:47: warning: unused parameter 'event' [-Wunused-parameter]
>    perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie)
>                                                  ^
>    include/linux/trace_events.h:695:71: warning: unused parameter 'prog' [-Wunused-parameter]
>    perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie)
>                                                                          ^
> >> include/linux/trace_events.h:695:81: warning: unused parameter 'bpf_cookie' [-Wunused-parameter]
>    perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie)
>                                                                                    ^
>    include/linux/trace_events.h:700:66: warning: unused parameter 'event' [-Wunused-parameter]
>    static inline void perf_event_detach_bpf_prog(struct perf_event *event) { }
>                                                                     ^
>    include/linux/trace_events.h:703:48: warning: unused parameter 'event' [-Wunused-parameter]
>    perf_event_query_prog_array(struct perf_event *event, void __user *info)
>                                                   ^
>    include/linux/trace_events.h:703:68: warning: unused parameter 'info' [-Wunused-parameter]
>    perf_event_query_prog_array(struct perf_event *event, void __user *info)
>                                                                       ^
>    include/linux/trace_events.h:707:64: warning: unused parameter 'btp' [-Wunused-parameter]
>    static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p)
>                                                                   ^
>    include/linux/trace_events.h:707:86: warning: unused parameter 'p' [-Wunused-parameter]
>    static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p)
>                                                                                         ^
>    include/linux/trace_events.h:711:66: warning: unused parameter 'btp' [-Wunused-parameter]
>    static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p)
>                                                                     ^
>    include/linux/trace_events.h:711:88: warning: unused parameter 'p' [-Wunused-parameter]
>    static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p)
>                                                                                           ^
>    include/linux/trace_events.h:715:76: warning: unused parameter 'name' [-Wunused-parameter]
>    static inline struct bpf_raw_event_map *bpf_get_raw_tracepoint(const char *name)
>                                                                               ^
>    include/linux/trace_events.h:719:69: warning: unused parameter 'btp' [-Wunused-parameter]
>    static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp)
>                                                                        ^
>    include/linux/trace_events.h:722:68: warning: unused parameter 'event' [-Wunused-parameter]
>    static inline int bpf_get_perf_event_info(const struct perf_event *event,
>                                                                       ^
>    include/linux/trace_events.h:723:13: warning: unused parameter 'prog_id' [-Wunused-parameter]
>                                              u32 *prog_id, u32 *fd_type,
>                                                   ^
>    include/linux/trace_events.h:723:27: warning: unused parameter 'fd_type' [-Wunused-parameter]
>                                              u32 *prog_id, u32 *fd_type,
>                                                                 ^
>    include/linux/trace_events.h:724:21: warning: unused parameter 'buf' [-Wunused-parameter]
>                                              const char **buf, u64 *probe_offset,
>                                                           ^
>    include/linux/trace_events.h:724:31: warning: unused parameter 'probe_offset' [-Wunused-parameter]
>                                              const char **buf, u64 *probe_offset,
>                                                                     ^
>    include/linux/trace_events.h:725:13: warning: unused parameter 'probe_addr' [-Wunused-parameter]
>                                              u64 *probe_addr)
>                                                   ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    In file included from include/trace/../../drivers/gpu/drm/i915/i915_trace.h:1078:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:427:
>    include/trace/../../drivers/gpu/drm/i915/i915_trace.h:24:1: warning: unused parameter 'flags' [-Wunused-parameter]
>    TRACE_EVENT(intel_pipe_enable,
>    ^
>    include/trace/trace_events.h:75:2: note: expanded from macro 'TRACE_EVENT'
>            DECLARE_EVENT_CLASS(name,                              \
>            ^
>    include/trace/trace_events.h:379:58: note: expanded from macro 'DECLARE_EVENT_CLASS'
>    trace_raw_output_##call(struct trace_iterator *iter, int flags,         \
>                                                             ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    In file included from include/trace/../../drivers/gpu/drm/i915/i915_trace.h:1078:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:427:
>    include/trace/../../drivers/gpu/drm/i915/i915_trace.h:50:1: warning: unused parameter 'flags' [-Wunused-parameter]
>    TRACE_EVENT(intel_pipe_disable,
>    ^
>    include/trace/trace_events.h:75:2: note: expanded from macro 'TRACE_EVENT'
>            DECLARE_EVENT_CLASS(name,                              \
>            ^
>    include/trace/trace_events.h:379:58: note: expanded from macro 'DECLARE_EVENT_CLASS'
>    trace_raw_output_##call(struct trace_iterator *iter, int flags,         \
>                                                             ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    In file included from include/trace/../../drivers/gpu/drm/i915/i915_trace.h:1078:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:427:
>    include/trace/../../drivers/gpu/drm/i915/i915_trace.h:77:1: warning: unused parameter 'flags' [-Wunused-parameter]
>    TRACE_EVENT(intel_pipe_crc,
>    ^
>    include/trace/trace_events.h:75:2: note: expanded from macro 'TRACE_EVENT'
>            DECLARE_EVENT_CLASS(name,                              \
>            ^
>    include/trace/trace_events.h:379:58: note: expanded from macro 'DECLARE_EVENT_CLASS'
>    trace_raw_output_##call(struct trace_iterator *iter, int flags,         \
>                                                             ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>    In file included from include/trace/../../drivers/gpu/drm/i915/i915_trace.h:1078:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:427:
>    include/trace/../../drivers/gpu/drm/i915/i915_trace.h:101:1: warning: unused parameter 'flags' [-Wunused-parameter]
>    TRACE_EVENT(intel_cpu_fifo_underrun,
>    ^
>    include/trace/trace_events.h:75:2: note: expanded from macro 'TRACE_EVENT'
>            DECLARE_EVENT_CLASS(name,                              \
>            ^
>    include/trace/trace_events.h:379:58: note: expanded from macro 'DECLARE_EVENT_CLASS'
>    trace_raw_output_##call(struct trace_iterator *iter, int flags,         \
>                                                             ^
>    In file included from drivers/gpu/drm/i915/i915_trace_points.c:13:
>
>
> vim +/bpf_cookie +695 include/linux/trace_events.h
>
>    693
>    694  static inline int
>  > 695  perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie)

This is expected for such stub implementations. Is there any way to
silence this or make the compiler happy about that?

>    696  {
>    697          return -EOPNOTSUPP;
>    698  }
>    699
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux