]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
nvmem: include linux/err.h from header
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 26 Jul 2017 09:34:48 +0000 (11:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:33:23 +0000 (17:33 +0200)
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>
include/linux/nvmem-consumer.h

index efafccffaee8233c936f28727ca4261de1b6b7a7..4e85447f78602754f56b988f576beb8ab8ab71bf 100644 (file)
@@ -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 */