summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-08-29 19:15:17 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-30 15:12:05 -0700
commitdaa664a5cdd599583fceb9018c49d783bc5a0d5d (patch)
treea4bb61e31a1cd2a8d2bf3dff653ef474634abdfe /tools/perf/scripts/python/export-to-sqlite.py
parentf2b795ea025c743073933d5a121e22a2c3e66c99 (diff)
net/mlx5e: Move local var definition into ifdef block
New local variable "struct flow_block_offload *f" was added to mlx5e_setup_tc() in recent rtnl lock removal patches. The variable is used in code that is only compiled when CONFIG_MLX5_ESWITCH is enabled. This results compilation warning about unused variable when CONFIG_MLX5_ESWITCH is not set. Move the variable definition into eswitch-specific code block from the beginning of mlx5e_setup_tc() function. Fixes: c9f14470d048 ("net: sched: add API for registering unlocked offload block callbacks") Reported-by: tanhuazhong <tanhuazhong@huawei.com> Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions