Re: [PATCH] nvmem: include linux/err.h from header

From: Alexandre Belloni
Date: Mon Jul 10 2017 - 08:28:15 EST


On 10/07/2017 at 13:22:50 +0200, 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@xxxxxxxx>
> ---
> I'd suggest adding this patch in the rtc tree on top of the
> nvmem support there.
> ---
> include/linux/nvmem-provider.h | 3 +++
> 1 file changed, 3 insertions(+)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com