Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1684148
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] nvmem: include linux/err.h from header |
| Date | 2017-07-10 13:30 +0200 |
| Message-ID | <u1F34-4nF-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The new support for nvmem devices from the rtc layer caused a build
error in some configurations:
include/linux/nvmem-provider.h: In function 'nvmem_register':
include/linux/nvmem-provider.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
This adds the missing include to ensure we can always include
the header.
Fixes: 697e5a47aa12 ("rtc: add generic nvmem support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I'd suggest adding this patch in the rtc tree on top of the
nvmem support there.
---
include/linux/nvmem-provider.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h
index cd93416d762e..497706f5adca 100644
--- a/include/linux/nvmem-provider.h
+++ b/include/linux/nvmem-provider.h
@@ -12,6 +12,9 @@
#ifndef _LINUX_NVMEM_PROVIDER_H
#define _LINUX_NVMEM_PROVIDER_H
+#include <linux/err.h>
+#include <linux/errno.h>
+
struct nvmem_device;
struct nvmem_cell_info;
typedef int (*nvmem_reg_read_t)(void *priv, unsigned int offset,
--
2.9.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] nvmem: include linux/err.h from header Arnd Bergmann <arnd@arndb.de> - 2017-07-10 13:30 +0200
Re: [PATCH] nvmem: include linux/err.h from header Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-07-10 13:40 +0200
Re: [PATCH] nvmem: include linux/err.h from header Arnd Bergmann <arnd@arndb.de> - 2017-07-10 14:20 +0200
Re: [PATCH] nvmem: include linux/err.h from header Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-07-10 14:30 +0200
Re: [PATCH] nvmem: include linux/err.h from header Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-10 14:30 +0200
Re: [PATCH] nvmem: include linux/err.h from header Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-10 14:30 +0200
csiph-web