From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jolsa-perf:bpf/get_func_ip 4/7] kernel/trace/bpf_trace.c:969:14: warning: cast from pointer to integer of different size
Date: Thu, 8 Jul 2021 07:47:30 +0800 [thread overview]
Message-ID: <202107080725.pl4fO74O-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1826 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/get_func_ip
head: c84a007788ef775c5e75c1359c6a4d38664b8136
commit: 77c4369d247b285e790bd8d3d346ba5e0b5bd752 [4/7] bpf: Add bpf_get_func_ip helper for kprobe programs
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=77c4369d247b285e790bd8d3d346ba5e0b5bd752
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/get_func_ip
git checkout 77c4369d247b285e790bd8d3d346ba5e0b5bd752
# 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@intel.com>
All warnings (new ones prefixed by >>):
kernel/trace/bpf_trace.c: In function '____bpf_get_func_ip_kprobe':
>> kernel/trace/bpf_trace.c:969:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
969 | return kp ? (u64) kp->addr : 0;
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
Selected by
- SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM
vim +969 kernel/trace/bpf_trace.c
964
965 BPF_CALL_1(bpf_get_func_ip_kprobe, struct pt_regs *, regs)
966 {
967 struct kprobe *kp = kprobe_running();
968
> 969 return kp ? (u64) kp->addr : 0;
970 }
971
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64910 bytes --]
reply other threads:[~2021-07-07 23:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202107080725.pl4fO74O-lkp@intel.com \
--to=lkp@intel.com \
--cc=jolsa@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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).