linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vfs:for-next 82/90] net//bluetooth/hci_sock.c:1068:51: error: implicit declaration of function 'compat_ptr'; did you mean 'complete'?
@ 2018-10-29 22:40 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-10-29 22:40 UTC (permalink / raw)
  To: Al Viro; +Cc: kbuild-all, linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-next
head:   8182aacdaa8d6af4135b7cc2ec415df0a664304e
commit: 4a5b8907d1dc21ea4e3b6ef8c2ff0d24713c3dce [82/90] bluetooth: fix compat ioctl
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4a5b8907d1dc21ea4e3b6ef8c2ff0d24713c3dce
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   net//bluetooth/hci_sock.c: In function 'hci_sock_compat_ioctl':
>> net//bluetooth/hci_sock.c:1068:51: error: implicit declaration of function 'compat_ptr'; did you mean 'complete'? [-Werror=implicit-function-declaration]
      return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
                                                      ^~~~~~~~~~
                                                      complete
   net//bluetooth/hci_sock.c: At top level:
>> net//bluetooth/hci_sock.c:1992:3: error: 'const struct proto_ops' has no member named 'compat_ioctl'
     .compat_ioctl = hci_sock_compat_ioctl,
      ^~~~~~~~~~~~
>> net//bluetooth/hci_sock.c:1992:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .compat_ioctl = hci_sock_compat_ioctl,
                     ^~~~~~~~~~~~~~~~~~~~~
   net//bluetooth/hci_sock.c:1992:18: note: (near initialization for 'hci_sock_ops.listen')
   cc1: some warnings being treated as errors

vim +1068 net//bluetooth/hci_sock.c

  1057	
  1058	static int hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd,
  1059				  unsigned long arg)
  1060	{
  1061		switch (cmd) {
  1062		case HCIDEVUP:
  1063		case HCIDEVDOWN:
  1064		case HCIDEVRESET:
  1065		case HCIDEVRESTAT:
  1066			return hci_sock_ioctl(sock, cmd, arg);
  1067		default:
> 1068			return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
  1069		}
  1070	}
  1071	

---
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: 48867 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-30  7:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29 22:40 [vfs:for-next 82/90] net//bluetooth/hci_sock.c:1068:51: error: implicit declaration of function 'compat_ptr'; did you mean 'complete'? 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).