Sorry, I did not include the compilation errors, they are at the bottom.
Also I forgot to include the link to the git repository I initially
cloned: https://git.launchpad.net/~ubuntu-
kernel/ubuntu/+source/linux/+git/resolute
klp-checksum.c: In function ‘checksum_update_insn’:
klp-checksum.c:73:31: error: implicit declaration of function ‘insn_reloc’
[-Wimplicit-function-declaration]
73 | struct reloc *reloc = insn_reloc(file, insn);
| ^~~~~~~~~~
klp-checksum.c:73:31: error: initialization of ‘struct reloc *’ from ‘int’
makes pointer from integer without a cast [-Wint-conversion]
klp-checksum.c:108:17: error: implicit declaration of function
‘__checksum_update_insn’; did you mean ‘checksum_update_insn’?
[-Wimplicit-function-declaration]
108 | __checksum_update_insn(func, insn, cst,
sym->sec->sh.sh_entsize);
| ^~~~~~~~~~~~~~~~~~~~~~
| checksum_update_insn
klp-checksum.c: In function ‘calculate_checksums’:
klp-checksum.c:166:43: error: implicit declaration of function ‘is_cold_func’
[-Wimplicit-function-declaration]
166 | if (!is_func_sym(func) || is_cold_func(func) ||
| ^~~~~~~~~~~~
klp-checksum.c:167:21: error: implicit declaration of function ‘is_alias_sym’;
did you mean ‘is_local_sym’? [-Wimplicit-function-declaration]
167 | is_alias_sym(func) || !func->len)
| ^~~~~~~~~~~~
| is_local_sym
klp-checksum.c: In function ‘cmd_klp_checksum’:
klp-checksum.c:254:15: error: implicit declaration of function ‘decode_file’
[-Wimplicit-function-declaration]
254 | ret = decode_file(file);
| ^~~~~~~~~~~
klp-checksum.c:265:9: error: implicit declaration of function ‘free_insns’
[-Wimplicit-function-declaration]
265 | free_insns(file);
| ^~~~~~~~~~
CC
/home/r0pke/Downloads/linux/linux-7.0.0/debian/build/build-generic/tools/objtool/libctype.o
make[6]: ***
[/home/r0pke/Downloads/linux/linux-7.0.0/tools/build/Makefile.build:95:
/home/r0pke/Downloads/linux/linux-7.0.0/debian/build/build-generic/tools/objtool/klp-checksum.o]
Error 1
make[6]: *** Waiting for unfinished jobs....
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173273
Title:
Compilation errors in klp-checksum.c
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2173273/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs