From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751270AbdEaJnm (ORCPT ); Wed, 31 May 2017 05:43:42 -0400 Received: from mail-qk0-f178.google.com ([209.85.220.178]:32927 "EHLO mail-qk0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdEaJnk (ORCPT ); Wed, 31 May 2017 05:43:40 -0400 Subject: Re: [PATCH] bcm47xx: fix build regression To: Arnd Bergmann , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Brian Norris , linux-mtd@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org References: <20170530112027.3983554-1-arnd@arndb.de> From: Arend van Spriel Message-ID: <7b6903a2-ce54-44f9-18ed-a14bd32069ce@broadcom.com> Date: Wed, 31 May 2017 11:43:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170530112027.3983554-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Arend > Signed-off-by: Arnd Bergmann > --- > include/linux/bcm47xx_nvram.h | 1 + > 1 file changed, 1 insertion(+) > > 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 >