# Re: \[PATCH 5/5\] net-sysfs: make sure objects belong to contrainer's owner

- From: kbuild test robot \<hidden\>
- Date: 2016-08-22 06:04:54 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/08/4819357
- Thread: https://ratatoskr.run/netdev/2016/08/4816051/t.md

```text
Hi Dmitry,

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on v4.8-rc3 next-20160819]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Dmitry-Torokhov/Make-sys-class-net-per-net-namespace-objects-belong-to-container/20160817-064309
config: m68k-m5208evb_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
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
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

   net/core/net-sysfs.c: In function 'net_get_ownership':
>> net/core/net-sysfs.c:1517:2: error: implicit declaration of function 'net_ns_get_ownership' [-Werror=implicit-function-declaration]
     net_ns_get_ownership(net, uid, gid);
     ^
   cc1: some warnings being treated as errors

vim +/net_ns_get_ownership +1517 net/core/net-sysfs.c

  1511	
  1512	static void net_get_ownership(struct device *d, kuid_t *uid, kgid_t *gid)
  1513	{
  1514		struct net_device *dev = to_net_dev(d);
  1515		const struct net *net = dev_net(dev);
  1516	
> 1517		net_ns_get_ownership(net, uid, gid);
  1518	}
  1519	
  1520	static struct class net_class = {

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

## Attachments

- [.config.gz](https://ratatoskr.run/netdev/2016/08/4819357/attachment/0) (application/octet-stream, 7657 bytes)
