summaryrefslogtreecommitdiff
path: root/mm/highmem.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-05-19 00:06:45 +0300
committerDavid S. Miller <davem@davemloft.net>2015-05-19 23:40:04 +0300
commit9a03259c3d30d4b1b582072211dc571a68340054 (patch)
treeebf24564cb144c9a60a340a20e22c05b8a83840d /mm/highmem.c
parentaea0929e516a1ff4c4458203d1f3375eee9acc26 (diff)
downloadlinux-9a03259c3d30d4b1b582072211dc571a68340054.tar.xz
be2net: make hwmon interface optional
The hwmon interface in the be2net driver causes a link error when be2net is built-in while the hwmon subsystem is a loadable module: drivers/built-in.o: In function `be_probe': drivers/net/ethernet/emulex/benet/be_main.c:5761: undefined reference to `devm_hwmon_device_register_with_groups' This adds a new Kconfig symbol, following the example of multiple other drivers that have the same problem. The new CONFIG_BE2NET_HWMON will not be available when (BE2NET=y && HWMON=m) to avoid this problem. We have to also mark be_hwmon_show_temp as 'static' to ensure the compiler can optimize out all the unused code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 29e9122b3a ("be2net: Export board temperature using hwmon-sysfs interface.") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/highmem.c')
0 files changed, 0 insertions, 0 deletions