* [vfs:work.tty-ioctl 49/50] drivers/tty/pty.c:688:41: error: implicit declaration of function 'compat_ptr'
@ 2018-09-13 2:06 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-09-13 2:06 UTC (permalink / raw)
To: Al Viro; +Cc: kbuild-all, linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
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 #2: .config.gz --]
[-- Type: application/gzip, Size: 7798 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-13 7:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 2:06 [vfs:work.tty-ioctl 49/50] drivers/tty/pty.c:688:41: error: implicit declaration of function 'compat_ptr' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).