aboutsummaryrefslogtreecommitdiffstats
path: root/0001-paride-fix-up-build-warning-on-mips-platforms.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-04 11:25:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-04 11:25:16 +0100
commit38a46bd87a55363672e53e8e4926713141d4c452 (patch)
tree68b91a7433ac29c2878adeac25a85fa9c4d52ebb /0001-paride-fix-up-build-warning-on-mips-platforms.patch
parent4f950b3b51b8701057ccdb2f722f13025836f991 (diff)
downloadpatches-38a46bd87a55363672e53e8e4926713141d4c452.tar.gz
add another patch
Diffstat (limited to '0001-paride-fix-up-build-warning-on-mips-platforms.patch')
-rw-r--r--0001-paride-fix-up-build-warning-on-mips-platforms.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/0001-paride-fix-up-build-warning-on-mips-platforms.patch b/0001-paride-fix-up-build-warning-on-mips-platforms.patch
new file mode 100644
index 00000000000000..7859aced900982
--- /dev/null
+++ b/0001-paride-fix-up-build-warning-on-mips-platforms.patch
@@ -0,0 +1,39 @@
+From bb8680382c187daabd36f51f7dae105584dca0e8 Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Tue, 30 Nov 2021 09:43:34 +0100
+Subject: [PATCH] paride: fix up build warning on mips platforms
+X-Developer-Signature: v=1; a=openpgp-sha256; l=861; h=from:subject;
+ bh=sKKgJm4IeJL19jVxGxafCC/+cpVZuuY5RM3ezPC40jo=;
+ b=owGbwMvMwCRo6H6F97bub03G02pJDIlLn9yPO6wUdO3CzAl3q6Rqbr15tVinImOj+ndVvUU1LFV3
+ P75V6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJhEYyzNM51+y9RyBk3u6ARzf8q8
+ 8Vr727zI1hnkFDjPZ2/jvxpe90PE92HvzakeuWBgA=
+X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp;
+ fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29
+
+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>
+Cc: Jens Axboe <axboe@kernel.dk>
+Cc: linux-block@vger.kernel.org
+Cc: linux-kernel@vger.kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/block/paride/bpck.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- 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))