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

2019-10-22 Thread Ben Dooks
On 22/10/2019 16:18, 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. Note, add __maybe_unused as the marvell mvneta.c driver will otherwise cause gcc warnings fr

[PATCH] 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. Note, add __maybe_unused as the marvell mvneta.c driver will otherwise cause gcc warnings from these. Fixes the following sparse warnings: ./i