linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next:  rr_cpumask tree build failure
@ 2008-12-29 15:55 Stephen Rothwell
  2008-12-29 16:31 ` Mike Travis
  2008-12-29 22:52 ` Rusty Russell
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Rothwell @ 2008-12-29 15:55 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-next, Mike Travis

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Hi Rusty,

Today's linux-next build (powerpc allnoconfig) failed like this:

drivers/base/cpu.c: In function 'print_cpus_kernel_max':
drivers/base/cpu.c:136: error: 'CONFIG_NR_CPUS' undeclared (first use in this function)

Caused by commit e057d7aea9d8f2a46cd440d8bfb72245d4e72d79 ("cpumask: add
sysfs displays for configured and disabled cpu maps") from the rr_cpumask
tree.  Powerpc (at least) does not define CONFIG_NR_CPUS for a non SMP
build.

I have reverted that commit for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next:  rr_cpumask tree build failure
  2008-12-29 15:55 linux-next: rr_cpumask tree build failure Stephen Rothwell
@ 2008-12-29 16:31 ` Mike Travis
  2008-12-29 22:52 ` Rusty Russell
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Travis @ 2008-12-29 16:31 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Rusty Russell, linux-next, Ingo Molnar

Stephen Rothwell wrote:
> Hi Rusty,
> 
> Today's linux-next build (powerpc allnoconfig) failed like this:
> 
> drivers/base/cpu.c: In function 'print_cpus_kernel_max':
> drivers/base/cpu.c:136: error: 'CONFIG_NR_CPUS' undeclared (first use in this function)
> 
> Caused by commit e057d7aea9d8f2a46cd440d8bfb72245d4e72d79 ("cpumask: add
> sysfs displays for configured and disabled cpu maps") from the rr_cpumask
> tree.  Powerpc (at least) does not define CONFIG_NR_CPUS for a non SMP
> build.
> 
> I have reverted that commit for today.

Hi Stephen,

This was my fault.  I thought that:

	cpumask: make CONFIG_NR_CPUS always valid.
	From: Rusty Russell <rusty@rustcorp.com.au>

was already present upstream.  This would be the better fix, but as a short
term fix, you can use the following patch.

Thanks,
Mike
---
 drivers/base/cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6-for-ingo.orig/drivers/base/cpu.c
+++ linux-2.6-for-ingo/drivers/base/cpu.c
@@ -133,7 +133,7 @@ print_cpus_func(present);
  */
 static ssize_t print_cpus_kernel_max(struct sysdev_class *class, char *buf)
 {
-	int n = snprintf(buf, PAGE_SIZE-2, "%d\n", CONFIG_NR_CPUS - 1);
+	int n = snprintf(buf, PAGE_SIZE-2, "%d\n", NR_CPUS - 1);
 	return n;
 }
 static SYSDEV_CLASS_ATTR(kernel_max, 0444, print_cpus_kernel_max, NULL);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next:  rr_cpumask tree build failure
  2008-12-29 15:55 linux-next: rr_cpumask tree build failure Stephen Rothwell
  2008-12-29 16:31 ` Mike Travis
@ 2008-12-29 22:52 ` Rusty Russell
  2008-12-29 23:34   ` Stephen Rothwell
  1 sibling, 1 reply; 4+ messages in thread
From: Rusty Russell @ 2008-12-29 22:52 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Mike Travis

On Tuesday 30 December 2008 02:25:57 Stephen Rothwell wrote:
> Hi Rusty,
> 
> Today's linux-next build (powerpc allnoconfig) failed like this:
> 
> drivers/base/cpu.c: In function 'print_cpus_kernel_max':
> drivers/base/cpu.c:136: error: 'CONFIG_NR_CPUS' undeclared (first use in this function)
> 
> Caused by commit e057d7aea9d8f2a46cd440d8bfb72245d4e72d79 ("cpumask: add
> sysfs displays for configured and disabled cpu maps") from the rr_cpumask
> tree.  Powerpc (at least) does not define CONFIG_NR_CPUS for a non SMP
> build.
> 
> I have reverted that commit for today.

Thanks, we defined that in a later patch which hadn't been put in the cpumask
tree yet.  I've moved it (and several others) in now.

Thanks,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next:  rr_cpumask tree build failure
  2008-12-29 22:52 ` Rusty Russell
@ 2008-12-29 23:34   ` Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2008-12-29 23:34 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-next, Mike Travis

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

Hi Rusty,

On Tue, 30 Dec 2008 09:22:08 +1030 Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> Thanks, we defined that in a later patch which hadn't been put in the cpumask
> tree yet.  I've moved it (and several others) in now.

Thanks.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-29 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 15:55 linux-next: rr_cpumask tree build failure Stephen Rothwell
2008-12-29 16:31 ` Mike Travis
2008-12-29 22:52 ` Rusty Russell
2008-12-29 23:34   ` Stephen Rothwell

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).