diff options
| author | YueHaibing <[email protected]> | 2021-06-01 22:01:48 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-01 17:00:51 -0700 |
| commit | 6990c7f44c0dee4de6cf43fee0e5e7680c1a973a (patch) | |
| tree | fdd296916a0c45ad6a46412ff16032ea7739ac3c /tools/perf/scripts/python/check-perf-trace.py | |
| parent | e516f5be5b17cdae68d14206451b64d36f9588e4 (diff) | |
cxgb4: Fix -Wunused-const-variable warning
If CONFIG_PCI_IOV is n, make W=1 warns:
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:3909:33:
warning: ‘cxgb4_mgmt_ethtool_ops’ defined but not used [-Wunused-const-variable=]
static const struct ethtool_ops cxgb4_mgmt_ethtool_ops = {
^~~~~~~~~~~~~~~~~~~~~~
Move it into #ifdef block to fix this.
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions