linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrii Nakryiko <andrii.nakryiko@gmail.com>
To: kernel test robot <lkp@intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>,
	 clang-built-linux <clang-built-linux@googlegroups.com>,
	kbuild-all@lists.01.org,
	 Linux Memory Management List <linux-mm@kvack.org>,
	Daniel Borkmann <daniel@iogearbox.net>
Subject: Re: [linux-next:master 7954/8516] include/linux/trace_events.h:695:81: warning: unused parameter 'bpf_cookie'
Date: Tue, 17 Aug 2021 17:25:30 -0700	[thread overview]
Message-ID: <CAEf4BzaLJqYxRWZJbVMr+oa+_7Y7mgfxtUg3KuvbqMo=fT4-7Q@mail.gmail.com> (raw)
In-Reply-To: <202108180658.IgbgwsPI-lkp@intel.com>

On Tue, Aug 17, 2021 at 3:36 PM kernel test robot <lkp@intel.com> 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@intel.com>
>
> 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@lists.01.org


  reply	other threads:[~2021-08-18  0:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-17 22:35 kernel test robot
2021-08-18  0:25 ` Andrii Nakryiko [this message]
2021-08-18  0:37   ` Nick Desaulniers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEf4BzaLJqYxRWZJbVMr+oa+_7Y7mgfxtUg3KuvbqMo=fT4-7Q@mail.gmail.com' \
    --to=andrii.nakryiko@gmail.com \
    --cc=andrii@kernel.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=daniel@iogearbox.net \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox