* [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap
@ 2017-06-09 10:29 Arnd Bergmann
2017-06-09 17:27 ` Hoan Tran
2017-06-15 13:57 ` Wolfram Sang
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-06-09 10:29 UTC (permalink / raw)
To: Wolfram Sang
Cc: Arnd Bergmann, Hoan Tran, Ludovic Desroches, Tin Huynh, linux-i2c,
linux-kernel
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap
2017-06-09 10:29 [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Arnd Bergmann
@ 2017-06-09 17:27 ` Hoan Tran
2017-06-15 13:57 ` Wolfram Sang
1 sibling, 0 replies; 4+ messages in thread
From: Hoan Tran @ 2017-06-09 17:27 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Wolfram Sang, Ludovic Desroches, Tin Huynh, linux-i2c, lkml
Hi Arnd,
On Fri, Jun 9, 2017 at 3:29 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> 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
>
Reviewed-by: Hoan Tran <hotran@apm.com>
Thanks
Hoan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap
2017-06-09 10:29 [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Arnd Bergmann
2017-06-09 17:27 ` Hoan Tran
@ 2017-06-15 13:57 ` Wolfram Sang
2017-06-18 13:02 ` Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2017-06-15 13:57 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Hoan Tran, Ludovic Desroches, Tin Huynh, linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 872 bytes --]
On Fri, Jun 09, 2017 at 12:29:12PM +0200, Arnd Bergmann wrote:
> 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>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap
2017-06-15 13:57 ` Wolfram Sang
@ 2017-06-18 13:02 ` Wolfram Sang
0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2017-06-18 13:02 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Hoan Tran, Ludovic Desroches, Tin Huynh, linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
On Thu, Jun 15, 2017 at 03:57:40PM +0200, Wolfram Sang wrote:
> On Fri, Jun 09, 2017 at 12:29:12PM +0200, Arnd Bergmann wrote:
> > 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>
>
> Applied to for-current, thanks!
Oops, the offending commit is only in for-next. So, reconsidered and
moved this patch to for-next as well.
Regards,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-18 13:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-09 10:29 [PATCH] i2c: xgene-slimpro: include linux/io.h for memremap Arnd Bergmann
2017-06-09 17:27 ` Hoan Tran
2017-06-15 13:57 ` Wolfram Sang
2017-06-18 13:02 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox