Код: Выделить всё
CC kernel/exec_domain.o
CC kernel/panic.o
In file included from kernel/panic.c:25:
include/linux/nmi.h:94:20: error: two or more data types in declaration specifiers
94 | static inline void void sl_softirq_entry(const char *, void *) { }
| ^~~~
make[1]: *** [scripts/Makefile.build:278: kernel/panic.o] Error 1
make: *** [Makefile:1043: kernel] Error 2
- В файле /Makefile
Код: Выделить всё
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ -Wno-format-security \ -Werror\ #Removed this line over here as I was getting too many build failures due to warnings treated as errors -std=gnu89 $(call cc-option,-fno-PIE) - В скриптах/dtc/dtc-lexer.lex.c_shipped.
Код: Выделить всё
-- YYLTYPE yylloc; ++ extern YYLTYPE yylloc; - Остальные 2 патча в файлах kernel\Makefile и net\netfilter\xt_qtaguid.c на основе этого руководство https://gist.github.com/FreddieOliveira ... el-patches
У меня нет опыта разработки ядра, поэтому я не решаюсь менять какой-либо код.
Версия gcc I я использую 13.3.0
Подробнее здесь: https://stackoverflow.com/questions/793 ... types-in-d
Мобильная версия