From: Arnd Bergmann Date: Mon, 10 Jul 2017 11:22:50 +0000 (+0200) Subject: nvmem: include linux/err.h from header X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=42a6e0996084972574e0a2b23e7326b78b0f64c5;p=linux.git nvmem: include linux/err.h from header 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 Acked-by: Srinivas Kandagatla Signed-off-by: Alexandre Belloni --- diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h index cd93416d762ed..497706f5adcac 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 +#include + struct nvmem_device; struct nvmem_cell_info; typedef int (*nvmem_reg_read_t)(void *priv, unsigned int offset,