Re: [PATCH -next] ia64/sn: fix percpu warnings
- From: Tejun Heo <tj@xxxxxxxxxx>
- Date: Wed, 28 Oct 2009 16:03:04 +0100
Hello,
Luck, Tony wrote:
WARNING: "per_cpu____sn_cnodeid_to_nasid" [drivers/misc/sgi-xp/xpc.ko] has no CRC!
Note that this warning goes away if I fix the mismatch declaration so
that we have:
DECLARE_PER_CPU(short, __sn_cnodeide_to_nasid[MAX_COMPACT_NODES]);
in arch.h
and
DEFINE_PER_CPU(short, __sn_cnodeide_to_nasid[MAX_COMPACT_NODES]);
in setup.c
Umm... the correct correct declaration and definition would be
DECLARE_PER_CPU(short [MAX_COMPACT_NODES], __sn_cnodeide_to_nasid);
and
DEFINE_PER_CPU(short [MAX_COMPACT_NODES], __sn_cnodeide_to_nasid);
So that the first part contains full type. Doing it the other way
might cause problems if the __weak trick is turned on.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- RE: [PATCH -next] ia64/sn: fix percpu warnings
- From: Luck, Tony
- RE: [PATCH -next] ia64/sn: fix percpu warnings
- References:
- linux-next: Tree for October 14
- From: Stephen Rothwell
- [PATCH -next] ia64/sn: fix percpu warnings
- From: Randy Dunlap
- Re: [PATCH -next] ia64/sn: fix percpu warnings
- From: Tejun Heo
- Re: [PATCH -next] ia64/sn: fix percpu warnings
- From: Tony Luck
- RE: [PATCH -next] ia64/sn: fix percpu warnings
- From: Luck, Tony
- linux-next: Tree for October 14
- Prev by Date: Re: [PATCH][RE-SUBMIT] Default setting of the ARM_UNWIND option
- Next by Date: Re: [RFC] to rebase or not to rebase on linux-next
- Previous by thread: RE: [PATCH -next] ia64/sn: fix percpu warnings
- Next by thread: RE: [PATCH -next] ia64/sn: fix percpu warnings
- Index(es):