* [PATCH 1/3] x86, ACPI: Constify irq_domain_ops
@ 2015-04-27 12:48 Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 2/3] x86, mpparse: " Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-04-27 12:48 UTC (permalink / raw)
To: Rafael J. Wysocki, Len Brown, Pavel Machek, Thomas Gleixner,
Ingo Molnar, H. Peter Anvin, x86, linux-pm, linux-kernel,
sfi-devel
Cc: Krzysztof Kozlowski
The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
arch/x86/kernel/acpi/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index dbe76a14c3c9..1de4071c7eca 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -439,7 +439,7 @@ static void mp_unregister_gsi(u32 gsi)
mp_unmap_irq(irq);
}
-static struct irq_domain_ops acpi_irqdomain_ops = {
+static const struct irq_domain_ops acpi_irqdomain_ops = {
.map = mp_irqdomain_map,
.unmap = mp_irqdomain_unmap,
};
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] x86, mpparse: Constify irq_domain_ops
2015-04-27 12:48 [PATCH 1/3] x86, ACPI: Constify irq_domain_ops Krzysztof Kozlowski
@ 2015-04-27 12:48 ` Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 3/3] x86, irq, SFI: " Krzysztof Kozlowski
2015-04-28 7:22 ` [PATCH 1/3] x86, ACPI: " Pavel Machek
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-04-27 12:48 UTC (permalink / raw)
To: Rafael J. Wysocki, Len Brown, Pavel Machek, Thomas Gleixner,
Ingo Molnar, H. Peter Anvin, x86, linux-pm, linux-kernel,
sfi-devel
Cc: Krzysztof Kozlowski
The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
arch/x86/kernel/mpparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 2d2a237f2c73..35f05c3b4e4e 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -113,7 +113,7 @@ static void __init MP_bus_info(struct mpc_bus *m)
pr_warn("Unknown bustype %s - ignoring\n", str);
}
-static struct irq_domain_ops mp_ioapic_irqdomain_ops = {
+static const struct irq_domain_ops mp_ioapic_irqdomain_ops = {
.map = mp_irqdomain_map,
.unmap = mp_irqdomain_unmap,
};
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] x86, irq, SFI: Constify irq_domain_ops
2015-04-27 12:48 [PATCH 1/3] x86, ACPI: Constify irq_domain_ops Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 2/3] x86, mpparse: " Krzysztof Kozlowski
@ 2015-04-27 12:48 ` Krzysztof Kozlowski
2015-04-28 7:22 ` [PATCH 1/3] x86, ACPI: " Pavel Machek
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-04-27 12:48 UTC (permalink / raw)
To: Rafael J. Wysocki, Len Brown, Pavel Machek, Thomas Gleixner,
Ingo Molnar, H. Peter Anvin, x86, linux-pm, linux-kernel,
sfi-devel
Cc: Krzysztof Kozlowski
The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
arch/x86/platform/sfi/sfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/platform/sfi/sfi.c b/arch/x86/platform/sfi/sfi.c
index 2a8a74f3bd76..68eba8edc437 100644
--- a/arch/x86/platform/sfi/sfi.c
+++ b/arch/x86/platform/sfi/sfi.c
@@ -71,7 +71,7 @@ static int __init sfi_parse_cpus(struct sfi_table_header *table)
#endif /* CONFIG_X86_LOCAL_APIC */
#ifdef CONFIG_X86_IO_APIC
-static struct irq_domain_ops sfi_ioapic_irqdomain_ops = {
+static const struct irq_domain_ops sfi_ioapic_irqdomain_ops = {
.map = mp_irqdomain_map,
};
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] x86, ACPI: Constify irq_domain_ops
2015-04-27 12:48 [PATCH 1/3] x86, ACPI: Constify irq_domain_ops Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 2/3] x86, mpparse: " Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 3/3] x86, irq, SFI: " Krzysztof Kozlowski
@ 2015-04-28 7:22 ` Pavel Machek
2 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2015-04-28 7:22 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rafael J. Wysocki, Len Brown, Thomas Gleixner, Ingo Molnar,
H. Peter Anvin, x86, linux-pm, linux-kernel, sfi-devel
On Mon 2015-04-27 21:48:07, Krzysztof Kozlowski wrote:
> The irq_domain_ops are not modified by the driver and the irqdomain core
> code accepts pointer to a const data.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-28 7:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 12:48 [PATCH 1/3] x86, ACPI: Constify irq_domain_ops Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 2/3] x86, mpparse: " Krzysztof Kozlowski
2015-04-27 12:48 ` [PATCH 3/3] x86, irq, SFI: " Krzysztof Kozlowski
2015-04-28 7:22 ` [PATCH 1/3] x86, ACPI: " Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).