From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200928161032.13579-2-l.stach@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Wed, 14 Oct 2020 12:30:45 +0200 Subject: Re: [ptxdist] [APPLIED] 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 Cc: Lucas Stach Thanks, applied as e79956d2b909bd40fdc5e1cfad2086e70728030e. Michael [sent from post-receive hook] On Wed, 14 Oct 2020 12:30:45 +0200, Lucas Stach wrote: > Signed-off-by: Lucas Stach > Message-Id: <20200928161032.13579-2-l.stach@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de