All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:set_fs-net-ioctl 4/4] net/appletalk/ddp.c:1868:10: error: implicit declaration of function 'atrtr_ioctl_add'
@ 2020-05-14 14:27 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-14 14:27 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git set_fs-net-ioctl
head:   14f156db8b84f1cd41f870a1c5b10228ef2b5378
commit: 14f156db8b84f1cd41f870a1c5b10228ef2b5378 [4/4] ipv4,appletalk: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl
config: arm64-randconfig-r002-20200514 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project a52f10b5a382c040e7ad1ce933cda6c07a4b3a8d)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git checkout 14f156db8b84f1cd41f870a1c5b10228ef2b5378
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> net/appletalk/ddp.c:1868:10: error: implicit declaration of function 'atrtr_ioctl_add' [-Werror,-Wimplicit-function-declaration]
return atrtr_ioctl_add(&rt);
^
net/appletalk/ddp.c:1868:10: note: did you mean 'atrtr_ioctl_addrt'?
net/appletalk/ddp.c:871:12: note: 'atrtr_ioctl_addrt' declared here
static int atrtr_ioctl_addrt(struct rtentry *rt)
^
1 error generated.

vim +/atrtr_ioctl_add +1868 net/appletalk/ddp.c

  1840	
  1841	
  1842	#ifdef CONFIG_COMPAT
  1843	static int atalk_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
  1844			struct compat_rtentry __user *ur)
  1845	{
  1846		struct rtentry rt;
  1847		compat_uptr_t rtdev;
  1848	
  1849		if (copy_from_user(&rt.rt_dst, &ur->rt_dst,
  1850				3 * sizeof(struct sockaddr)) ||
  1851		    get_user(rt.rt_flags, &ur->rt_flags) ||
  1852		    get_user(rt.rt_metric, &ur->rt_metric) ||
  1853		    get_user(rt.rt_mtu, &ur->rt_mtu) ||
  1854		    get_user(rt.rt_window, &ur->rt_window) ||
  1855		    get_user(rt.rt_irtt, &ur->rt_irtt) ||
  1856		    get_user(rtdev, &ur->rt_dev))
  1857			return -EFAULT;
  1858	
  1859		switch (cmd) {
  1860		case SIOCDELRT:
  1861			if (rt.rt_dst.sa_family != AF_APPLETALK)
  1862				return -EINVAL;
  1863			return atrtr_delete(&((struct sockaddr_at *)
  1864					      &rt.rt_dst)->sat_addr);
  1865	
  1866		case SIOCADDRT:
  1867			rt.rt_dev = compat_ptr(rtdev);
> 1868			return atrtr_ioctl_add(&rt);
  1869		default:
  1870			return -EINVAL;
  1871		}
  1872	}
  1873	static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
  1874	{
  1875		struct sock *sk = sock->sk;
  1876		void __user *argp = compat_ptr(arg);
  1877	
  1878		switch (cmd) {
  1879		case SIOCADDRT:
  1880		case SIOCDELRT:
  1881			return atalk_compat_routing_ioctl(sk, cmd, argp);
  1882		/*
  1883		 * SIOCATALKDIFADDR is a SIOCPROTOPRIVATE ioctl number, so we
  1884		 * cannot handle it in common code. The data we access if ifreq
  1885		 * here is compatible, so we can simply call the native
  1886		 * handler.
  1887		 */
  1888		case SIOCATALKDIFADDR:
  1889			return atalk_ioctl(sock, cmd, (unsigned long)argp);
  1890		default:
  1891			return -ENOIOCTLCMD;
  1892		}
  1893	}
  1894	#endif /* CONFIG_COMPAT */
  1895	
  1896	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37684 bytes --]

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

only message in thread, other threads:[~2020-05-14 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 14:27 [hch-misc:set_fs-net-ioctl 4/4] net/appletalk/ddp.c:1868:10: error: implicit declaration of function 'atrtr_ioctl_add' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.