Re: [PATCH] net: tsec: mark tsec_set_promisc() as __maybe_unused

2021-11-03 Thread Ramon Fried
On Sun, Oct 31, 2021 at 11:52 PM Vladimir Oltean wrote: > > Since the tsec driver supports both configurations with and without > DM_ETH, and since the eth_ops :: set_promisc() method is only provided > for DM_ETH, the implication is that builds with DM_ETH disabled will > result in a 'defined

[PATCH] net: tsec: mark tsec_set_promisc() as __maybe_unused

2021-10-31 Thread Vladimir Oltean
Since the tsec driver supports both configurations with and without DM_ETH, and since the eth_ops :: set_promisc() method is only provided for DM_ETH, the implication is that builds with DM_ETH disabled will result in a 'defined but not used' warning. To silence those, mark the function as