[vfs:work.tty-ioctl 49/50] drivers/tty/pty.c:688:41: error: implicit declaration of function 'compat_ptr'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.tty-ioctl
head:   5813bfc971394b8bab482bbb4f26a68d34c6cfb3
commit: 6c8b7b17bd0d9cc3e5d5b1f644fa98227b32e0ab [49/50] pty: fix compat ioctls
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6c8b7b17bd0d9cc3e5d5b1f644fa98227b32e0ab
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   drivers/tty/pty.c: In function 'pty_unix98_compat_ioctl':
>> drivers/tty/pty.c:688:41: error: implicit declaration of function 'compat_ptr' [-Werror=implicit-function-declaration]
      cmd == TIOCSIG ? arg : (unsigned long)compat_ptr(arg));
                                            ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/compat_ptr +688 drivers/tty/pty.c

   679	
   680	static long pty_unix98_compat_ioctl(struct tty_struct *tty,
   681					 unsigned int cmd, unsigned long arg)
   682	{
   683		/*
   684		 * PTY ioctls don't require any special translation between 32-bit and
   685		 * 64-bit userspace, they are already compatible.
   686		 */
   687		return pty_unix98_ioctl(tty, cmd,
 > 688			cmd == TIOCSIG ? arg : (unsigned long)compat_ptr(arg));
   689	}
   690	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux