N00bKernel / android_kernel_realme_RMX1901

N00bKernel for Realme X [RMX1901]
Other
0 stars 0 forks source link

Errors in readahead.c file function declaration, missing identifier #4

Closed chankruze closed 5 years ago

chankruze commented 5 years ago
../mm/readahead.c:561:1: warning: declaration specifier missing, defaulting to 'int'
SYSCALL_DEFINE3(readahead, int, fd, loff_t, offset, size_t, count)
^
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:195:2: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_push();                                                  \
        ^
../mm/readahead.c:561:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:195:13: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_push();                                                  \
                   ^
../mm/readahead.c:561:1: error: expected identifier
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:196:23: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_ignore(GCC_8, "-Wattribute-alias");                      \
                             ^
../mm/readahead.c:561:1: warning: declaration specifier missing, defaulting to 'int'
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:196:2: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_ignore(GCC_8, "-Wattribute-alias");                      \
        ^
../mm/readahead.c:561:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:196:15: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_ignore(GCC_8, "-Wattribute-alias");                      \
                     ^
../mm/readahead.c:561:1: warning: declaration specifier missing, defaulting to 'int'
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:208:2: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_pop();                                                   \
        ^
../mm/readahead.c:561:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
../include/linux/syscalls.h:184:36: note: expanded from macro 'SYSCALL_DEFINE3'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                   ^
../include/linux/syscalls.h:191:2: note: expanded from macro 'SYSCALL_DEFINEx'
        __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
        ^
../include/linux/syscalls.h:208:12: note: expanded from macro '__SYSCALL_DEFINEx'
        __diag_pop();                                                   \
                  ^
chankruze commented 5 years ago

../arch/arm64/kernel/sys.c:40:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]