video: fbdev: controlfb: Fix set but not used warnings
[ Upstream commit4aca4dbcac] The controlfb driver has a number of dummy defines for IO operations. They were introduced in commita07a63b0e2("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 <sam@ravnborg.org> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Link: https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-13-sam@ravnborg.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f8bf19f7f3
commit
ec1c20b02a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue