diff mbox series

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

Message ID 20170726093448.2564-7-srinivas.kandagatla@linaro.org
State Accepted
Commit 4da69f49e73e3c79f079de62ea940cabbbf15ae7
Headers show
Series nvmem: fixes for next rc | expand

Commit Message

Srinivas Kandagatla July 26, 2017, 9:34 a.m. UTC
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>


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>

---
 include/linux/nvmem-consumer.h | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.9.3
diff mbox series

Patch

diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h
index efafccf..4e85447 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 */