ixgbe: do not compile ixgbe_sysfs.c when CONFIG_IXGBE_HWMON is not set
ixgbe_sysfs.c is only needed when CONFIG_IXGBE_HWMON is configured in the kernel. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Acked-by: Don Skidmore <Donald.c.skidmore@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
4f8a91ad9a
commit
6cbc52ef10
@@ -34,11 +34,11 @@ obj-$(CONFIG_IXGBE) += ixgbe.o
|
|||||||
|
|
||||||
ixgbe-objs := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \
|
ixgbe-objs := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \
|
||||||
ixgbe_82599.o ixgbe_82598.o ixgbe_phy.o ixgbe_sriov.o \
|
ixgbe_82599.o ixgbe_82598.o ixgbe_phy.o ixgbe_sriov.o \
|
||||||
ixgbe_mbx.o ixgbe_x540.o ixgbe_sysfs.o ixgbe_lib.o
|
ixgbe_mbx.o ixgbe_x540.o ixgbe_lib.o
|
||||||
|
|
||||||
ixgbe-$(CONFIG_IXGBE_DCB) += ixgbe_dcb.o ixgbe_dcb_82598.o \
|
ixgbe-$(CONFIG_IXGBE_DCB) += ixgbe_dcb.o ixgbe_dcb_82598.o \
|
||||||
ixgbe_dcb_82599.o ixgbe_dcb_nl.o
|
ixgbe_dcb_82599.o ixgbe_dcb_nl.o
|
||||||
|
|
||||||
ixgbe-$(CONFIG_IXGBE_PTP) += ixgbe_ptp.o
|
ixgbe-$(CONFIG_IXGBE_PTP) += ixgbe_ptp.o
|
||||||
|
ixgbe-$(CONFIG_IXGBE_HWMON) += ixgbe_sysfs.o
|
||||||
ixgbe-$(CONFIG_FCOE:m=y) += ixgbe_fcoe.o
|
ixgbe-$(CONFIG_FCOE:m=y) += ixgbe_fcoe.o
|
||||||
|
@@ -37,7 +37,6 @@
|
|||||||
#include <linux/netdevice.h>
|
#include <linux/netdevice.h>
|
||||||
#include <linux/hwmon.h>
|
#include <linux/hwmon.h>
|
||||||
|
|
||||||
#ifdef CONFIG_IXGBE_HWMON
|
|
||||||
/* hwmon callback functions */
|
/* hwmon callback functions */
|
||||||
static ssize_t ixgbe_hwmon_show_location(struct device *dev,
|
static ssize_t ixgbe_hwmon_show_location(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
@@ -241,5 +240,4 @@ err:
|
|||||||
exit:
|
exit:
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IXGBE_HWMON */
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user