From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752437AbdHHVoG (ORCPT ); Tue, 8 Aug 2017 17:44:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52849 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267AbdHHVoE (ORCPT ); Tue, 8 Aug 2017 17:44:04 -0400 Date: Tue, 8 Aug 2017 23:44:01 +0200 From: Pavel Machek To: Julia Lawall , lee.jones@linaro.org Cc: Grygorii Strashko , pali.rohar@gmail.com, sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com Subject: Re: linux-next 2017-08-08 keyboard failure on Nokia N900 Message-ID: <20170808214400.GA18961@amd> References: <20170808101756.GA12922@amd> <20170808103444.GA18247@amd> <20170808111243.GA20328@amd> <61264d43-eda3-df9d-0c06-28611f373ce7@ti.com> <43d915d2-3260-88b6-095d-4de8240ff29e@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > > I've not precisely checked it, but smth is telling me that below > > > > patch can cause this: > > > > > > > > commit 78daaca78ee57dead0f4aa5ee399f0499e81cd9e =2E.. > > > > mfd: twl4030-irq: Drop unnecessary static > > > > > > > > Drop static on a local variable, when the variable is initiali= zed > > > > before > > > > any use, on every possible execution path through the function. > > > > > > > > --- a/drivers/mfd/twl4030-irq.c > > > > +++ b/drivers/mfd/twl4030-irq.c =2E.. > > > > int twl4030_init_irq(struct device *dev, int irq_num) > > > > { > > > > - static struct irq_chip twl4030_irq_chip; > > > > + struct irq_chip twl4030_irq_chip; > > > > > > > > > > > > but if we will look at code - it can be seen that this variable is = passed > > > > by reference to > > > > irq_set_chip_and_handler(). > > > > Ops. And what will happen when twl4030_init_irq() returns ;) > > > > > > The patch is not correct as was already noted when it was submitted: =2E. > > Hm. This one is in linux-next, but shouldn't. Right? > > > > git log --oneline -10 linux-next/master > > c0b96db Add linux-next specific files for 20170808 > > > > git log --oneline linux-next/master | grep "Drop unnecessary static" > > 78daaca mfd: twl4030-irq: Drop unnecessary static >=20 > OK, it seems like the patch was made twice, the second one was commented > on and the first one was applied. 78daaca should not be there. Lee, it has your sign-off, can you drop the patch from your tree? It is known bad. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlmKMJ8ACgkQMOfwapXb+vIFlACdFoOXitZiG4QEhqFjNFG/0M/w iUsAoIDazYkVQ1F0F7qADAbzrx8osduA =CLdg -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--