[arnd-asm-generic:syscall-tbl-6.11 92/98] arch/x86/include/asm/syscall_wrapper.h:230:60: error: 'sys_vm86old' undeclared here (not in a function); did you mean 'args__vm86old'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git syscall-tbl-6.11
head:   9a99991d90521113a738c2a4761a4147fe4b31ca
commit: d079d82a6231c5cb40ba4b46f9d0634a36051523 [92/98] syscalls: check syscall prototypes
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240718/202407180703.0A04l6MZ-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407180703.0A04l6MZ-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407180703.0A04l6MZ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from include/linux/syscalls.h:95,
                    from arch/x86/kernel/vm86_32.c:37:
>> arch/x86/include/asm/syscall_wrapper.h:230:60: error: 'sys_vm86old' undeclared here (not in a function); did you mean 'args__vm86old'?
     230 |                         (__MAP(x,__SC_DECL,__VA_ARGS__)) = sys##name;   \
         |                                                            ^~~
   include/linux/syscalls.h:228:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     228 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   arch/x86/kernel/vm86_32.c:170:1: note: in expansion of macro 'SYSCALL_DEFINE1'
     170 | SYSCALL_DEFINE1(vm86old, struct vm86_struct __user *, user_vm86)
         | ^~~~~~~~~~~~~~~
>> arch/x86/include/asm/syscall_wrapper.h:230:60: error: 'sys_vm86' undeclared here (not in a function); did you mean 'do_sys_vm86'?
     230 |                         (__MAP(x,__SC_DECL,__VA_ARGS__)) = sys##name;   \
         |                                                            ^~~
   include/linux/syscalls.h:228:9: note: in expansion of macro '__SYSCALL_DEFINEx'
     228 |         __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   arch/x86/kernel/vm86_32.c:176:1: note: in expansion of macro 'SYSCALL_DEFINE2'
     176 | SYSCALL_DEFINE2(vm86, unsigned long, cmd, unsigned long, arg)
         | ^~~~~~~~~~~~~~~


vim +230 arch/x86/include/asm/syscall_wrapper.h

   226	
   227	#define __SYSCALL_DEFINEx(x, name, ...)					\
   228		static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__));	\
   229		static __maybe_unused asmlinkage long (*__typecheck_sys##name)	\
 > 230				(__MAP(x,__SC_DECL,__VA_ARGS__)) = sys##name;	\
   231		static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
   232		__X64_SYS_STUBx(x, name, __VA_ARGS__)				\
   233		__IA32_SYS_STUBx(x, name, __VA_ARGS__)				\
   234		static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__))	\
   235		{								\
   236			long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
   237			__MAP(x,__SC_TEST,__VA_ARGS__);				\
   238			__PROTECT(x, ret,__MAP(x,__SC_ARGS,__VA_ARGS__));	\
   239			return ret;						\
   240		}								\
   241		static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
   242	

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




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux