tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 639d109b21f1413c54ca7042e40a57856e7679bb commit: f863ce990030cfc5a57a490b4613be4a523ffce1 [9330/9982] media: dvb: get rid of VIDEO_SET_SPU_PALETTE config: x86_64-kexec (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: git checkout f863ce990030cfc5a57a490b4613be4a523ffce1 # save the attached .config to linux build tree make ARCH=x86_64 Note: the linux-next/master HEAD 639d109b21f1413c54ca7042e40a57856e7679bb builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): fs/compat_ioctl.c: In function 'do_video_set_spu_palette': >> fs/compat_ioctl.c:218:45: error: invalid application of 'sizeof' to incomplete type 'struct video_spu_palette' up_native = compat_alloc_user_space(sizeof(struct video_spu_palette)); ^~~~~~ In file included from include/linux/uaccess.h:14:0, from include/linux/compat.h:19, from fs/compat_ioctl.c:17: >> fs/compat_ioctl.c:219:46: error: dereferencing pointer to incomplete type 'struct video_spu_palette' err = put_user(compat_ptr(palp), &up_native->palette); ^ arch/x86/include/asm/uaccess.h:257:15: note: in definition of macro 'put_user' __typeof__(*(ptr)) __pu_val; \ ^~~ arch/x86/include/asm/uaccess.h:260:11: warning: assignment makes integer from pointer without a cast [-Wint-conversion] __pu_val = x; \ ^ fs/compat_ioctl.c:219:9: note: in expansion of macro 'put_user' err = put_user(compat_ptr(palp), &up_native->palette); ^~~~~~~~ At top level: fs/compat_ioctl.c:206:12: warning: 'do_video_set_spu_palette' defined but not used [-Wunused-function] static int do_video_set_spu_palette(struct file *file, ^~~~~~~~~~~~~~~~~~~~~~~~ vim +218 fs/compat_ioctl.c 6e87abd0 David S. Miller 2005-11-16 205 66cf191f Al Viro 2016-01-07 206 static int do_video_set_spu_palette(struct file *file, b4341721 Jann Horn 2016-01-05 207 unsigned int cmd, struct compat_video_spu_palette __user *up) 6e87abd0 David S. Miller 2005-11-16 208 { 6e87abd0 David S. Miller 2005-11-16 209 struct video_spu_palette __user *up_native; 6e87abd0 David S. Miller 2005-11-16 210 compat_uptr_t palp; 6e87abd0 David S. Miller 2005-11-16 211 int length, err; 6e87abd0 David S. Miller 2005-11-16 212 6e87abd0 David S. Miller 2005-11-16 213 err = get_user(palp, &up->palette); 6e87abd0 David S. Miller 2005-11-16 214 err |= get_user(length, &up->length); 12176503 Kees Cook 2012-10-25 215 if (err) 12176503 Kees Cook 2012-10-25 216 return -EFAULT; 6e87abd0 David S. Miller 2005-11-16 217 6e87abd0 David S. Miller 2005-11-16 @218 up_native = compat_alloc_user_space(sizeof(struct video_spu_palette)); 7116e994 Heiko Carstens 2006-12-06 @219 err = put_user(compat_ptr(palp), &up_native->palette); 7116e994 Heiko Carstens 2006-12-06 220 err |= put_user(length, &up_native->length); 7116e994 Heiko Carstens 2006-12-06 221 if (err) 7116e994 Heiko Carstens 2006-12-06 222 return -EFAULT; 6e87abd0 David S. Miller 2005-11-16 223 66cf191f Al Viro 2016-01-07 224 err = do_ioctl(file, cmd, (unsigned long) up_native); 6e87abd0 David S. Miller 2005-11-16 225 6e87abd0 David S. Miller 2005-11-16 226 return err; 6e87abd0 David S. Miller 2005-11-16 227 } 6e87abd0 David S. Miller 2005-11-16 228 :::::: The code at line 218 was first introduced by commit :::::: 6e87abd0b8cbb23ed9ffe5cc9f790fb5cac45eae [DVB]: Add compat ioctl handling. :::::: TO: David S. Miller <davem@xxxxxxxxxxxxxxxxxxxx> :::::: CC: David S. Miller <davem@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip