Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757793Ab3JRXlk (ORCPT ); Fri, 18 Oct 2013 19:41:40 -0400 Received: from merlin.infradead.org ([205.233.59.134]:32977 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757482Ab3JRXli (ORCPT ); Fri, 18 Oct 2013 19:41:38 -0400 Message-ID: <5261C72D.1090302@infradead.org> Date: Fri, 18 Oct 2013 16:41:33 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Tony Lindgren , Linus Walleij CC: Mark Brown , Thierry Reding , "pinctl-single.c" , "linux-kernel@vger.kernel.org" Subject: Re: linux-next: Tree for Oct 17 (pinctrl-single.c) References: <20131018003847.GH2443@sirena.org.uk> <5261792C.7030203@infradead.org> <20131018233951.GU15154@atomide.com> In-Reply-To: <20131018233951.GU15154@atomide.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3135 Lines: 86 On 10/18/13 16:39, Tony Lindgren wrote: > * Linus Walleij [131018 12:43]: >> On Fri, Oct 18, 2013 at 8:08 PM, Randy Dunlap wrote: >>> On 10/17/13 17:38, Mark Brown wrote: >>>> Hi all, >>>> >>>> I've uploaded today's linux-next tree to the master branch of the >>>> repository below: >>>> >>>> git://gitorious.org/thierryreding/linux-next.git >>>> >>>> A next-20131017 tag is also provided for convenience. >>>> >>>> One new conflict today but otherwise uneventful. x86_64 allmodconfigs >>>> build after each merge but no other build tests were done. >>> >>> on i386: >>> >>> drivers/pinctrl/pinctrl-single.c: In function 'pcs_irqdomain_map': >>> drivers/pinctrl/pinctrl-single.c:1750:2: error: implicit declaration of function 'set_irq_flags' [-Werror=implicit-function-declaration] >>> drivers/pinctrl/pinctrl-single.c:1750:21: error: 'IRQF_VALID' undeclared (first use in this function) >>> drivers/pinctrl/pinctrl-single.c:1750:34: error: 'IRQF_PROBE' undeclared (first use in this function) >> >> Hmmmm this looks like Tony's baby and the offending patch is >> not in the pinctrl tree, I bet he'll have a fix for it in no time. > > Ouch sorry about that. I'll send a pull request for the > following fix ASAP. Build tested with Randy's randconfig. > > Regards, > > Tony > > 8< ------------------------ > From: Tony Lindgren > Date: Fri, 18 Oct 2013 16:20:05 -0700 > Subject: [PATCH] pinctrl: single: Fix build when not built on ARM > > Looks like we need a little bit of arch specific handling > with the generic IRQ. Fix the issue with an ifdef the > same way as other drivers do. > > ARM needs things set to IRQF_VALID, which also then sets > noprobe. Others seem to use just irq_set_noprobe(). > > Otherwise we can get: > > drivers/pinctrl/pinctrl-single.c: In function 'pcs_irqdomain_map': > drivers/pinctrl/pinctrl-single.c:1750:2: error: implicit declaration of function 'set_irq_flags' [-Werror=implicit-function-declaration] Did you address this error? I don't see a fix for it... Thanks. > drivers/pinctrl/pinctrl-single.c:1750:21: error: 'IRQF_VALID' undeclared (first use in this function) > drivers/pinctrl/pinctrl-single.c:1750:34: error: 'IRQF_PROBE' undeclared (first use in this function) > > Reported-by: Randy Dunlap > Signed-off-by: Tony Lindgren > > --- a/drivers/pinctrl/pinctrl-single.c > +++ b/drivers/pinctrl/pinctrl-single.c > @@ -1743,7 +1743,12 @@ static int pcs_irqdomain_map(struct irq_domain *d, unsigned int irq, > irq_set_chip_data(irq, pcs_soc); > irq_set_chip_and_handler(irq, &pcs->chip, > handle_level_irq); > - set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); > + > +#ifdef CONFIG_ARM > + set_irq_flags(irq, IRQF_VALID); > +#else > + irq_set_noprobe(irq); > +#endif > > return 0; > } > -- -- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/