m68k: atari: Annotate dummy read in ROM port IO code as __maybe_unused
authorMichael Schmitz <schmitzmic@gmail.com>
Sat, 30 May 2020 22:45:19 +0000 (10:45 +1200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Jul 2020 09:39:13 +0000 (11:39 +0200)
commitbe1a31283655105606407502800871b9c1a1132f
tree143e22352fd26af1a8d987874d01b76c297ac008
parent5f5f2949c14d6fe5cfc51bd98a41fdf69652c7e3
m68k: atari: Annotate dummy read in ROM port IO code as __maybe_unused

The Atari ROM port IO code uses dummy variables to implement writes
(not supported by the hardware) as reads that encode the write data
in part of the address. The value read from the ROM port in this
operation is discarded.

Annotate dummy variables as __maybe_unused to avoid a compiler warning
with W=1.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Link: https://lore.kernel.org/r/1590878719-21219-1-git-send-email-schmitzmic@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/raw_io.h