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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202403311253.Z4NvIBxI-lkp@intel.com/ Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent c90847b commit 6b0856e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)