[Bug #15589] 2.6.34-rc1: Badness at fs/proc/generic.c:316
Michael Ellerman
michael at ellerman.id.au
Wed Apr 21 10:25:27 EST 2010
On Tue, 2010-04-20 at 11:15 -0700, Christian Kujau wrote:
> On Tue, 20 Apr 2010 at 22:18, Michael Ellerman wrote:
> > Try this 100% unbuilt, 100% untested patch.
>
> I added GFP_KERNEL to kstrdup to make the compile error go away:
>
> fs/proc/proc_devtree.c: In function ‘unslash_name’:
> fs/proc/proc_devtree.c:183: error: too few arguments to function ‘kstrdup’
> make[2]: *** [fs/proc/proc_devtree.o] Error 1
> make[1]: *** [fs/proc] Error 2
> make: *** [fs] Error 2
Yeah oops, told you I hadn't built it.
> And now 2.6.34-rc5 compiles and boots without the warning. Thanks!
> New dmesg and /proc/device-tree on:
>
> http://nerdbynature.de/bits/2.6.34-rc1/xlate_proc_name/
Cool, and we see:
./uni-n at f8000000/i2c at f8001000/i2c-bus at 1/fan at 5c/pulses_rev
Which is the one that needed fixing.
> Alexey mentioned that this is "wasteful" - does it make the kernel slower?
> I have not done any performance tests, but I'd rather stick with the
> warning than make this Powerbook G4 any more slower :-\
Maybe a little. It has to check every string to see if it contains a
"/". But then you save the cost of taking an exeception for the WARN,
which might make up the difference. But it's a one time fixup at boot,
so it's not going to be noticeable.
cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100421/f6e4a02c/attachment.pgp>
More information about the Linuxppc-dev
mailing list