Re: [PATCH] staging: rtl8723bs: define wowlan_stub only when CONFIG_PM is enabled
From: Bryan Brattlof
Date: Tue Sep 14 2021 - 18:45:31 EST
On this day, September 14, 2021, thus sayeth Dan Carpenter:
> On Mon, Sep 13, 2021 at 11:42:55PM +0000, Bryan Brattlof wrote:
> > I'll be back with a v2 that rips all of this out.
>
> Or use the __maybe_unused annotation:
>
> static __maybe_unused const struct wiphy_wowlan_support wowlan_stub = {
>
Thanks for the suggestion Dan; I like this much better. :)
I've been poking around with my config today and noticed I can still
produce this warning with CONFIG_PM enabled, which means something else
is going on that I don't fully understand yet.
I may hold off on sending v2 until I make sure I understand what's going
on and double check that I didn't bork my config.
Thanks from jumping in
~Bryan