linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nick Desaulniers <ndesaulniers@google.com>
To: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: kernel test robot <lkp@intel.com>,
	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:37:59 -0700	[thread overview]
Message-ID: <CAKwvOdk4nJFMqaNje1xwg-RBj3mSK-5n8ZZD6szsJ=K8O-uMig@mail.gmail.com> (raw)
In-Reply-To: <CAEf4BzaLJqYxRWZJbVMr+oa+_7Y7mgfxtUg3KuvbqMo=fT4-7Q@mail.gmail.com>

On Tue, Aug 17, 2021 at 5:25 PM Andrii Nakryiko
<andrii.nakryiko@gmail.com> wrote:
>
> 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):

^ W=1 build

> > 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?

Leaving the name off unused parameters: https://godbolt.org/z/eaaen8ToP

>
> >    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
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAEf4BzaLJqYxRWZJbVMr%2Boa%2B_7Y7mgfxtUg3KuvbqMo%3DfT4-7Q%40mail.gmail.com.



-- 
Thanks,
~Nick Desaulniers


      reply	other threads:[~2021-08-18  0:38 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
2021-08-18  0:37   ` Nick Desaulniers [this message]

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='CAKwvOdk4nJFMqaNje1xwg-RBj3mSK-5n8ZZD6szsJ=K8O-uMig@mail.gmail.com' \
    --to=ndesaulniers@google.com \
    --cc=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