From: Srinivas Kandagatla Date: Wed, 26 Jul 2017 09:34:48 +0000 (+0200) Subject: nvmem: include linux/err.h from header X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4da69f49e73e3c79f079de62ea940cabbbf15ae7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nvmem: include linux/err.h from header missing err.h header file can cause simillar errors like below in some configurations. "error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]" This adds the missing include to ensure we can always include the header. Signed-off-by: Srinivas Kandagatla Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index efafccffaee8..4e85447f7860 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -12,6 +12,9 @@ #ifndef _LINUX_NVMEM_CONSUMER_H #define _LINUX_NVMEM_CONSUMER_H +#include +#include + struct device; struct device_node; /* consumer cookie */