All of lore.kernel.org
 help / color / mirror / Atom feed
* [sean-jc:x86/uaccess_bad_mm 2/9] arch/powerpc/kvm/powerpc.c:774:30: error: 'memslot' undeclared; did you mean 'memset'?
@ 2026-09-13  7:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-13  7:34 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: oe-kbuild-all

tree:   https://github.com/sean-jc/linux x86/uaccess_bad_mm
head:   5e20baf271c570712cb8efe0d9400725d6c04386
commit: 12159515b6f2a33c1cdf0cd58802d5e03036ff02 [2/9] KVM: PPC: Flush/zap all memslots on kvm_arch_flush_shadow_all()
config: powerpc-powernv_defconfig (https://download.01.org/0day-ci/archive/20260913/202609131550.9LgiOEdZ-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260913/202609131550.9LgiOEdZ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609131550.9LgiOEdZ-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/kvm_host.h:33,
                    from arch/powerpc/kvm/powerpc.c:12:
   arch/powerpc/kvm/powerpc.c: In function 'kvm_arch_flush_shadow_all':
>> arch/powerpc/kvm/powerpc.c:774:30: error: 'memslot' undeclared (first use in this function); did you mean 'memset'?
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |                              ^~~~~~~
   include/linux/hashtable.h:127:25: note: in definition of macro 'hash_for_each'
     127 |         for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
         |                         ^~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:30: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/hashtable.h:127:25: note: in definition of macro 'hash_for_each'
     127 |         for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
         |                         ^~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/init.h:5,
                    from include/linux/printk.h:6,
                    from include/asm-generic/bug.h:31,
                    from arch/powerpc/include/asm/bug.h:116,
                    from include/linux/bug.h:5,
                    from arch/powerpc/include/asm/mmu.h:142,
                    from arch/powerpc/include/asm/paca.h:18,
                    from arch/powerpc/include/asm/current.h:13,
                    from include/linux/sched.h:12,
                    from include/linux/resume_user_mode.h:6,
                    from include/linux/entry-virt.h:6,
                    from include/linux/kvm_host.h:5:
   include/linux/compiler_types.h:610:27: error: expression in static assertion is not an integer
     610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
      80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
         |                                                        ^~~~
   include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |         ^~~~~~~~~~~~~
   include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |                       ^~~~~~~~~~~
   include/linux/list.h:1199:40: note: in expansion of macro 'container_of'
    1199 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
         |                                        ^~~~~~~~~~~~
   include/linux/list.h:1210:22: note: in expansion of macro 'hlist_entry'
    1210 |            ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
         |                      ^~~~~~~~~~~
   include/linux/list.h:1220:20: note: in expansion of macro 'hlist_entry_safe'
    1220 |         for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
         |                    ^~~~~~~~~~~~~~~~
   include/linux/hashtable.h:129:17: note: in expansion of macro 'hlist_for_each_entry'
     129 |                 hlist_for_each_entry(obj, &name[bkt], member)
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kvm_host.h:1117:9: note: in expansion of macro 'hash_for_each'
    1117 |         hash_for_each(slots->id_hash, bkt, memslot, id_node[slots->node_idx]) \
         |         ^~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int')
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |                                   ^~~~~~
   include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
      80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
         |                                                        ^~~~
   include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |         ^~~~~~~~~~~~~
   include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |                       ^~~~~~~~~~~
   include/linux/list.h:1199:40: note: in expansion of macro 'container_of'
    1199 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
         |                                        ^~~~~~~~~~~~
   include/linux/list.h:1210:22: note: in expansion of macro 'hlist_entry'
    1210 |            ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
         |                      ^~~~~~~~~~~
   include/linux/list.h:1222:20: note: in expansion of macro 'hlist_entry_safe'
    1222 |              pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
         |                    ^~~~~~~~~~~~~~~~
   include/linux/hashtable.h:129:17: note: in expansion of macro 'hlist_for_each_entry'
     129 |                 hlist_for_each_entry(obj, &name[bkt], member)
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kvm_host.h:1117:9: note: in expansion of macro 'hash_for_each'
    1117 |         hash_for_each(slots->id_hash, bkt, memslot, id_node[slots->node_idx]) \
         |         ^~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int')
      21 |                       __same_type(*(ptr), void),                        \
         |                                   ^~~~~~
   include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
      80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
         |                                                        ^~~~
   include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |         ^~~~~~~~~~~~~
   include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
      21 |                       __same_type(*(ptr), void),                        \
         |                       ^~~~~~~~~~~
   include/linux/list.h:1199:40: note: in expansion of macro 'container_of'
    1199 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
         |                                        ^~~~~~~~~~~~
   include/linux/list.h:1210:22: note: in expansion of macro 'hlist_entry'
    1210 |            ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
         |                      ^~~~~~~~~~~
   include/linux/list.h:1222:20: note: in expansion of macro 'hlist_entry_safe'
    1222 |              pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
         |                    ^~~~~~~~~~~~~~~~
   include/linux/hashtable.h:129:17: note: in expansion of macro 'hlist_for_each_entry'
     129 |                 hlist_for_each_entry(obj, &name[bkt], member)
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kvm_host.h:1117:9: note: in expansion of macro 'hash_for_each'
    1117 |         hash_for_each(slots->id_hash, bkt, memslot, id_node[slots->node_idx]) \
         |         ^~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:610:27: error: expression in static assertion is not an integer
     610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
      80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
         |                                                        ^~~~
   include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |         ^~~~~~~~~~~~~
   include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
      20 |         static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
         |                       ^~~~~~~~~~~
   include/linux/list.h:1199:40: note: in expansion of macro 'container_of'
    1199 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
         |                                        ^~~~~~~~~~~~
   include/linux/list.h:1210:22: note: in expansion of macro 'hlist_entry'
    1210 |            ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
         |                      ^~~~~~~~~~~
   include/linux/list.h:1222:20: note: in expansion of macro 'hlist_entry_safe'
    1222 |              pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
         |                    ^~~~~~~~~~~~~~~~
   include/linux/hashtable.h:129:17: note: in expansion of macro 'hlist_for_each_entry'
     129 |                 hlist_for_each_entry(obj, &name[bkt], member)
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kvm_host.h:1117:9: note: in expansion of macro 'hash_for_each'
    1117 |         hash_for_each(slots->id_hash, bkt, memslot, id_node[slots->node_idx]) \
         |         ^~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:22,
                    from arch/powerpc/include/asm/page.h:11,
                    from arch/powerpc/include/asm/mmu.h:144:
>> include/linux/container_of.h:23:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      23 |         (type *)((void *)(ptr) - offsetof(type, member)); })
         |                  ^
   include/linux/list.h:1199:40: note: in expansion of macro 'container_of'
    1199 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
         |                                        ^~~~~~~~~~~~
   include/linux/list.h:1210:22: note: in expansion of macro 'hlist_entry'
    1210 |            ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
         |                      ^~~~~~~~~~~
   include/linux/list.h:1222:20: note: in expansion of macro 'hlist_entry_safe'
    1222 |              pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
         |                    ^~~~~~~~~~~~~~~~
   include/linux/hashtable.h:129:17: note: in expansion of macro 'hlist_for_each_entry'
     129 |                 hlist_for_each_entry(obj, &name[bkt], member)
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/kvm_host.h:1117:9: note: in expansion of macro 'hash_for_each'
    1117 |         hash_for_each(slots->id_hash, bkt, memslot, id_node[slots->node_idx]) \
         |         ^~~~~~~~~~~~~
   arch/powerpc/kvm/powerpc.c:774:9: note: in expansion of macro 'kvm_for_each_memslot'
     774 |         kvm_for_each_memslot(memslot, bkt, slots)
         |         ^~~~~~~~~~~~~~~~~~~~


vim +774 arch/powerpc/kvm/powerpc.c

   766	
   767	void kvm_arch_flush_shadow_all(struct kvm *kvm)
   768	{
   769		struct kvm_memory_slot *slot;
   770		struct kvm_memslots *slots;
   771		int bkt;
   772	
   773		slots = kvm_memslots(kvm);
 > 774		kvm_for_each_memslot(memslot, bkt, slots)
   775			kvmppc_core_flush_memslot(kvm, slot);
   776	}
   777	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2026-09-13  7:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13  7:34 [sean-jc:x86/uaccess_bad_mm 2/9] arch/powerpc/kvm/powerpc.c:774:30: error: 'memslot' undeclared; did you mean 'memset'? 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.