Skip to content

Commit

Permalink
video: fbdev: controlfb: Fix set but not used warnings
Browse files Browse the repository at this point in the history
The controlfb driver has a number of dummy defines for IO operations.
They were introduced in commit a07a63b
("video: fbdev: controlfb: add COMPILE_TEST support").

The write variants did not use their value parameter in the
dummy versions, resulting in set but not used warnings.
Fix this by adding "(void)val" to silence the compiler.

Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Cc: "Gustavo A. R. Silva" <[email protected]>
Cc: Michael Ellerman <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
sravnborg committed Dec 8, 2020
1 parent 86925b9 commit 4aca4db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/controlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
#undef in_le32
#undef out_le32
#define in_8(addr) 0
#define out_8(addr, val)
#define out_8(addr, val) (void)(val)
#define in_le32(addr) 0
#define out_le32(addr, val)
#define out_le32(addr, val) (void)(val)
#define pgprot_cached_wthru(prot) (prot)
#else
static void invalid_vram_cache(void __force *addr)
Expand Down

0 comments on commit 4aca4db

Please sign in to comment.