mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/tramp_11 19/21] kernel/bpf/trampoline.c:81:31: sparse: sparse: non size-preserving pointer to integer cast
@ 2022-06-23 15:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-23 15:46 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tramp_11
head:   c807110aa605281263da02a78af57847f5c4275e
commit: a2660a85cc98b2db2577fd844985884cff0e5cae [19/21] bpf: Add support to store multiple ids in bpf_tramp_id object
config: i386-randconfig-s002 (https://download.01.org/0day-ci/archive/20220623/202206232359.8QKWZqGN-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-31-g4880bd19-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=a2660a85cc98b2db2577fd844985884cff0e5cae
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/tramp_11
        git checkout a2660a85cc98b2db2577fd844985884cff0e5cae
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash kernel/bpf/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   kernel/bpf/trampoline.c:16:31: sparse: sparse: symbol 'bpf_extension_verifier_ops' was not declared. Should it be static?
   kernel/bpf/trampoline.c:18:27: sparse: sparse: symbol 'bpf_extension_prog_ops' was not declared. Should it be static?
>> kernel/bpf/trampoline.c:81:31: sparse: sparse: non size-preserving pointer to integer cast

vim +81 kernel/bpf/trampoline.c

    77	
    78	static u64 bpf_tramp_id_key(struct bpf_tramp_id *id)
    79	{
    80		if (bpf_tramp_id_is_multi(id))
  > 81			return (u64) &id;
    82		else
    83			return ((u64) id->obj_id << 32) | id->id[0];
    84	}
    85	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-23 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 15:46 [jolsa-perf:bpf/tramp_11 19/21] kernel/bpf/trampoline.c:81:31: sparse: sparse: non size-preserving pointer to integer cast kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®