realme-kernel-opensource / realme_11-5G_narzo-60x-5G-AndroidT-kernel-source

Other
2 stars 0 forks source link

Compilation erro #1

Open knowtygamerz opened 9 months ago

knowtygamerz commented 9 months ago

In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ ./include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type' compiletime_assert(native_word(t) || sizeof(t) == sizeof(long long), \ ^ ././include/linux/compiler_types.h:302:10: note: expanded from macro 'native_word' (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \ ^ ././include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, compiletimeassert, COUNTER__) ^~~ ././include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^~~ ././include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ ./include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type' compiletime_assert(native_word(t) || sizeof(t) == sizeof(long long), \ ^ ././include/linux/compiler_types.h:302:39: note: expanded from macro 'native_word' (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \ ^ ././include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, compiletimeassert, COUNTER) ^~~ ././include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^~~ ././include/linux/compiler_types.h:314:9: note: expanded from macro 'compiletime_assert' if (!(condition)) \ ^~~~~ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct *) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ ./include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type' compiletime_assert(native_word(t) || sizeof(t) == sizeof(long long), \ ^ ././include/linux/compiler_types.h:303:10: note: expanded from macro '__native_word' sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long)) ^ ././include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, compiletimeassert, COUNTER) ^~~ ././include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^~~ ././include/linux/compiler_types.h:314:9: note: expanded from macro 'compiletime_assert' if (!(condition)) \ ^~~~~ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct *) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ ./include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type' compiletime_assert(native_word(t) || sizeof(t) == sizeof(long long), \ ^ ././include/linux/compiler_types.h:303:38: note: expanded from macro 'native_word' sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long)) ^ ././include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, compiletimeassert, COUNTER__) ^~~~~ ././include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert' compiletime_assert(condition, msg, prefix, suffix) ^~~ ././include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ ./include/asm-generic/rwonce.h:36:48: note: expanded from macro 'compiletime_assert_rwonce_type' compiletime_assert(native_word(t) || sizeof(t) == sizeof(long long), \ ^ ././include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, compiletimeassert, COUNTER__) ^~~~~ ././include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert' compiletime_assert(condition, msg, prefix, suffix) ^~~ ././include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' READ_ONCE(x); \ ^ ./include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE' #define READ_ONCE(x) ((const volatile __unqual_scalar_typeof(x) )&(x)) ^ ././include/linux/compiler_types.h:291:13: note: expanded from macro 'unqual_scalar_typeof' _Generic((x), \ ^ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct *) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' __READ_ONCE(x); \ ^ ./include/asm-generic/rwonce.h:44:65: note: expanded from macro 'READ_ONCE' #define READ_ONCE(x) ((const volatile __unqual_scalar_typeof(x) )&(x)) ^ ././include/linux/compiler_types.h:298:15: note: expanded from macro 'unqual_scalar_typeof' default: (x))) ^ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:50: error: no member named 'android_oem_data1' in 'struct task_struct' ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ~ ^ ./include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' READ_ONCE(x); \ ^ ./include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE' #define READ_ONCE(x) ((const volatile __unqual_scalar_typeof(x) )&(x)) ^ In file included from kernel/locking/oplus_locking/mutex.c:9: ./include/../kernel/oplus_cpu/sched/sched_assist/sa_common.h:287:37: error: operand of type 'void' where arithmetic or pointer type is required ots = (struct oplus_task_struct ) READ_ONCE(t->android_oem_data1[OTS_IDX]); ^~~~~~~~~~~~ ./include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE' #define READ_ONCE(x) \ ^ kernel/locking/oplus_locking/mutex.c:263:2: error: implicit declaration of function 'register_trace_android_vh_alter_mutex_list_add' [-Werror,-Wimplicit-function-declaration] register_trace_android_vh_alter_mutex_list_add(android_vh_alter_mutex_list_add_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:263:2: note: did you mean 'trace_android_vh_alter_mutex_list_add'? ./include/trace/hooks/dtask.h:79:1: note: 'trace_android_vh_alter_mutex_list_add' declared here DECLARE_HOOK(android_vh_alter_mutex_list_add, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :66:1: note: expanded from here trace_android_vh_alter_mutex_list_add ^ kernel/locking/oplus_locking/mutex.c:264:2: error: implicit declaration of function 'register_trace_android_vh_mutex_wait_start' [-Werror,-Wimplicit-function-declaration] register_trace_android_vh_mutex_wait_start(android_vh_mutex_wait_start_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:264:2: note: did you mean 'trace_android_vh_mutex_wait_start'? ./include/trace/hooks/dtask.h:26:1: note: 'trace_android_vh_mutex_wait_start' declared here DECLARE_HOOK(android_vh_mutex_wait_start, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :18:1: note: expanded from here trace_android_vh_mutex_wait_start ^ kernel/locking/oplus_locking/mutex.c:265:2: error: implicit declaration of function 'register_trace_android_vh_mutex_wait_finish' [-Werror,-Wimplicit-function-declaration] register_trace_android_vh_mutex_wait_finish(android_vh_mutex_wait_finish_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:266:2: error: implicit declaration of function 'register_trace_android_vh_mutex_unlock_slowpath' [-Werror,-Wimplicit-function-declaration] register_trace_android_vh_mutex_unlock_slowpath(android_vh_mutex_unlock_slowpath_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:266:2: note: did you mean 'trace_android_vh_mutex_unlock_slowpath'? ./include/trace/hooks/dtask.h:85:1: note: 'trace_android_vh_mutex_unlock_slowpath' declared here DECLARE_HOOK(android_vh_mutex_unlock_slowpath, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :69:1: note: expanded from here trace_android_vh_mutex_unlock_slowpath ^ kernel/locking/oplus_locking/mutex.c:276:2: error: implicit declaration of function 'unregister_trace_android_vh_alter_mutex_list_add' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_alter_mutex_list_add(android_vh_alter_mutex_list_add_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:276:2: note: did you mean 'trace_android_vh_alter_mutex_list_add'? ./include/trace/hooks/dtask.h:79:1: note: 'trace_android_vh_alter_mutex_list_add' declared here DECLARE_HOOK(android_vh_alter_mutex_list_add, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :66:1: note: expanded from here trace_android_vh_alter_mutex_list_add ^ kernel/locking/oplus_locking/mutex.c:277:2: error: implicit declaration of function 'unregister_trace_android_vh_mutex_wait_start' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_mutex_wait_start(android_vh_mutex_wait_start_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:277:2: note: did you mean 'trace_android_vh_mutex_wait_start'? ./include/trace/hooks/dtask.h:26:1: note: 'trace_android_vh_mutex_wait_start' declared here DECLARE_HOOK(android_vh_mutex_wait_start, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :18:1: note: expanded from here trace_android_vh_mutex_wait_start ^ kernel/locking/oplus_locking/mutex.c:278:2: error: implicit declaration of function 'unregister_trace_android_vh_mutex_wait_finish' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_mutex_wait_finish(android_vh_mutex_wait_finish_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:279:2: error: implicit declaration of function 'unregister_trace_android_vh_mutex_unlock_slowpath' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_mutex_unlock_slowpath(android_vh_mutex_unlock_slowpath_handler, NULL); ^ kernel/locking/oplus_locking/mutex.c:279:2: note: did you mean 'trace_android_vh_mutex_unlock_slowpath'? ./include/trace/hooks/dtask.h:85:1: note: 'trace_android_vh_mutex_unlock_slowpath' declared here DECLARE_HOOK(android_vh_mutex_unlock_slowpath, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :69:1: note: expanded from here trace_android_vh_mutex_unlock_slowpath ^ 17 errors generated. make[3]: [scripts/Makefile.build:296: kernel/locking/oplus_locking/mutex.o] Error 1 make[2]: [scripts/Makefile.build:568: kernel/locking/oplus_locking] Error 2 make[1]: [scripts/Makefile.build:568: kernel/locking] Error 2 make[1]: Waiting for unfinished jobs.... CC arch/arm64/mm/ioremap.o CC arch/arm64/kernel/ptrace.o CHK include/generated/compile.h mm/oplus_mm/zram_opt/zram_opt.c:88:44: error: implicit declaration of function 'free_swap_is_low_fp' [-Werror,-Wimplicit-function-declaration] if (free_swap_is_low_fp && free_swap_is_low_fp()) ^ mm/oplus_mm/zram_opt/zram_opt.c:88:21: error: use of undeclared identifier 'free_swap_is_low_fp' if (free_swap_is_low_fp && free_swap_is_low_fp()) ^ mm/oplus_mm/zram_opt/zram_opt.c:156:8: error: implicit declaration of function 'register_trace_android_vh_tune_swappiness' [-Werror,-Wimplicit-function-declaration] ret = register_trace_android_vh_tune_swappiness(zo_set_swappiness, NULL); ^ mm/oplus_mm/zram_opt/zram_opt.c:156:8: note: did you mean 'trace_android_vh_tune_swappiness'? ./include/trace/hooks/vmscan.h:42:1: note: 'trace_android_vh_tune_swappiness' declared here DECLARE_HOOK(android_vh_tune_swappiness, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :52:1: note: expanded from here trace_android_vh_tune_swappiness ^ mm/oplus_mm/zram_opt/zram_opt.c:172:8: error: implicit declaration of function 'register_trace_android_rvh_set_balance_anon_file_reclaim' [-Werror,-Wimplicit-function-declaration] ret = register_trace_android_rvh_set_balance_anon_file_reclaim(balance_reclaim, ^ mm/oplus_mm/zram_opt/zram_opt.c:172:8: note: did you mean 'trace_android_rvh_set_balance_anon_file_reclaim'? ./include/trace/hooks/vmscan.h:15:1: note: 'trace_android_rvh_set_balance_anon_file_reclaim' declared here DECLARE_RESTRICTED_HOOK(android_rvh_set_balance_anon_file_reclaim, ^ ./include/trace/hooks/vendor_hooks.h:121:2: note: expanded from macro 'DECLARE_RESTRICTED_HOOK' DECLARE_EVENT_NOP(name, PARAMS(proto), PARAMS(args)) ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :25:1: note: expanded from here trace_android_rvh_set_balance_anon_file_reclaim ^ mm/oplus_mm/zram_opt/zram_opt.c:181:8: error: implicit declaration of function 'register_trace_android_vh_killed_process' [-Werror,-Wimplicit-function-declaration] ret = register_trace_android_vh_killed_process(android_vh_killed_process_handler, NULL); ^ mm/oplus_mm/zram_opt/zram_opt.c:181:8: note: did you mean 'trace_android_vh_killed_process'? ./include/trace/hooks/signal.h:21:1: note: 'trace_android_vh_killed_process' declared here DECLARE_HOOK(android_vh_killed_process, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :99:1: note: expanded from here trace_android_vh_killed_process ^ mm/oplus_mm/zram_opt/zram_opt.c:194:2: error: implicit declaration of function 'unregister_trace_android_vh_tune_swappiness' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_tune_swappiness(zo_set_swappiness, NULL); ^ mm/oplus_mm/zram_opt/zram_opt.c:194:2: note: did you mean 'trace_android_vh_tune_swappiness'? ./include/trace/hooks/vmscan.h:42:1: note: 'trace_android_vh_tune_swappiness' declared here DECLARE_HOOK(android_vh_tune_swappiness, ^ ./include/trace/hooks/vendor_hooks.h:119:22: note: expanded from macro 'DECLARE_HOOK' #define DECLARE_HOOK DECLARE_EVENT_NOP ^ ./include/linux/tracepoint.h:571:21: note: expanded from macro 'DECLARE_EVENTNOP' static inline void trace##name(proto) \ ^ :52:1: note: expanded from here trace_android_vh_tune_swappiness ^ mm/oplus_mm/zram_opt/zram_opt.c:197:2: error: implicit declaration of function 'unregister_trace_android_vh_killed_process' [-Werror,-Wimplicit-function-declaration] unregister_trace_android_vh_killed_process(android_vh_killed_process_handler, NULL); ^ 7 errors generated. make[3]: [scripts/Makefile.build:296: mm/oplus_mm/zram_opt/zram_opt.o] Error 1 make[2]: [scripts/Makefile.build:568: mm/oplus_mm/zram_opt] Error 2 make[1]: [scripts/Makefile.build:568: mm/oplus_mm] Error 2 make: [Makefile:1975: mm] Error 2 make: *** Waiting for unfinished jobs....

realme-kernel-opensource commented 8 months ago

Hi Customer, Perhaps there is an issue with your configuration file, "ANDROID VENDOR OEM_ DATA" is not enabled, please check it. If not defined, please add it to "kernel-5.15/arch/arm64/configs/mgk_64_k515defconfig", thanks.