linux_dsm_epyc7002/drivers/net/ethernet/chelsio/cxgb4
Arnd Bergmann e70a57fa59 cxgb4: fix thermal configuration dependencies
With CONFIG_THERMAL=m, we get a build error:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c: In function 'cxgb4_thermal_get_trip_type':
drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c:48:11: error: 'struct adapter' has no member named 'ch_thermal'

Once that is fixed by using IS_ENABLED() checks, we get a link error
against the thermal subsystem when cxgb4 is built-in:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_init':
cxgb4_thermal.c:(.text+0x180): undefined reference to `thermal_zone_device_register'
drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_remove':
cxgb4_thermal.c:(.text+0x1e0): undefined reference to `thermal_zone_device_unregister'

Finally, since CONFIG_THERMAL can be =m, the Makefile fails to pick up the
extra file into built-in.a, and we get another link failure against the
cxgb4_thermal_init/cxgb4_thermal_remove files, so the Makefile has to
be adapted as well to work for both CONFIG_THERMAL=y and =m.

Fixes: b187191577 ("cxgb4: Add thermal zone support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-11 10:21:15 -07:00
..
clip_tbl.c treewide: kvzalloc() -> kvcalloc() 2018-06-12 16:19:22 -07:00
clip_tbl.h
cudbg_common.c
cudbg_entity.h cxgb4: collect hardware queue descriptors 2018-09-03 22:10:37 -07:00
cudbg_if.h cxgb4: collect hardware queue descriptors 2018-09-03 22:10:37 -07:00
cudbg_lib_common.h
cudbg_lib.c cxgb4: collect hardware queue descriptors 2018-09-03 22:10:37 -07:00
cudbg_lib.h cxgb4: collect hardware queue descriptors 2018-09-03 22:10:37 -07:00
cudbg_zlib.c
cudbg_zlib.h
cxgb4_cudbg.c cxgb4: collect hardware queue descriptors 2018-09-03 22:10:37 -07:00
cxgb4_cudbg.h cxgb4: collect hardware dump in second kernel 2018-05-14 13:46:05 -04:00
cxgb4_dcb.c cxgb4: Use proper enum in cxgb4_dcb_handle_fw_update 2018-10-02 22:30:26 -07:00
cxgb4_dcb.h cxgb4: Use proper enum in IEEE_FAUX_SYNC 2018-10-02 22:30:52 -07:00
cxgb4_debugfs.c cxgb4: add per rx-queue counter for packet errors 2018-09-14 08:40:53 -07:00
cxgb4_debugfs.h
cxgb4_ethtool.c cxgb4: do not return DUPLEX_UNKNOWN when link is down 2018-07-16 13:43:10 -07:00
cxgb4_fcoe.c
cxgb4_fcoe.h
cxgb4_filter.c cxgb4: mk_act_open_req() buggers ->{local, peer}_ip on big-endian hosts 2018-08-07 12:33:58 -07:00
cxgb4_filter.h
cxgb4_main.c cxgb4: fix thermal configuration dependencies 2018-10-11 10:21:15 -07:00
cxgb4_ptp.c
cxgb4_ptp.h
cxgb4_tc_flower.c net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
cxgb4_tc_flower.h
cxgb4_tc_u32_parse.h
cxgb4_tc_u32.c net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
cxgb4_tc_u32.h
cxgb4_thermal.c cxgb4: Add thermal zone support 2018-10-09 11:16:28 -07:00
cxgb4_uld.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cxgb4_uld.h
cxgb4.h cxgb4: fix thermal configuration dependencies 2018-10-11 10:21:15 -07:00
l2t.c cxgb4: update supported DCB version 2018-09-14 08:50:23 -07:00
l2t.h
Makefile cxgb4: fix thermal configuration dependencies 2018-10-11 10:21:15 -07:00
sched.c cxgb4: remove the unneeded locks 2018-10-03 09:34:52 -07:00
sched.h cxgb4: remove the unneeded locks 2018-10-03 09:34:52 -07:00
sge.c cxgb4: add per rx-queue counter for packet errors 2018-09-14 08:40:53 -07:00
smt.c
smt.h
srq.c
srq.h
t4_chip_type.h cxgb4: clean up init_one 2018-05-25 14:59:38 -04:00
t4_hw.c cxgb4: use FW_PORT_ACTION_L1_CFG32 for 32 bit capability 2018-10-05 10:34:18 -07:00
t4_hw.h
t4_msg.h cxgb4: fix abort_req_rss6 struct 2018-09-11 09:02:02 -06:00
t4_pci_id_tbl.h cxgb4: Add new T5 PCI device ids 0x50af and 0x50b0 2018-08-14 10:08:56 -07:00
t4_regs.h cxgb4: collect number of free PSTRUCT page pointers 2018-07-24 10:12:21 -07:00
t4_tcb.h
t4_values.h
t4fw_api.h cxgb4: Add thermal zone support 2018-10-09 11:16:28 -07:00
t4fw_version.h cxgb4: update 1.20.8.0 as the latest firmware supported 2018-08-09 14:35:42 -07:00