]> git.baikalelectronics.ru Git - kernel.git/commit
net: hwbm: if CONFIG_NET_HWBM unset, make stub functions static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Wed, 23 Oct 2019 10:01:39 +0000 (11:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Oct 2019 23:24:32 +0000 (16:24 -0700)
commitabd0f0eacc88cb5601d2b94e5a7c245a1c97dc1b
treee538dc4d5234b2e01bccb1acf6a1b1f6130309fd
parent06d8dd5bbd9d6b100455902d52529f4f07516ede
net: hwbm: if CONFIG_NET_HWBM unset, make stub functions static

If CONFIG_NET_HWBM is not set, then these stub functions in
<net/hwbm.h> should be declared static to avoid trying to
export them from any driver that includes this.

Fixes the following sparse warnings:

./include/net/hwbm.h:24:6: warning: symbol 'hwbm_buf_free' was not declared. Should it be static?
./include/net/hwbm.h:25:5: warning: symbol 'hwbm_pool_refill' was not declared. Should it be static?
./include/net/hwbm.h:26:5: warning: symbol 'hwbm_pool_add' was not declared. Should it be static?

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/hwbm.h