[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20081201105410.8179.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Mon, 1 Dec 2008 11:01:51 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Zhang Xiantao <xiantao.zhang@...el.com>,
Avi Kivity <avi@...ranet.com>,
"Luck, Tony" <tony.luck@...el.com>,
linux-ia64 <linux-ia64@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Cc: kosaki.motohiro@...fujitsu.com
Subject: [mmotm] fix arch/ia64/kernel/iosapic.c warning
patch against: mmotm 29 Nov 2008
applied after: linux-next.patch
==
fix following warnings.
arch/ia64/kernel/iosapic.c:708: warning: passing argument 2 of '__cpu_clear' from incompatible pointer type
arch/ia64/kernel/iosapic.c:711: warning: passing argument 1 of '__cpus_weight' from incompatible pointer type
arch/ia64/kernel/iosapic.c:719: warning: passing argument 1 of '__first_cpu' from incompatible pointer type
arch/ia64/kernel/iosapic.c:720: warning: passing argument 2 of '__next_cpu' from incompatible pointer type
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
CC: Zhang Xiantao <xiantao.zhang@...el.com>
CC: Avi Kivity <avi@...ranet.com>
CC: "Luck, Tony" <tony.luck@...el.com>
---
arch/ia64/kernel/iosapic.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: b/arch/ia64/kernel/iosapic.c
===================================================================
--- a/arch/ia64/kernel/iosapic.c
+++ b/arch/ia64/kernel/iosapic.c
@@ -695,7 +695,7 @@ get_target_cpu (unsigned int gsi, int ir
#ifdef CONFIG_NUMA
{
int num_cpus, cpu_index, iosapic_index, numa_cpu, i = 0;
- const struct cpumask *cpu_mask;
+ struct cpumask *cpu_mask;
iosapic_index = find_iosapic(gsi);
if (iosapic_index < 0 ||
@@ -705,10 +705,10 @@ get_target_cpu (unsigned int gsi, int ir
cpu_mask = cpumask_of_node(iosapic_lists[iosapic_index].node);
for_each_cpu_and(numa_cpu, cpu_mask, &domain) {
if (!cpu_online(numa_cpu))
- cpu_clear(numa_cpu, cpu_mask);
+ cpu_clear(numa_cpu, *cpu_mask);
}
- num_cpus = cpus_weight(cpu_mask);
+ num_cpus = cpus_weight(*cpu_mask);
if (!num_cpus)
goto skip_numa_setup;
@@ -716,8 +716,8 @@ get_target_cpu (unsigned int gsi, int ir
/* Use irq assignment to distribute across cpus in node */
cpu_index = irq % num_cpus;
- for (numa_cpu = first_cpu(cpu_mask) ; i < cpu_index ; i++)
- numa_cpu = next_cpu(numa_cpu, cpu_mask);
+ for (numa_cpu = first_cpu(*cpu_mask) ; i < cpu_index ; i++)
+ numa_cpu = next_cpu(numa_cpu, *cpu_mask);
if (numa_cpu != NR_CPUS)
return cpu_physical_id(numa_cpu);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists