[PATCH] clean up compiler warnings in 2.5 bk
Nathan Lynch
nathanl at austin.ibm.com
Wed Nov 12 08:56:41 EST 2003
Hi-
Attached patch cleans up some warnings I've seen when building ameslab
2.5 bk:
arch/ppc64/kernel/prom.c:194: warning: missing braces around initializer
arch/ppc64/kernel/prom.c:194: warning: (near initialization for
`hmt_thread_data[0]')
arch/ppc64/kernel/prom.c: In function `prom_hold_cpus':
arch/ppc64/kernel/prom.c:1076: warning: implicit declaration of function
`_get_PIR'
arch/ppc64/kernel/prom.c: In function `inspect_node':
arch/ppc64/kernel/prom.c:1578: warning: comparison between pointer and
integer
Also, the patch fixes an issue with our version of
include/linux/proc_fs.h. It doesn't cause problems for ppc64, but when
built for something like i386, we see lots of:
include/linux/proc_fs.h:135: warning: `struct device_node' declared
inside parameter list
include/linux/proc_fs.h:135: warning: its scope is only this definition
or declaration, which is probably not what you want
There exist some other warnings from arch/ppc64/boot/prom.c that this
patch does not address (I don't really grok that code yet).
Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: warning_cleanup.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20031111/d0edc24a/attachment.txt
More information about the Linuxppc64-dev
mailing list