Skip to contentSkip to conversation

arch/x86/um/ptrace.c:245:31: sparse: sparse: symbol 'user_uml_view' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Oct 28, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/uml/linux next
head:   d3b08e5f3f2829943342b88d3e2b44fb0ccdccab
commit: 3f17fed2149192c7d3b76a45a6a87b4ff22cd586 [44/50] um: switch to regset API and depend on XSTATE
config: um-randconfig-r112-20241026 (https://download.01.org/0day-ci/archive/20241028/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241028/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> arch/x86/um/ptrace.c:245:31: sparse: sparse: symbol 'user_uml_view' was not declared. Should it be static?
--
>> arch/x86/um/signal.c:87:19: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct _xstate [noderef] __user *from_fp64 @@     got void * @@
   arch/x86/um/signal.c:87:19: sparse:     expected struct _xstate [noderef] __user *from_fp64
   arch/x86/um/signal.c:87:19: sparse:     got void *
   arch/x86/um/signal.c:201:9: sparse: sparse: cast removes address space '__user' of expression
   arch/x86/um/signal.c:201:9: sparse: sparse: cast removes address space '__user' of expression
>> arch/x86/um/signal.c:201:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int * @@
   arch/x86/um/signal.c:201:9: sparse:     expected void const volatile [noderef] __user *ptr
   arch/x86/um/signal.c:201:9: sparse:     got int *
   arch/x86/um/signal.c:201:9: sparse: sparse: cast removes address space '__user' of expression
   arch/x86/um/signal.c:201:9: sparse: sparse: cast removes address space '__user' of expression
   arch/x86/um/signal.c:201:9: sparse: sparse: cast removes address space '__user' of expression
>> arch/x86/um/signal.c:201:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __user *ptr @@     got int * @@

arch/x86/um/signal.c:201:9: sparse: expected void [noderef] __user *ptr
arch/x86/um/signal.c:201:9: sparse: got int *
arch/x86/um/signal.c:387:16: sparse: sparse: Using plain integer as NULL pointer arch/x86/um/signal.c:411:24: sparse: sparse: cast removes address space '__user' of expression
arch/x86/um/signal.c:411:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char [noderef] __user *__x @@ got void * @@
arch/x86/um/signal.c:411:24: sparse: expected char [noderef] __user *__x
arch/x86/um/signal.c:411:24: sparse: got void *

vim +/user_uml_view +245 arch/x86/um/ptrace.c

244

 > 245	const struct user_regset_view user_uml_view = {

246 #ifdef CONFIG_X86_32
247 .name = "i386", .e_machine = EM_386,
248 #else
249 .name = "x86_64", .e_machine = EM_X86_64,
250 #endif
251 .regsets = uml_regsets, .n = ARRAY_SIZE(uml_regsets)
252 };
253

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