diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-05-20 14:32:30 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2022-05-22 10:24:14 +0000 |
| commit | 30b5e6ef4a32ea4985b99200e06d6660a69f9246 (patch) | |
| tree | e57408bd7b9367af676f82be630a6b714932b43a /fs/jbd2/commit.c | |
| parent | m68k: math-emu: Fix dependencies of math emulation support (diff) | |
| download | kernel-30b5e6ef4a32ea4985b99200e06d6660a69f9246.tar.gz kernel-30b5e6ef4a32ea4985b99200e06d6660a69f9246.zip | |
m68k: atari: Make Atari ROM port I/O write macros return void
The macros implementing Atari ROM port I/O writes do not cast away their
output, unlike similar implementations for other I/O buses.
When they are combined using conditional expressions in the definitions of
outb() and friends, this triggers sparse warnings like:
drivers/net/appletalk/cops.c:382:17: error: incompatible types in conditional expression (different base types):
drivers/net/appletalk/cops.c:382:17: unsigned char
drivers/net/appletalk/cops.c:382:17: void
Fix this by adding casts to "void".
Reported-by: kernel test robot <[email protected]>
Reported-by: Guenter Roeck <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Michael Schmitz <[email protected]>
Link: https://lore.kernel.org/r/c15bedc83d90a14fffcd5b1b6bfb32b8a80282c5.1653057096.git.geert@linux-m68k.org
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
