Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Srinivas Kandagatla and committed by
Greg Kroah-Hartman
4da69f49 fd086113

+3
+3
include/linux/nvmem-consumer.h
··· 12 12 #ifndef _LINUX_NVMEM_CONSUMER_H 13 13 #define _LINUX_NVMEM_CONSUMER_H 14 14 15 + #include <linux/err.h> 16 + #include <linux/errno.h> 17 + 15 18 struct device; 16 19 struct device_node; 17 20 /* consumer cookie */