* [PATCH] x86/devicetree: Fix compile warnings on AMD64
@ 2014-08-05 9:19 Ricardo Ribalda Delgado
2014-08-08 10:23 ` Fwd: " Ricardo Ribalda Delgado
[not found] ` <1407230388-14211-1-git-send-email-ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 2 replies; 6+ messages in thread
From: Ricardo Ribalda Delgado @ 2014-08-05 9:19 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, Grant Likely,
Rob Herring, Michal Simek, Tony Lindgren, linux-kernel
Cc: Ricardo Ribalda Delgado
arch/x86/kernel/devicetree.c: In function ‘ioapic_xlate’:
arch/x86/kernel/devicetree.c:294:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
idx = (__force u32) domain->host_data;
^
arch/x86/kernel/devicetree.c: In function ‘dt_add_ioapic_domain’:
arch/x86/kernel/devicetree.c:323:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void *)ioapic_num);
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
arch/x86/kernel/devicetree.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c
index 7db54b5..a481d1b 100644
--- a/arch/x86/kernel/devicetree.c
+++ b/arch/x86/kernel/devicetree.c
@@ -278,7 +278,8 @@ static int ioapic_xlate(struct irq_domain *domain,
{
struct io_apic_irq_attr attr;
struct of_ioapic_type *it;
- u32 line, idx;
+ u32 line;
+ unsigned long idx;
int rc;
if (WARN_ON(intsize < 2))
@@ -291,7 +292,7 @@ static int ioapic_xlate(struct irq_domain *domain,
it = &of_ioapic_type[intspec[1]];
- idx = (u32) domain->host_data;
+ idx = (unsigned long) domain->host_data;
set_io_apic_irq_attr(&attr, idx, line, it->trigger, it->polarity);
rc = io_apic_setup_irq_pin_once(irq_find_mapping(domain, line),
@@ -320,7 +321,7 @@ static void dt_add_ioapic_domain(unsigned int ioapic_num,
num = gsi_cfg->gsi_end - gsi_cfg->gsi_base + 1;
id = irq_domain_add_linear(np, num, &ioapic_irq_domain_ops,
- (void *)ioapic_num);
+ (void *)((unsigned long)ioapic_num));
BUG_ON(!id);
if (gsi_cfg->gsi_base == 0) {
/*
--
2.0.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Fwd: [PATCH] x86/devicetree: Fix compile warnings on AMD64
2014-08-05 9:19 [PATCH] x86/devicetree: Fix compile warnings on AMD64 Ricardo Ribalda Delgado
@ 2014-08-08 10:23 ` Ricardo Ribalda Delgado
[not found] ` <1407230388-14211-1-git-send-email-ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
1 sibling, 0 replies; 6+ messages in thread
From: Ricardo Ribalda Delgado @ 2014-08-08 10:23 UTC (permalink / raw)
To: trivial, platform-driver-x86
Hello,
Anyone interested in this patch? Which should be the proper mailing list?
Thanks!
---------- Forwarded message ----------
From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Date: Tue, Aug 5, 2014 at 11:19 AM
Subject: [PATCH] x86/devicetree: Fix compile warnings on AMD64
To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar
<mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org,
Grant Likely <grant.likely@linaro.org>, Rob Herring <robh@kernel.org>,
Michal Simek <monstr@monstr.eu>, Tony Lindgren <tony@atomide.com>,
linux-kernel@vger.kernel.org
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
arch/x86/kernel/devicetree.c: In function ‘ioapic_xlate’:
arch/x86/kernel/devicetree.c:294:8: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
idx = (__force u32) domain->host_data;
^
arch/x86/kernel/devicetree.c: In function ‘dt_add_ioapic_domain’:
arch/x86/kernel/devicetree.c:323:4: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
(void *)ioapic_num);
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
arch/x86/kernel/devicetree.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c
index 7db54b5..a481d1b 100644
--- a/arch/x86/kernel/devicetree.c
+++ b/arch/x86/kernel/devicetree.c
@@ -278,7 +278,8 @@ static int ioapic_xlate(struct irq_domain *domain,
{
struct io_apic_irq_attr attr;
struct of_ioapic_type *it;
- u32 line, idx;
+ u32 line;
+ unsigned long idx;
int rc;
if (WARN_ON(intsize < 2))
@@ -291,7 +292,7 @@ static int ioapic_xlate(struct irq_domain *domain,
it = &of_ioapic_type[intspec[1]];
- idx = (u32) domain->host_data;
+ idx = (unsigned long) domain->host_data;
set_io_apic_irq_attr(&attr, idx, line, it->trigger, it->polarity);
rc = io_apic_setup_irq_pin_once(irq_find_mapping(domain, line),
@@ -320,7 +321,7 @@ static void dt_add_ioapic_domain(unsigned int ioapic_num,
num = gsi_cfg->gsi_end - gsi_cfg->gsi_base + 1;
id = irq_domain_add_linear(np, num, &ioapic_irq_domain_ops,
- (void *)ioapic_num);
+ (void *)((unsigned long)ioapic_num));
BUG_ON(!id);
if (gsi_cfg->gsi_base == 0) {
/*
--
2.0.1
--
Ricardo Ribalda
^ permalink raw reply related [flat|nested] 6+ messages in thread[parent not found: <1407230388-14211-1-git-send-email-ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Fwd: [PATCH] x86/devicetree: Fix compile warnings on AMD64
[not found] ` <1407230388-14211-1-git-send-email-ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-08-28 13:04 ` Ricardo Ribalda Delgado
[not found] ` <CAPybu_39pLQ6gvKOPuLNCnn46Y50QU36C5thJmxrNmCzGN+MAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Ribalda Delgado @ 2014-08-28 13:04 UTC (permalink / raw)
To: Sebastian Andrzej Siewior, Ingo Molnar,
devicetree-u79uwXL29TY76Z2rM5mHXA
---------- Forwarded message ----------
From: Ricardo Ribalda Delgado <ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Tue, Aug 5, 2014 at 11:19 AM
Subject: [PATCH] x86/devicetree: Fix compile warnings on AMD64
To: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>, Ingo Molnar
<mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>, "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
Grant Likely <grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Michal Simek <monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org>, Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Ricardo Ribalda Delgado <ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
arch/x86/kernel/devicetree.c: In function ‘ioapic_xlate’:
arch/x86/kernel/devicetree.c:294:8: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
idx = (__force u32) domain->host_data;
^
arch/x86/kernel/devicetree.c: In function ‘dt_add_ioapic_domain’:
arch/x86/kernel/devicetree.c:323:4: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
(void *)ioapic_num);
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
arch/x86/kernel/devicetree.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c
index 7db54b5..a481d1b 100644
--- a/arch/x86/kernel/devicetree.c
+++ b/arch/x86/kernel/devicetree.c
@@ -278,7 +278,8 @@ static int ioapic_xlate(struct irq_domain *domain,
{
struct io_apic_irq_attr attr;
struct of_ioapic_type *it;
- u32 line, idx;
+ u32 line;
+ unsigned long idx;
int rc;
if (WARN_ON(intsize < 2))
@@ -291,7 +292,7 @@ static int ioapic_xlate(struct irq_domain *domain,
it = &of_ioapic_type[intspec[1]];
- idx = (u32) domain->host_data;
+ idx = (unsigned long) domain->host_data;
set_io_apic_irq_attr(&attr, idx, line, it->trigger, it->polarity);
rc = io_apic_setup_irq_pin_once(irq_find_mapping(domain, line),
@@ -320,7 +321,7 @@ static void dt_add_ioapic_domain(unsigned int ioapic_num,
num = gsi_cfg->gsi_end - gsi_cfg->gsi_base + 1;
id = irq_domain_add_linear(np, num, &ioapic_irq_domain_ops,
- (void *)ioapic_num);
+ (void *)((unsigned long)ioapic_num));
BUG_ON(!id);
if (gsi_cfg->gsi_base == 0) {
/*
--
2.0.1
--
Ricardo Ribalda
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-28 13:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 9:19 [PATCH] x86/devicetree: Fix compile warnings on AMD64 Ricardo Ribalda Delgado
2014-08-08 10:23 ` Fwd: " Ricardo Ribalda Delgado
[not found] ` <1407230388-14211-1-git-send-email-ricardo.ribalda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-28 13:04 ` Ricardo Ribalda Delgado
[not found] ` <CAPybu_39pLQ6gvKOPuLNCnn46Y50QU36C5thJmxrNmCzGN+MAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-28 13:13 ` Sebastian Andrzej Siewior
[not found] ` <53FF2B17.4030600-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2014-08-28 13:23 ` Ricardo Ribalda Delgado
[not found] ` <CAPybu_2shGr+OROg=QkQwmXW4wmNEVzKypKOJRyiZxZh37bp3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-28 13:34 ` Sebastian Andrzej Siewior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.