aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRen Zhijie <[email protected]>2022-09-19 10:58:40 +0800
committerJakub Kicinski <[email protected]>2022-09-20 16:47:49 -0700
commit54b9a2bb6c013a34cfdb5a6241367b003773662f (patch)
treefc6f1a24fdf28abad1ea4a23778ecebfe85bf8cd /tools/perf/scripts/python/stackcollapse.py
parent1229b33973c7b89e989945a3edae7a17b6f909da (diff)
octeontx2-pf: Fix unused variable build error
If CONFIG_DCB is not set, make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu-, will be failed, like this: drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c: In function ‘otx2_select_queue’: drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1886:19: error: unused variable ‘pf’ [-Werror=unused-variable] struct otx2_nic *pf = netdev_priv(netdev); ^~ cc1: all warnings being treated as errors To fix this build error, put the definition of *pf under the CONFIG_DCB. Fixes: 99c969a83d82 ("octeontx2-pf: Add egress PFC support") Signed-off-by: Ren Zhijie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions