net: cpsw: Add __maybe_unused to generated inlines
authorTom Rini <trini@konsulko.com>
Thu, 4 Jun 2020 20:05:32 +0000 (16:05 -0400)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 16 Jun 2020 11:30:02 +0000 (17:00 +0530)
commiteab48865f93a19e2a196a6c4e3480f16df4027d9
treeb7bce74a0f236d50169c9b5243dbe3326b54daba
parent2af17e2573e8f4b949658ac45cad2e825e5aedc0
net: cpsw: Add __maybe_unused to generated inlines

We generate a number of helper inline functions to make accesses easier.
However not all permutations of each function will be used and clang
will warn about unused ones.  Decorate all of them with __maybe_unused
because of this.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
drivers/net/ti/cpsw.c