aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debug_locks.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-07-01 18:02:22 +0100
committerMoyster <oysterized@gmail.com>2018-11-30 00:40:14 +0100
commit499415e6c60c550a0690eac1357b45bedb76c0a5 (patch)
tree57da730d8f3c7cfe6d015c97ff93ead1551d7a40 /include/linux/debug_locks.h
parent4a62a972f9b2f7ee2bbb8b6cac438d01bfa43e77 (diff)
ARM: 8584/1: floppy: avoid gcc-6 warning
commit dd665be0e243873343a28e18f9f345927b658daf 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>
Diffstat (limited to 'include/linux/debug_locks.h')
0 files changed, 0 insertions, 0 deletions