From: yury norov <ynorov@caviumnetworks.com>
To: andy shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "rafael j . wysocki" <rjw@rjwysocki.net>,
linux-pm@vger.kernel.org, thomas gleixner <tglx@linutronix.de>,
ingo molnar <mingo@redhat.com>, "h . peter anvin" <hpa@zytor.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
hanjun guo <guohanjun@huawei.com>,
linux-acpi@vger.kernel.org,
geert uytterhoeven <geert@linux-m68k.org>
Subject: re: [patch v3 2/5] acpi / boot: correct address space of __acpi_map_table()
Date: Wed, 19 Jul 2017 16:06:36 +0300 [thread overview]
Message-ID: <20170719130636.apmaj5ya4obkhvga@yury-thinkpad> (raw)
In-Reply-To: <20170718150420.61600-3-andriy.shevchenko@linux.intel.com>
Hi Andy,
> diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
> index 09ddb3cd627a..6d5b1346268a 100644
> --- a/arch/x86/kernel/acpi/boot.c
> +++ b/arch/x86/kernel/acpi/boot.c
> @@ -118,7 +118,7 @@ static u32 isa_irq_to_gsi[nr_irqs_legacy] __read_mostly = {
> * this is just a simple wrapper around early_ioremap(),
> * with sanity checks for phys == 0 and size == 0.
> */
> -char *__init __acpi_map_table(unsigned long phys, unsigned long size)
> +void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size)
> {
>
> if (!phys || !size)
> @@ -127,7 +127,7 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
> return early_ioremap(phys, size);
> }
I just found this patch in next tree, and it seems it breaks build for
arm64, and probably for ia64:
arch/arm64/kernel/acpi.c:98:14: error: conflicting types for ‘__acpi_map_table’
char *__init __acpi_map_table(unsigned long phys, unsigned long size)
^~~~~~~~~~~~~~~~
in file included from arch/arm64/kernel/acpi.c:18:0:
./include/linux/acpi.h:231:15: note: previous declaration of ‘__acpi_map_table’ was here
void __iomem *__acpi_map_table(unsigned long phys_addr, unsigned long size);
^~~~~~~~~~~~~~~~
arch/arm64/kernel/acpi.c:106:13: error: conflicting types for ‘__acpi_unmap_table’
void __init __acpi_unmap_table(char *map, unsigned long size)
^~~~~~~~~~~~~~~~~~
in file included from arch/arm64/kernel/acpi.c:18:0:
./include/linux/acpi.h:232:6: note: previous declaration of ‘__acpi_unmap_table’ was here
void __acpi_unmap_table(void __iomem *map, unsigned long size);
^~~~~~~~~~~~~~~~~~
the patch below fixes it. (Tested on arm64 only.)
Yury
>From 711e07171de68e71508695078bf6b897773a79ec Mon Sep 17 00:00:00 2001
From: Yury Norov <ynorov@caviumnetworks.com>
Date: Wed, 19 Jul 2017 16:00:02 +0300
Subject: [PATCH] ACPI / boot: fix prototypes for __acpi_{un}map_table for
arm64 and ia64
The prototypes were changed in patch "ACPI / boot: Correct address space
of __acpi_map_table()"
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
---
arch/arm64/kernel/acpi.c | 4 ++--
arch/ia64/kernel/acpi.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c
index e25c11e727fe..177a871c059d 100644
--- a/arch/arm64/kernel/acpi.c
+++ b/arch/arm64/kernel/acpi.c
@@ -95,7 +95,7 @@ static int __init dt_scan_depth1_nodes(unsigned long node,
* __acpi_map_table() will be called before page_init(), so early_ioremap()
* or early_memremap() should be called here to for ACPI table mapping.
*/
-char *__init __acpi_map_table(unsigned long phys, unsigned long size)
+void __iomem *__acpi_map_table(unsigned long phys, unsigned long size)
{
if (!size)
return NULL;
@@ -103,7 +103,7 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
return early_memremap(phys, size);
}
-void __init __acpi_unmap_table(char *map, unsigned long size)
+void __acpi_unmap_table(void __iomem *map, unsigned long size)
{
if (!map || !size)
return;
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index 7508c306aa9e..462a275c0479 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -159,12 +159,12 @@ int acpi_request_vector(u32 int_type)
return vector;
}
-char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
+void __iomem *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
{
return __va(phys_addr);
}
-void __init __acpi_unmap_table(char *map, unsigned long size)
+void __init __acpi_unmap_table(void __iomem *map, unsigned long size)
{
}
--
2.11.0
next prev parent reply other threads:[~2017-07-19 13:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 15:04 [PATCH v3 0/5] ACPI / boot: Few amendments Andy Shevchenko
2017-07-18 15:04 ` [PATCH v3 1/5] ACPI / boot: Don't define unused variables Andy Shevchenko
2017-07-18 15:04 ` [PATCH v3 2/5] ACPI / boot: Correct address space of __acpi_map_table() Andy Shevchenko
2017-07-19 13:06 ` yury norov [this message]
2017-07-19 13:40 ` [patch v3 2/5] acpi / boot: correct " Yury Norov
2017-07-19 13:56 ` Andy Shevchenko
2017-07-18 15:04 ` [PATCH v3 3/5] ACPI / boot: Add number of legacy IRQs to debug output Andy Shevchenko
2017-07-18 15:04 ` [PATCH v3 4/5] ACPI / boot: Not all platform require acpi_reduced_hw_init() Andy Shevchenko
2017-07-21 22:25 ` Rafael J. Wysocki
2017-07-22 1:53 ` Andy Shevchenko
2017-07-22 22:02 ` Rafael J. Wysocki
2017-07-22 22:13 ` Andy Shevchenko
2017-07-22 22:14 ` Rafael J. Wysocki
2017-07-26 18:53 ` Rafael J. Wysocki
2017-07-18 15:04 ` [PATCH v3 5/5] ACPI / boot: Don't handle SCI on HW reduced platforms Andy Shevchenko
2017-07-21 22:28 ` Rafael J. Wysocki
2017-07-22 1:52 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170719130636.apmaj5ya4obkhvga@yury-thinkpad \
--to=ynorov@caviumnetworks.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=geert@linux-m68k.org \
--cc=guohanjun@huawei.com \
--cc=hpa@zytor.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rjw@rjwysocki.net \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®