Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52993 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdFAWQk (ORCPT ); Thu, 1 Jun 2017 18:16:40 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v51MEARd126773 for ; Thu, 1 Jun 2017 18:16:39 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 2attus1jtm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 01 Jun 2017 18:16:39 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Jun 2017 18:16:38 -0400 Date: Thu, 1 Jun 2017 15:16:32 -0700 From: "Paul E. McKenney" To: Arend van Spriel Cc: Arnd Bergmann , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Brian Norris , linux-mtd , linux-wireless , Linux Kernel Mailing List , "open list:RALINK MIPS ARCHITECTURE" , Ingo Molnar Subject: Re: [PATCH] bcm47xx: fix build regression Reply-To: paulmck@linux.vnet.ibm.com References: <20170530112027.3983554-1-arnd@arndb.de> <7b6903a2-ce54-44f9-18ed-a14bd32069ce@broadcom.com> <20170531131216.GJ3956@linux.vnet.ibm.com> <20170531163110.GL3956@linux.vnet.ibm.com> <51fbd3af-853e-f055-bef5-58d7438ba1ae@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <51fbd3af-853e-f055-bef5-58d7438ba1ae@broadcom.com> Message-Id: <20170601221632.GH3956@linux.vnet.ibm.com> (sfid-20170602_001653_957696_579D7230) Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, May 31, 2017 at 09:30:19PM +0200, Arend van Spriel wrote: > On 31-05-17 18:31, Paul E. McKenney wrote: > > On Wed, May 31, 2017 at 03:34:57PM +0200, Arnd Bergmann wrote: > >> On Wed, May 31, 2017 at 3:12 PM, Paul E. McKenney > >> wrote: > >>> On Wed, May 31, 2017 at 12:21:10PM +0200, Arnd Bergmann wrote: > >>>> On Wed, May 31, 2017 at 11:43 AM, Arend van Spriel > >>>> wrote: > >>>>> On 5/30/2017 1:20 PM, Arnd Bergmann wrote: > >>>>>> > >>>>>> An unknown change in the kernel headers caused a build regression > >>>>>> in an MTD partition driver: > >>>>>> > >>>>>> In file included from drivers/mtd/bcm47xxpart.c:12:0: > >>>>>> include/linux/bcm47xx_nvram.h: In function 'bcm47xx_nvram_init_from_mem': > >>>>>> include/linux/bcm47xx_nvram.h:27:10: error: 'ENOTSUPP' undeclared (first > >>>>>> use in this function) > >>>>>> > >>>>>> Clearly we want to include linux/errno.h here. > >>>>> > >>>>> > >>>>> unfortunate that you did not find the commit that caused this build > >>>>> regression. You could produce preprocessor output when it was working to see > >>>>> where errno.h got implicitly included and start looking there for git > >>>>> history. > >>>> > >>>> I did a 'git bisect run make drivers/mtd/bcm47xxpart.o' now, which pointed to > >>>> 0bc2d534708b ("rcu: Refactor #includes from include/linux/rcupdate.h"). > >>>> > >>>> That commit seems reasonable, it was just bad luck that it caused this > >>>> regression. The commit is currently in the rcu/rcu/next branch of tip.git, > >>>> so Paul could merge the patch there. > > Arnd, > > Thanks for digging a bit further. I am a sucker for telling the whole story. > > >>> > >>> Apologies for the inconvenience, not sure why 0day test robot didn't > >>> find this. Probably because it cannot test each and every driver. ;-) > >> > >> No worries. > >> > >>> This patch, correct? > >>> > >>> https://lkml.org/lkml/2017/5/30/348 > >> > >> Right, I should have included the link. > > > > And my turn to say "no worries". ;-) > > > > I reworked the commit log to tell the full story as shown below. > > Anything I misstated or otherwise missed? > > Maybe add the 'Fixes:' tag, ie.: > > Fixes: 0bc2d534708b ("rcu: Refactor #includes from > include/linux/rcupdate.h") > > Seems a bit redundant given that you mentioned it in the commit message, > but it might be looked for in kernel-stats scripts. Had to rebase anyway for other reasons, so why not? Thanx, Paul > Regards, > Arend > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > commit ff278071dce9af9da2b5e2b33f682710a855d266 > > Author: Arnd Bergmann > > Date: Wed May 31 09:26:07 2017 -0700 > > > > bcm47xx: fix build regression > > > > Commit 0bc2d534708b ("rcu: Refactor #includes from include/linux/rcupdate.h") > > caused a build regression in an MTD partition driver: > > > > In file included from drivers/mtd/bcm47xxpart.c:12:0: > > include/linux/bcm47xx_nvram.h: In function 'bcm47xx_nvram_init_from_mem': > > include/linux/bcm47xx_nvram.h:27:10: error: 'ENOTSUPP' undeclared (first use in this function) > > > > The rcupdate.h file has no particular need for linux/errno.h, so this > > commit includes linux/errno.h into bcm47xx_nvram.h. > > > > Signed-off-by: Arnd Bergmann > > Signed-off-by: Paul E. McKenney > > > > diff --git a/include/linux/bcm47xx_nvram.h b/include/linux/bcm47xx_nvram.h > > index 2793652fbf66..a414a2b53e41 100644 > > --- a/include/linux/bcm47xx_nvram.h > > +++ b/include/linux/bcm47xx_nvram.h > > @@ -8,6 +8,7 @@ > > #ifndef __BCM47XX_NVRAM_H > > #define __BCM47XX_NVRAM_H > > > > +#include > > #include > > #include > > #include > > >