• Randy Dunlap's avatar
    [IA64] aliasing-test: fix gcc warnings on non-ia64 · cdef24c9
    Randy Dunlap authored
    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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Acked-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    cdef24c9
aliasing-test.c 5.96 KB