Files
twx-linux/arch/arm/include/asm
Arnd Bergmann 58fca2f156 ARM: 8584/1: floppy: avoid gcc-6 warning
commit dd665be0e2 upstream.

gcc-6.0 warns about comparisons between two identical expressions,
which is what we get in the floppy driver when writing to the FD_DOR
register:

drivers/block/floppy.c: In function 'set_dor':
drivers/block/floppy.c:810:44: error: self-comparison always evaluates to true [-Werror=tautological-compare]
   fd_outb(newdor, FD_DOR);

It would be nice to use a static inline function instead of the
macro, to avoid the warning, but we cannot do that because the
FD_DOR definition is incomplete at this point.

Adding a cast to (u32) is a harmless way to shut up the warning,
just not very nice.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-10 16:36:36 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-05-05 13:35:39 -06:00
…
2015-05-28 15:31:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
2015-09-16 16:53:39 +02:00
…
…
…
…
2015-10-23 13:06:27 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-01 23:48:19 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…