From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kMvjU-0003yc-B1 for ptxdist@pengutronix.de; Mon, 28 Sep 2020 18:10:32 +0200 From: Lucas Stach Date: Mon, 28 Sep 2020 18:10:32 +0200 Message-Id: <20200928161032.13579-2-l.stach@pengutronix.de> In-Reply-To: <20200928161032.13579-1-l.stach@pengutronix.de> References: <20200928161032.13579-1-l.stach@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/2] mxt-app: fix compilation with gcc10 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Lucas Stach --- ...-mxt_sigint_rx-extern-in-header-file.patch | 29 +++++++++++++++++++ patches/mxt-app-1.28/series | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 patches/mxt-app-1.28/0001-Make-mxt_sigint_rx-extern-in-header-file.patch create mode 100644 patches/mxt-app-1.28/series 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 000000000000..a14f9df4fc0f --- /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 +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 +--- + 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 000000000000..133b77ee1312 --- /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 -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de