Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1654070

Re: [PATCH] bcm47xx: fix build regression

From Arend van Spriel <arend.vanspriel@broadcom.com>
Newsgroups linux.kernel
Subject Re: [PATCH] bcm47xx: fix build regression
Date 2017-05-31 11:50 +0200
Message-ID <tN8qm-31c-29@gated-at.bofh.it> (permalink)
References <tMNvA-6Gp-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <arnd@arndb.de>
> ---
>   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 <linux/errno.h>
>   #include <linux/types.h>
>   #include <linux/kernel.h>
>   #include <linux/vmalloc.h>
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] bcm47xx: fix build regression Arnd Bergmann <arnd@arndb.de> - 2017-05-30 13:30 +0200
  Re: [PATCH] bcm47xx: fix build regression Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-05-31 11:20 +0200
  Re: [PATCH] bcm47xx: fix build regression Arend van Spriel <arend.vanspriel@broadcom.com> - 2017-05-31 11:50 +0200
    Re: [PATCH] bcm47xx: fix build regression Arnd Bergmann <arnd@arndb.de> - 2017-05-31 12:30 +0200
      Re: [PATCH] bcm47xx: fix build regression "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-05-31 15:20 +0200
        Re: [PATCH] bcm47xx: fix build regression Arnd Bergmann <arnd@arndb.de> - 2017-05-31 15:40 +0200
          Re: [PATCH] bcm47xx: fix build regression "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-05-31 18:40 +0200
            Re: [PATCH] bcm47xx: fix build regression Arend van Spriel <arend.vanspriel@broadcom.com> - 2017-05-31 21:40 +0200
              Re: [PATCH] bcm47xx: fix build regression "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-06-02 00:20 +0200

csiph-web