Re: [PATCH] [V2] net: hwbm: if CONFIG_NET_HWBM unset, make stub functions static

2019-10-22 Thread Jakub Kicinski
On Tue, 22 Oct 2019 16:25:51 +0100, Ben Dooks (Codethink) wrote: > If CONFIG_NET_HWBM is not set, then these stub functions in > 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:

[PATCH] [V2] net: hwbm: if CONFIG_NET_HWBM unset, make stub functions static

2019-10-22 Thread Ben Dooks (Codethink)
If CONFIG_NET_HWBM is not set, then these stub functions in 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? ./inclu