Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1662268
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap |
| Date | 2017-06-09 12:40 +0200 |
| Message-ID | <tQpuG-nf-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The newly added support for the pcc mailbox fails to build
in some configurations:
drivers/i2c/busses/i2c-xgene-slimpro.c: In function 'xgene_slimpro_i2c_probe':
drivers/i2c/busses/i2c-xgene-slimpro.c:516:25: error: implicit declaration of function 'memremap'; did you mean 'memcmp'? [-Werror=implicit-function-declaration]
drivers/i2c/busses/i2c-xgene-slimpro.c:518:13: error: 'MEMREMAP_WB' undeclared (first use in this function)
drivers/i2c/busses/i2c-xgene-slimpro.c:518:13: note: each undeclared identifier is reported only once for each function it appears in
This includes the missing header file.
Fixes: df5da47fe722 ("i2c: xgene-slimpro: Add ACPI support by using PCC mailbox")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/i2c/busses/i2c-xgene-slimpro.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index 8e5c8f28bc8b..7e89ba6fcf6f 100644
--- a/drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/drivers/i2c/busses/i2c-xgene-slimpro.c
@@ -27,6 +27,7 @@
#include <linux/dma-mapping.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
+#include <linux/io.h>
#include <linux/mailbox_client.h>
#include <linux/module.h>
#include <linux/of.h>
--
2.9.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Arnd Bergmann <arnd@arndb.de> - 2017-06-09 12:40 +0200
Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Hoan Tran <hotran@apm.com> - 2017-06-09 19:30 +0200
Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Wolfram Sang <wsa@the-dreams.de> - 2017-06-15 16:00 +0200
Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Wolfram Sang <wsa@the-dreams.de> - 2017-06-18 15:10 +0200
csiph-web