lkml.org 
[lkml]   [2017]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 2/3] net: dsa: move HWMON support to its own file
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-01-03 23:35    [W:0.066 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site