From: Andrew Morton <akpm@osdl.org>
To: linux-ia64@vger.kernel.org
Subject: ia64 problems with NR_CPUS > 256
Date: Sat, 10 Jan 2004 07:23:26 +0000 [thread overview]
Message-ID: <20040109232326.38dd1e95.akpm@osdl.org> (raw)
Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> In message <20040109141236.4bcf7293.akpm@osdl.org> you write:
> > jbarnes@sgi.com (Jesse Barnes) wrote:
> > >
> > > Thanks, this patch works. However, it appears that something (not you
> > > Pat!) broke cpumasks again--I got failures when I tried a 512p build.
> >
> > That's probably Rusty breaking stuff again. The relevant patches are:
> >
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.1/2.6.1-mm1/broken-out/make-for_each_cpu-iterator-more-friendly.patch
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.1/2.6.1-mm1/broken-out/make-for_each_cpu-iterator-more-friendly-fix.patch
>
> Probably. Paul Jackson acked them though, so I'm a little surprised.
>
OK, here's the scoop. ia64 with NR_CPUSQ2:
/usr/local/gcc-3.3.1/bin/gcc -Wp,-MD,kernel/.sched.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -ffixed-r13 -mfixed-rangeñ2-f15,f32-f127 -falign-functions2 -frename-registers -O2 -fomit-frame-pointer -mconstant-gp -DKBUILD_BASENAME=sched -DKBUILD_MODNAME=sched -c -o kernel/.tmp_sched.o kernel/sched.c
kernel/sched.c: In function `nr_uninterruptible':
kernel/sched.c:905: error: structure has no member named `val'
kernel/sched.c:905: error: structure has no member named `val'
kernel/sched.c: In function `nr_context_switches':
The problem is that Rusty's patch _used_ for_each_cpu(). It is already
broken.
In cpumask_const_reference.h we have stuff like:
#define cpus_and_const(dst,src1,src2) cpus_and(dst,*(src1).val,*(src2).val)
But include/linux/cpumask.h never defines a version of struct cpumask which
has a `val' member in it.
So somewhere along the line, the pass-by-reference stuff got broken.
Bill, how is this actually supposed to work? Is `val' supposed to be in
struct cpumask, or is the cpumask_const_reference.h code wrong?
Thanks.
reply other threads:[~2004-01-10 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040109232326.38dd1e95.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox