mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-04 04:44:37 +08:00
43d281662f
The enic driver relies on the CONFIG_CPUMASK_OFFSTACK feature to
dynamically allocate a struct member, but this is normally intended for
local variables.
Building with clang, I get a warning for a few locations that check the
address of the cpumask_var_t:
drivers/net/ethernet/cisco/enic/enic_main.c:122:22: error: address of array 'enic->msix[i].affinity_mask' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
As far as I can tell, the code is still correct, as the truth value of
the pointer is what we need in this configuration. To get rid of
the warning, use cpumask_available() instead of checking the
pointer directly.
Fixes:
|
||
---|---|---|
.. | ||
cq_desc.h | ||
cq_enet_desc.h | ||
enic_api.c | ||
enic_api.h | ||
enic_clsf.c | ||
enic_clsf.h | ||
enic_dev.c | ||
enic_dev.h | ||
enic_ethtool.c | ||
enic_main.c | ||
enic_pp.c | ||
enic_pp.h | ||
enic_res.c | ||
enic_res.h | ||
enic.h | ||
Kconfig | ||
Makefile | ||
rq_enet_desc.h | ||
vnic_cq.c | ||
vnic_cq.h | ||
vnic_dev.c | ||
vnic_dev.h | ||
vnic_devcmd.h | ||
vnic_enet.h | ||
vnic_intr.c | ||
vnic_intr.h | ||
vnic_nic.h | ||
vnic_resource.h | ||
vnic_rq.c | ||
vnic_rq.h | ||
vnic_rss.h | ||
vnic_stats.h | ||
vnic_vic.c | ||
vnic_vic.h | ||
vnic_wq.c | ||
vnic_wq.h | ||
wq_enet_desc.h |