]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IA64] aliasing-test: fix gcc warnings on non-ia64
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 4 Feb 2008 23:23:10 +0000 (15:23 -0800)
committerTony Luck <tony.luck@intel.com>
Mon, 4 Feb 2008 23:23:10 +0000 (15:23 -0800)
commitcdef24c9cd38ae236065409c4a6289f165639e55
tree3a5f41a0e8bb7643fc9e1ff4fab159422f121129
parent5302ac5019367470e123cb91844a28d6941e6912
[IA64] aliasing-test: fix gcc warnings on non-ia64

Eliminate all build warnings.  OK, these build warnings are from
a build on x86_64.  When I build on ia64, I don't see warnings.

Now builds cleanly on ia64 and x86_64.

Documentation/ia64/aliasing-test.c: In function 'map_mem':
Documentation/ia64/aliasing-test.c:39: warning: implicit declaration of function 'ioctl'
Documentation/ia64/aliasing-test.c: In function 'scan_rom':
Documentation/ia64/aliasing-test.c:183: warning: format '%ld' expects type 'long int', but argument 4 has type 'int'
Documentation/ia64/aliasing-test.c: At top level:
Documentation/ia64/aliasing-test.c:208: warning: function declaration isn't a prototype
Documentation/ia64/aliasing-test.c: In function 'main':
Documentation/ia64/aliasing-test.c:259: warning: control reaches end of non-void function
Documentation/ia64/aliasing-test.c: In function 'scan_rom':
Documentation/ia64/aliasing-test.c:152: warning: 'rc' may be used uninitialized in this function
Documentation/ia64/aliasing-test.c: In function 'scan_tree':
Documentation/ia64/aliasing-test.c:68: warning: 'rc' may be used uninitialized in this function

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Documentation/ia64/aliasing-test.c