commit | ec1c20b02ae0bdce82b54b1b8a1e72e86d45f672 | [log] [tgz] |
---|---|---|
author | Sam Ravnborg <[email protected]> | Sun Dec 06 20:02:46 2020 +0100 |
committer | Greg Kroah-Hartman <[email protected]> | Fri Apr 08 14:40:05 2022 +0200 |
tree | d4298d762a54dcdd25f3bb7141d5dafbaf56f6cd | |
parent | f8bf19f7f3112f28b55222977687ce729cc217e3 [diff] |
video: fbdev: controlfb: Fix set but not used warnings [ Upstream commit 4aca4dbcac9d8eed8a8dc15b6883270a20a84218 ] The controlfb driver has a number of dummy defines for IO operations. They were introduced in commit a07a63b0e24d ("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] Signed-off-by: Sasha Levin <[email protected]>