* [rgushchin:bpf_memcg.8 33/35] kernel/bpf/syscall.c:569:45: sparse: sparse: incorrect type in argument 1 (different modifiers)
@ 2020-11-25 3:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-25 3:56 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2831 bytes --]
tree: https://github.com/rgushchin/linux.git bpf_memcg.8
head: 3dc3c6707ccc33e02b04281ea17c43cc455f1c4e
commit: dfaf7b3e48cf6269c319e7b8630e9f2213e229e8 [33/35] bpf: eliminate rlimit-based memory accounting infra for bpf maps
config: c6x-randconfig-s032-20201125 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-151-g540c2c4b-dirty
# https://github.com/rgushchin/linux/commit/dfaf7b3e48cf6269c319e7b8630e9f2213e229e8
git remote add rgushchin https://github.com/rgushchin/linux.git
git fetch --no-tags rgushchin bpf_memcg.8
git checkout dfaf7b3e48cf6269c319e7b8630e9f2213e229e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=c6x
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> kernel/bpf/syscall.c:569:45: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct bpf_map *map @@ got struct bpf_map const *map @@
>> kernel/bpf/syscall.c:569:45: sparse: expected struct bpf_map *map
>> kernel/bpf/syscall.c:569:45: sparse: got struct bpf_map const *map
vim +569 kernel/bpf/syscall.c
542
543 static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp)
544 {
545 const struct bpf_map *map = filp->private_data;
546 const struct bpf_array *array;
547 u32 type = 0, jited = 0;
548
549 if (map->map_type == BPF_MAP_TYPE_PROG_ARRAY) {
550 array = container_of(map, struct bpf_array, map);
551 type = array->aux->type;
552 jited = array->aux->jited;
553 }
554
555 seq_printf(m,
556 "map_type:\t%u\n"
557 "key_size:\t%u\n"
558 "value_size:\t%u\n"
559 "max_entries:\t%u\n"
560 "map_flags:\t%#x\n"
561 "memlock:\t%lu\n"
562 "map_id:\t%u\n"
563 "frozen:\t%u\n",
564 map->map_type,
565 map->key_size,
566 map->value_size,
567 map->max_entries,
568 map->map_flags,
> 569 bpf_map_memory_footprint(map),
570 map->id,
571 READ_ONCE(map->frozen));
572 if (type) {
573 seq_printf(m, "owner_prog_type:\t%u\n", type);
574 seq_printf(m, "owner_jited:\t%u\n", jited);
575 }
576 }
577 #endif
578
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35500 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-25 3:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 3:56 [rgushchin:bpf_memcg.8 33/35] kernel/bpf/syscall.c:569:45: sparse: sparse: incorrect type in argument 1 (different modifiers) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.