Re: [PATCH net-next 2/3] net: dsa: move HWMON support to its own file
From: kbuild test robot
Date: Tue Jan 03 2017 - 17:34:51 EST
Hi Vivien,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Vivien-Didelot/net-dsa-restore-HWMON-support-in-dsa2/20170104-055351
config: i386-randconfig-x005-201701 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from net/dsa/dsa.c:26:0:
>> net/dsa/dsa_priv.h:61:5: warning: "CONFIG_NET_DSA_HWMON" is not defined [-Wundef]
#if CONFIG_NET_DSA_HWMON
^~~~~~~~~~~~~~~~~~~~
vim +/CONFIG_NET_DSA_HWMON +61 net/dsa/dsa_priv.h
45 struct net_device *bridge_dev;
46 #ifdef CONFIG_NET_POLL_CONTROLLER
47 struct netpoll *netpoll;
48 #endif
49 };
50
51 /* dsa.c */
52 extern char dsa_driver_version[];
53 int dsa_cpu_dsa_setup(struct dsa_switch *ds, struct device *dev,
54 struct device_node *port_dn, int port);
55 void dsa_cpu_dsa_destroy(struct device_node *port_dn);
56 const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol);
57 int dsa_cpu_port_ethtool_setup(struct dsa_switch *ds);
58 void dsa_cpu_port_ethtool_restore(struct dsa_switch *ds);
59
60 /* hwmon.c */
> 61 #if CONFIG_NET_DSA_HWMON
62 void dsa_hwmon_register(struct dsa_switch *ds);
63 void dsa_hwmon_unregister(struct dsa_switch *ds);
64 #else
65 static inline void dsa_hwmon_register(struct dsa_switch *ds) { }
66 static inline void dsa_hwmon_unregister(struct dsa_switch *ds) { }
67 #endif
68
69 /* slave.c */
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip