[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170809124556.3u6b2fqlxabykgs4@dell>
Date: Wed, 9 Aug 2017 13:45:56 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Pavel Machek <pavel@....cz>
Cc: Julia Lawall <julia.lawall@...6.fr>,
Grygorii Strashko <grygorii.strashko@...com>,
pali.rohar@...il.com, sre@...nel.org,
kernel list <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-omap@...r.kernel.org, tony@...mide.com, khilman@...nel.org,
aaro.koskinen@....fi, ivo.g.dimitrov.75@...il.com,
patrikbachan@...il.com, serge@...lyn.com, abcloriens@...il.com
Subject: Re: linux-next 2017-08-08 keyboard failure on Nokia N900
On Tue, 08 Aug 2017, Pavel Machek wrote:
> Hi!
>
> > > > > I've not precisely checked it, but smth is telling me that below
> > > > > patch can cause this:
> > > > >
> > > > > commit 78daaca78ee57dead0f4aa5ee399f0499e81cd9e
> ...
> > > > > mfd: twl4030-irq: Drop unnecessary static
> > > > >
> > > > > Drop static on a local variable, when the variable is initialized
> > > > > before
> > > > > any use, on every possible execution path through the function.
> > > > >
> > > > > --- a/drivers/mfd/twl4030-irq.c
> > > > > +++ b/drivers/mfd/twl4030-irq.c
> ...
> > > > > 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:
> ..
> > > 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
> >
> > 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.
Done, thanks.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists