]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: mark symbols static where possible
authorBaoyou Xie <baoyou.xie@linaro.org>
Sun, 18 Sep 2016 08:35:29 +0000 (16:35 +0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:05:36 +0000 (20:05 -0500)
commit60280b3c46d527d63f66d42c1ae1b273ebc94a1f
treecbc73f379d77407b00a20528ee90c63e851c5802
parent7dd81426c8855c1fad7a518cb585e28bc8468977
be2net: mark symbols static where possible

Orabug: 25570957

We get 4 warnings when building kernel with W=1:
drivers/net/ethernet/emulex/benet/be_main.c:4368:6: warning: no previous prototype for 'be_calculate_pf_pool_rss_tables' [-Wmissing-prototypes]
drivers/net/ethernet/emulex/benet/be_cmds.c:4385:5: warning: no previous prototype for 'be_get_nic_pf_num_list' [-Wmissing-prototypes]
drivers/net/ethernet/emulex/benet/be_cmds.c:4537:6: warning: no previous prototype for 'be_reset_nic_desc' [-Wmissing-prototypes]
drivers/net/ethernet/emulex/benet/be_cmds.c:4910:5: warning: no previous prototype for '__be_cmd_set_logical_link_config' [-Wmissing-prototypes]

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit d766e7e6b68d681d46d74e228ad0ba133e730e36)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c