• Sam Ravnborg's avatar
    sparc64: fix sparse warnings in sys_sparc32.c · ed8eb755
    Sam Ravnborg authored
    Fix following warnings:
    sys_sparc32.c:52:17: warning: symbol 'sys32_truncate64' was not declared. Should it be static?
    sys_sparc32.c:60:17: warning: symbol 'sys32_ftruncate64' was not declared. Should it be static?
    sys_sparc32.c:98:17: warning: symbol 'compat_sys_stat64' was not declared. Should it be static?
    sys_sparc32.c:109:17: warning: symbol 'compat_sys_lstat64' was not declared. Should it be static?
    sys_sparc32.c:120:17: warning: symbol 'compat_sys_fstat64' was not declared. Should it be static?
    sys_sparc32.c:131:17: warning: symbol 'compat_sys_fstatat64' was not declared. Should it be static?
    sys_sparc32.c:196:27: warning: symbol 'sys32_pread64' was not declared. Should it be static?
    sys_sparc32.c:205:27: warning: symbol 'sys32_pwrite64' was not declared. Should it be static?
    sys_sparc32.c:214:17: warning: symbol 'compat_sys_readahead' was not declared. Should it be static?
    sys_sparc32.c:222:6: warning: symbol 'compat_sys_fadvise64' was not declared. Should it be static?
    sys_sparc32.c:230:6: warning: symbol 'compat_sys_fadvise64_64' was not declared. Should it be static?
    sys_sparc32.c:241:6: warning: symbol 'sys32_sync_file_range' was not declared. Should it be static?
    sys_sparc32.c:249:17: warning: symbol 'compat_sys_fallocate' was not declared. Should it be static?
    
    Add proper prototypes in systbls.h
    Include linux/compat.h to get access to necessary types
    Use inverse christmas tree order in includes
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ed8eb755
systbls.h 3.85 KB