* [hch-misc:set_fs-coredump 5/8] arch/x86/kernel/signal.c:518:24: error: storage size of 'new' isn't known
@ 2020-04-29 8:44 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-29 8:44 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2636 bytes --]
tree: git://git.infradead.org/users/hch/misc.git set_fs-coredump
head: cc7765485f732e2a0f36a0f9ec36cefacb010b8e
commit: 5ca642c4c744ce6460ebb91fe30ec7a064d28e96 [5/8] signal: factor copy_siginfo_to_external32 from copy_siginfo_to_user32
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 5ca642c4c744ce6460ebb91fe30ec7a064d28e96
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/signal.c: In function '__copy_siginfo_to_user32':
>> arch/x86/kernel/signal.c:518:24: error: storage size of 'new' isn't known
struct compat_siginfo new;
^~~
>> arch/x86/kernel/signal.c:520:2: error: implicit declaration of function 'copy_siginfo_to_external32'; did you mean '__copy_siginfo_to_user32'? [-Werror=implicit-function-declaration]
copy_siginfo_to_external32(&new, from);
^~~~~~~~~~~~~~~~~~~~~~~~~~
__copy_siginfo_to_user32
>> arch/x86/kernel/signal.c:525:36: error: invalid application of 'sizeof' to incomplete type 'struct compat_siginfo'
if (copy_to_user(to, &new, sizeof(struct compat_siginfo)))
^~~~~~
arch/x86/kernel/signal.c:518:24: warning: unused variable 'new' [-Wunused-variable]
struct compat_siginfo new;
^~~
cc1: some warnings being treated as errors
vim +518 arch/x86/kernel/signal.c
513
514 #ifdef CONFIG_ARCH_COPY_SIGINFO_TO_USER32
515 int __copy_siginfo_to_user32(struct compat_siginfo __user *to,
516 const struct kernel_siginfo *from, bool x32_ABI)
517 {
> 518 struct compat_siginfo new;
519
> 520 copy_siginfo_to_external32(&new, from);
521 if (x32_ABI && from->si_signo == SIGCHLD) {
522 new._sifields._sigchld_x32._utime = from->si_utime;
523 new._sifields._sigchld_x32._stime = from->si_stime;
524 }
> 525 if (copy_to_user(to, &new, sizeof(struct compat_siginfo)))
526 return -EFAULT;
527 return 0;
528 }
529 int copy_siginfo_to_user32(struct compat_siginfo __user *to,
530 const struct kernel_siginfo *from)
531 {
532 return __copy_siginfo_to_user32(to, from, in_x32_syscall());
533 }
534 #endif /* CONFIG_ARCH_COPY_SIGINFO_TO_USER32 */
535
---
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: 72336 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-29 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 8:44 [hch-misc:set_fs-coredump 5/8] arch/x86/kernel/signal.c:518:24: error: storage size of 'new' isn't known kbuild 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.