mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e70a57fa59
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:
|
||
---|---|---|
.. | ||
clip_tbl.c | ||
clip_tbl.h | ||
cudbg_common.c | ||
cudbg_entity.h | ||
cudbg_if.h | ||
cudbg_lib_common.h | ||
cudbg_lib.c | ||
cudbg_lib.h | ||
cudbg_zlib.c | ||
cudbg_zlib.h | ||
cxgb4_cudbg.c | ||
cxgb4_cudbg.h | ||
cxgb4_dcb.c | ||
cxgb4_dcb.h | ||
cxgb4_debugfs.c | ||
cxgb4_debugfs.h | ||
cxgb4_ethtool.c | ||
cxgb4_fcoe.c | ||
cxgb4_fcoe.h | ||
cxgb4_filter.c | ||
cxgb4_filter.h | ||
cxgb4_main.c | ||
cxgb4_ptp.c | ||
cxgb4_ptp.h | ||
cxgb4_tc_flower.c | ||
cxgb4_tc_flower.h | ||
cxgb4_tc_u32_parse.h | ||
cxgb4_tc_u32.c | ||
cxgb4_tc_u32.h | ||
cxgb4_thermal.c | ||
cxgb4_uld.c | ||
cxgb4_uld.h | ||
cxgb4.h | ||
l2t.c | ||
l2t.h | ||
Makefile | ||
sched.c | ||
sched.h | ||
sge.c | ||
smt.c | ||
smt.h | ||
srq.c | ||
srq.h | ||
t4_chip_type.h | ||
t4_hw.c | ||
t4_hw.h | ||
t4_msg.h | ||
t4_pci_id_tbl.h | ||
t4_regs.h | ||
t4_tcb.h | ||
t4_values.h | ||
t4fw_api.h | ||
t4fw_version.h |