* [PATCH] acpi: add some missing section markers
@ 2009-02-17 20:54 Jeremy Fitzhardinge
2009-02-18 0:07 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Fitzhardinge @ 2009-02-17 20:54 UTC (permalink / raw)
To: Brown, Len; +Cc: Ingo Molnar, Yinghai Lu, Linux Kernel Mailing List
early_acpi_os_unmap_memory() is an __init function, and
acpi_os_unmap_memory() is allowed to access an __init function
until acpi_gbl_permanent_mmap is set up.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index d1dd516..dd6f249 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -272,7 +272,7 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
}
EXPORT_SYMBOL_GPL(acpi_os_map_memory);
-void acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
+void __ref acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
{
if (acpi_gbl_permanent_mmap)
iounmap(virt);
@@ -281,7 +281,7 @@ void acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
}
EXPORT_SYMBOL_GPL(acpi_os_unmap_memory);
-void early_acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
+void __init early_acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
{
if (!acpi_gbl_permanent_mmap)
__acpi_unmap_table(virt, size);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] acpi: add some missing section markers
2009-02-17 20:54 [PATCH] acpi: add some missing section markers Jeremy Fitzhardinge
@ 2009-02-18 0:07 ` Ingo Molnar
2009-02-18 3:24 ` Jeremy Fitzhardinge
0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2009-02-18 0:07 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Brown, Len, Yinghai Lu, Linux Kernel Mailing List
* Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> early_acpi_os_unmap_memory() is an __init function, and
> acpi_os_unmap_memory() is allowed to access an __init function
> until acpi_gbl_permanent_mmap is set up.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Note, this is modified by tip:x86/acpi, so if Len applies it to
the ACPI tree we'll generate conflicts. Since the problem itself
has been generated by the 6 commits in tip:x86/acpi, if Len is
fine with it i'd like to apply your fix there.
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] acpi: add some missing section markers
2009-02-18 0:07 ` Ingo Molnar
@ 2009-02-18 3:24 ` Jeremy Fitzhardinge
2009-02-18 18:20 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Fitzhardinge @ 2009-02-18 3:24 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Brown, Len, Yinghai Lu, Linux Kernel Mailing List
Ingo Molnar wrote:
> * Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>
>
>> early_acpi_os_unmap_memory() is an __init function, and
>> acpi_os_unmap_memory() is allowed to access an __init function
>> until acpi_gbl_permanent_mmap is set up.
>>
>> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
>>
>
> Note, this is modified by tip:x86/acpi, so if Len applies it to
> the ACPI tree we'll generate conflicts. Since the problem itself
> has been generated by the 6 commits in tip:x86/acpi, if Len is
> fine with it i'd like to apply your fix there.
Sorry, I'd forgotten what path those patches were taking; I just
blindly applied the "ACPI=Len" pattern.
J
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] acpi: add some missing section markers
2009-02-18 3:24 ` Jeremy Fitzhardinge
@ 2009-02-18 18:20 ` Ingo Molnar
0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2009-02-18 18:20 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Brown, Len, Yinghai Lu, Linux Kernel Mailing List
* Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> Ingo Molnar wrote:
>> * Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>>
>>
>>> early_acpi_os_unmap_memory() is an __init function, and
>>> acpi_os_unmap_memory() is allowed to access an __init function until
>>> acpi_gbl_permanent_mmap is set up.
>>>
>>> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
>>>
>>
>> Note, this is modified by tip:x86/acpi, so if Len applies it to the
>> ACPI tree we'll generate conflicts. Since the problem itself has been
>> generated by the 6 commits in tip:x86/acpi, if Len is fine with it i'd
>> like to apply your fix there.
>
> Sorry, I'd forgotten what path those patches were taking; I
> just blindly applied the "ACPI=Len" pattern.
That was the correct pattern to apply in any case, as it
modifies drivers/acpi/.
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-18 18:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 20:54 [PATCH] acpi: add some missing section markers Jeremy Fitzhardinge
2009-02-18 0:07 ` Ingo Molnar
2009-02-18 3:24 ` Jeremy Fitzhardinge
2009-02-18 18:20 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox