summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-30 09:46:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-21 10:23:05 +0100
commit6d1e4927dedf5bf8998759961e3b28b967321cdd (patch)
treec451c210c670904a5d20c49165316fdb33d7d1bf /drivers/block
parentrapidio: remove not used code about RIO_VID_TUNDRA (diff)
downloadlinux-6d1e4927dedf5bf8998759961e3b28b967321cdd.tar.xz
linux-6d1e4927dedf5bf8998759961e3b28b967321cdd.zip
paride: fix up build warning on mips platforms
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/paride/bpck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/paride/bpck.c b/drivers/block/paride/bpck.c
index f5f63ca2889d..d880a9465e9b 100644
--- a/drivers/block/paride/bpck.c
+++ b/drivers/block/paride/bpck.c
@@ -28,6 +28,7 @@
#undef r2
#undef w2
+#undef PC
#define PC pi->private
#define r2() (PC=(in_p(2) & 0xff))