lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ddd19d87-8311-4e5c-f580-9f6dbd14f651@linaro.org>
Date:   Mon, 10 Jul 2017 12:33:23 +0100
From:   Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To:     Arnd Bergmann <arnd@...db.de>,
        Alexandre Belloni <alexandre.belloni@...e-electrons.com>
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvmem: include linux/err.h from header



On 10/07/17 12:22, Arnd Bergmann wrote:
> The new support for nvmem devices from the rtc layer caused a build
> error in some configurations:
> 
> include/linux/nvmem-provider.h: In function 'nvmem_register':
> include/linux/nvmem-provider.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
> 
> This adds the missing include to ensure we can always include
> the header.
> 
> Fixes: 697e5a47aa12 ("rtc: add generic nvmem support")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> I'd suggest adding this patch in the rtc tree on top of the
> nvmem support there.

Thanks for the patch, we would need similar patch for 
include/linux/nvmem-consumer.h too.


Acked-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>

> ---
>   include/linux/nvmem-provider.h | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h
> index cd93416d762e..497706f5adca 100644
> --- a/include/linux/nvmem-provider.h
> +++ b/include/linux/nvmem-provider.h
> @@ -12,6 +12,9 @@
>   #ifndef _LINUX_NVMEM_PROVIDER_H
>   #define _LINUX_NVMEM_PROVIDER_H
>   
> +#include <linux/err.h>
> +#include <linux/errno.h>
> +
>   struct nvmem_device;
>   struct nvmem_cell_info;
>   typedef int (*nvmem_reg_read_t)(void *priv, unsigned int offset,
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ