paride: fix up build warning on mips platforms
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Nov 2021 08:46:26 +0000 (09:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Dec 2021 09:23:05 +0000 (10:23 +0100)
MIPS include files define "PC" so when building the paride driver the
following build warning shows up:

rivers/block/paride/bpck.c:32: warning: "PC" redefined

Fix this by undefining PC before redefining it as is done for other
defines in this driver.

Cc: Tim Waugh <tim@cyberelk.net>
Acked-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20211130084626.3215987-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/paride/bpck.c

index f5f63ca..d880a94 100644 (file)
@@ -28,6 +28,7 @@
 
 #undef r2
 #undef w2
+#undef PC
 
 #define PC                     pi->private
 #define r2()                   (PC=(in_p(2) & 0xff))