summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2020-09-28 18:10:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-10-14 12:30:02 +0200
commite79956d2b909bd40fdc5e1cfad2086e70728030e (patch)
treef3e7366701e50438a39788d9a977aafae963900a /patches
parent88dc1299a69ea2c404a3846130b8f1adb223917d (diff)
downloadptxdist-e79956d2b909bd40fdc5e1cfad2086e70728030e.tar.gz
ptxdist-e79956d2b909bd40fdc5e1cfad2086e70728030e.tar.xz
mxt-app: fix compilation with gcc10
Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Message-Id: <20200928161032.13579-2-l.stach@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/mxt-app-1.28/0001-Make-mxt_sigint_rx-extern-in-header-file.patch29
-rw-r--r--patches/mxt-app-1.28/series4
2 files changed, 33 insertions, 0 deletions
diff --git a/patches/mxt-app-1.28/0001-Make-mxt_sigint_rx-extern-in-header-file.patch b/patches/mxt-app-1.28/0001-Make-mxt_sigint_rx-extern-in-header-file.patch
new file mode 100644
index 000000000..a14f9df4f
--- /dev/null
+++ b/patches/mxt-app-1.28/0001-Make-mxt_sigint_rx-extern-in-header-file.patch
@@ -0,0 +1,29 @@
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 11 Aug 2020 18:21:47 -0700
+Subject: [PATCH] Make mxt_sigint_rx extern in header file
+
+Its defined in src/mxt-app/signal.c like
+
+volatile sig_atomic_t mxt_sigint_rx = 0;
+
+Therefore we do not need another definition in header file, this fixes
+the build with -fno-common ( which is default with gcc 10+)
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/mxt-app/mxt_app.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/mxt-app/mxt_app.h b/src/mxt-app/mxt_app.h
+index daa1519ce10d..a326a9d49b50 100644
+--- a/src/mxt-app/mxt_app.h
++++ b/src/mxt-app/mxt_app.h
+@@ -103,7 +103,7 @@ typedef enum mxt_app_cmd_t {
+
+ //******************************************************************************
+ /// \brief Signal handler semaphore
+-volatile sig_atomic_t mxt_sigint_rx;
++extern volatile sig_atomic_t mxt_sigint_rx;
+
+ struct t37_diagnostic_data;
+ struct mxt_conn_info;
diff --git a/patches/mxt-app-1.28/series b/patches/mxt-app-1.28/series
new file mode 100644
index 000000000..133b77ee1
--- /dev/null
+++ b/patches/mxt-app-1.28/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Make-mxt_sigint_rx-extern-in-header-file.patch
+# 6096d6b079bf36345ab6e22b1ec90c28 - git-ptx-patches magic