aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/nvmem-consumer.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2017-07-26 11:34:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:33:23 +0200
commit4da69f49e73e3c79f079de62ea940cabbbf15ae7 (patch)
tree8c3f2e716c117022cc16c0af14f896fcdb0b3375 /include/linux/nvmem-consumer.h
parentnvmem: core: remove unneeded NULL check (diff)
downloadwireguard-linux-4da69f49e73e3c79f079de62ea940cabbbf15ae7.tar.xz
wireguard-linux-4da69f49e73e3c79f079de62ea940cabbbf15ae7.zip
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 <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/nvmem-consumer.h')
-rw-r--r--include/linux/nvmem-consumer.h3
1 files changed, 3 insertions, 0 deletions
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 <linux/err.h>
+#include <linux/errno.h>
+
struct device;
struct device_node;
/* consumer cookie */