Skip to contentSkip to conversation

cpumask: Fix generate_sched_domains() for UP

PATCH In review Geert Uytterhoeven 1 participant 2 messages Dec 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpumask: Fix generate_sched_domains() for UP

commit acc3f5d7cabbfd6cec71f0c1f9900621fa2d6ae7 ("cpumask:
Partition_sched_domains takes array of cpumask_var_t") changed the function signature of generate_sched_domains() for the CONFIG_SMP=y case, but forgot to update the corresponding function for the CONFIG_SMP=n case, causing:

kernel/cpuset.c:2073: warning: passing argument 1 of 'generate_sched_domains' from incompatible pointer type

---
 kernel/cpuset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/cpuset.c +1 -1
index 3cf2183..43fb7e8 100644
@@ -737,7 +737,7 @@ static void do_rebuild_sched_domains(struct work_struct *unused)
 {
 }
 
-static int generate_sched_domains(struct cpumask **domains,
+static int generate_sched_domains(cpumask_var_t **domains,
 			struct sched_domain_attr **attributes)
 {
 	*domains = NULL;
Signature · 12 lines
1.6.0.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
#1 lore raw
Commit-ID:  e1b8090bdf125f8b2e192149547fead7f302a89c
Gitweb:     http://git.kernel.org/tip/e1b8090bdf125f8b2e192149547fead7f302a89c
Author:     Geert Uytterhoeven <[email protected]>
AuthorDate: Sun, 6 Dec 2009 20:41:16 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 6 Dec 2009 21:08:41 +0100

cpumask: Fix generate_sched_domains() for UP

Commit acc3f5d7cabbfd6cec71f0c1f9900621fa2d6ae7 ("cpumask:
Partition_sched_domains takes array of cpumask_var_t") changed the function signature of generate_sched_domains() for the CONFIG_SMP=y case, but forgot to update the corresponding function for the CONFIG_SMP=n case, causing:

kernel/cpuset.c:2073: warning: passing argument 1 of 'generate_sched_domains' from incompatible pointer type

Cc Rusty Russell <[email protected]>
Cc Linus Torvalds <[email protected]>

LKML-Reference: <[email protected]>

---
 kernel/cpuset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/cpuset.c +1 -1
index 3cf2183..43fb7e8 100644
@@ -737,7 +737,7 @@ static void do_rebuild_sched_domains(struct work_struct *unused)
 {
 }
 
-static int generate_sched_domains(struct cpumask **domains,
+static int generate_sched_domains(cpumask_var_t **domains,
 			struct sched_domain_attr **attributes)
 {
 	*domains = NULL;