Skip to content

Commit 6b0856e

Browse files
SiFiveHollandConchuOD
authored andcommitted
cache: sifive_ccache: Silence unused variable warning
With W=1 and CONFIG_RISCV_NONSTANDARD_CACHE_OPS=n, GCC warns: drivers/cache/sifive_ccache.c: In function 'sifive_ccache_init': drivers/cache/sifive_ccache.c:293:23: warning: variable 'quirks' set but not used [-Wunused-but-set-variable] 293 | unsigned long quirks; | ^~~~~~ This is expected, since QUIRK_NONSTANDARD_CACHE_OPS is the only quirk still handled in this function. Fixes: c90847b ("cache: sifive_ccache: Partially convert to a platform driver") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Samuel Holland <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent c90847b commit 6b0856e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cache/sifive_ccache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int __init sifive_ccache_init(void)
290290
struct device_node *np;
291291
struct resource res;
292292
const struct of_device_id *match;
293-
unsigned long quirks;
293+
unsigned long quirks __maybe_unused;
294294
int rc;
295295

296296
np = of_find_matching_node_and_match(NULL, sifive_ccache_ids, &match);

0 commit comments

Comments
 (0)