tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.poll-annotations head: c71afd844887d5bdbd0c90919b7651811074b272 commit: c71afd844887d5bdbd0c90919b7651811074b272 [23/23] [even more tentative] don't pull uaccess.h into poll.h config: mips-fuloong2e_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout c71afd844887d5bdbd0c90919b7651811074b272 # save the attached .config to linux build tree make.cross ARCH=mips All errors (new ones prefixed by >>): fs/signalfd.c: In function 'signalfd_copyinfo': fs/signalfd.c:90:8: error: implicit declaration of function '__clear_user' [-Werror=implicit-function-declaration] err = __clear_user(uinfo, sizeof(*uinfo)); ^ fs/signalfd.c:96:9: error: implicit declaration of function '__put_user' [-Werror=implicit-function-declaration] err |= __put_user(kinfo->si_signo, &uinfo->ssi_signo); ^ fs/signalfd.c: In function 'SYSC_signalfd4': fs/signalfd.c:269:6: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration] copy_from_user(&sigmask, user_mask, sizeof(sigmask))) ^ fs/signalfd.c: In function 'C_SYSC_signalfd4': >> fs/signalfd.c:331:6: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration] if (copy_to_user(ksigmask, &tmp, sizeof(sigset_t))) ^ cc1: some warnings being treated as errors -- sound/core/seq/seq_clientmgr.c: In function 'snd_enter_user': sound/core/seq/seq_clientmgr.c:93:20: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] mm_segment_t fs = get_fs(); ^ sound/core/seq/seq_clientmgr.c:93:20: error: invalid initializer sound/core/seq/seq_clientmgr.c:94:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] set_fs(get_ds()); ^ sound/core/seq/seq_clientmgr.c:94:9: error: implicit declaration of function 'get_ds' [-Werror=implicit-function-declaration] set_fs(get_ds()); ^ sound/core/seq/seq_clientmgr.c: In function 'snd_seq_read': sound/core/seq/seq_clientmgr.c:409:7: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration] if (!access_ok(VERIFY_WRITE, buf, count)) ^ sound/core/seq/seq_clientmgr.c:409:17: error: 'VERIFY_WRITE' undeclared (first use in this function) if (!access_ok(VERIFY_WRITE, buf, count)) ^ sound/core/seq/seq_clientmgr.c:409:17: note: each undeclared identifier is reported only once for each function it appears in sound/core/seq/seq_clientmgr.c:442:8: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration] if (copy_to_user(buf, &tmpev, sizeof(struct snd_seq_event))) { ^ sound/core/seq/seq_clientmgr.c: In function 'snd_seq_write': sound/core/seq/seq_clientmgr.c:1034:7: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration] if (copy_from_user(&event, buf, len)) { ^ sound/core/seq/seq_clientmgr.c: In function 'snd_seq_do_ioctl': sound/core/seq/seq_clientmgr.c:2199:10: error: implicit declaration of function 'put_user' [-Werror=implicit-function-declaration] return put_user(SNDRV_SEQ_VERSION, (int __user *)arg) ? -EFAULT : 0; ^ In file included from sound/core/seq/seq_clientmgr.c:2228:0: sound/core/seq/seq_compat.c: In function 'snd_seq_call_port_info_ioctl': >> sound/core/seq/seq_compat.c:56:6: error: implicit declaration of function 'get_user' [-Werror=implicit-function-declaration] if (get_user(data->flags, &data32->flags) || ^ cc1: some warnings being treated as errors vim +/copy_to_user +331 fs/signalfd.c 7d197ed4 Al Viro 2013-02-24 315 #ifdef CONFIG_COMPAT 7d197ed4 Al Viro 2013-02-24 316 COMPAT_SYSCALL_DEFINE4(signalfd4, int, ufd, 7d197ed4 Al Viro 2013-02-24 317 const compat_sigset_t __user *,sigmask, 7d197ed4 Al Viro 2013-02-24 318 compat_size_t, sigsetsize, 7d197ed4 Al Viro 2013-02-24 319 int, flags) 7d197ed4 Al Viro 2013-02-24 320 { 7d197ed4 Al Viro 2013-02-24 321 compat_sigset_t ss32; 7d197ed4 Al Viro 2013-02-24 322 sigset_t tmp; 7d197ed4 Al Viro 2013-02-24 323 sigset_t __user *ksigmask; 7d197ed4 Al Viro 2013-02-24 324 7d197ed4 Al Viro 2013-02-24 325 if (sigsetsize != sizeof(compat_sigset_t)) 7d197ed4 Al Viro 2013-02-24 326 return -EINVAL; 7d197ed4 Al Viro 2013-02-24 327 if (copy_from_user(&ss32, sigmask, sizeof(ss32))) 7d197ed4 Al Viro 2013-02-24 328 return -EFAULT; 7d197ed4 Al Viro 2013-02-24 329 sigset_from_compat(&tmp, &ss32); 7d197ed4 Al Viro 2013-02-24 330 ksigmask = compat_alloc_user_space(sizeof(sigset_t)); 7d197ed4 Al Viro 2013-02-24 @331 if (copy_to_user(ksigmask, &tmp, sizeof(sigset_t))) 7d197ed4 Al Viro 2013-02-24 332 return -EFAULT; 7d197ed4 Al Viro 2013-02-24 333 7d197ed4 Al Viro 2013-02-24 334 return sys_signalfd4(ufd, ksigmask, sizeof(sigset_t), flags); 7d197ed4 Al Viro 2013-02-24 335 } 7d197ed4 Al Viro 2013-02-24 336 7d197ed4 Al Viro 2013-02-24 337 COMPAT_SYSCALL_DEFINE3(signalfd, int, ufd, 7d197ed4 Al Viro 2013-02-24 338 const compat_sigset_t __user *,sigmask, 7d197ed4 Al Viro 2013-02-24 339 compat_size_t, sigsetsize) :::::: The code at line 331 was first introduced by commit :::::: 7d197ed4a68e76000070979563051e08bf6fc0aa switch signalfd{,4}() to COMPAT_SYSCALL_DEFINE :::::: TO: Al Viro <viro@xxxxxxxxxxxxxxxxxx> :::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data