bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: John Fastabend <john.fastabend@gmail.com>
Cc: Song Liu <songliubraving@fb.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Network Development <netdev@vger.kernel.org>,
	bpf <bpf@vger.kernel.org>
Subject: Re: [bpf-next PATCH] bpf, selftests: Fix cast to smaller integer type 'int' warning in raw_tp
Date: Mon, 28 Sep 2020 21:34:50 -0700	[thread overview]
Message-ID: <CAADnVQKUmuLU5GDdy7FS-=+no=FhC1u6iCCp6zGnN_X7kAG5uA@mail.gmail.com> (raw)
In-Reply-To: <160134424745.11199.13841922833336698133.stgit@john-Precision-5820-Tower>

On Mon, Sep 28, 2020 at 6:51 PM John Fastabend <john.fastabend@gmail.com> wrote:
>
> Fix warning in bpf selftests,
>
> progs/test_raw_tp_test_run.c:18:10: warning: cast to smaller integer type 'int' from 'struct task_struct *' [-Wpointer-to-int-cast]
>
> Change int type cast to long to fix. Discovered with gcc-9 and llvm-11+
> where llvm was recent main branch.
>
> Fixes: 09d8ad16885ee ("selftests/bpf: Add raw_tp_test_run")
> Signed-off-by: John Fastabend <john.fastabend@gmail.com>

Applied. Thanks

  reply	other threads:[~2020-09-29  4:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29  1:50 [bpf-next PATCH] bpf, selftests: Fix cast to smaller integer type 'int' warning in raw_tp John Fastabend
2020-09-29  4:34 ` Alexei Starovoitov [this message]
2020-09-29 12:20 ` patchwork-bot+bpf

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='CAADnVQKUmuLU5GDdy7FS-=+no=FhC1u6iCCp6zGnN_X7kAG5uA@mail.gmail.com' \
    --to=alexei.starovoitov@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=john.fastabend@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=songliubraving@fb.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;
as well as URLs for NNTP newsgroup(s).