CC: [email protected] CC: [email protected] TO: Martin Schwidefsky <[email protected]> CC: Josh Poimboeuf <[email protected]> CC: Vasily Gorbik <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3906fe9bb7f1a2c8667ae54e967dc8690824f4ea commit: 1d509f2a6ebca1aea3089c769f6375f01a832e9b x86/insn: Support big endian cross-compiles date: 10 months ago :::::: branch date: 8 hours ago :::::: commit date: 10 months ago config: x86_64-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d509f2a6ebca1aea3089c769f6375f01a832e9b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 1d509f2a6ebca1aea3089c769f6375f01a832e9b # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) arch/x86/boot/compressed/sev-es.c: note: in included file (through arch/x86/boot/compressed/../../lib/inat.c): ./arch/x86/lib//inat-tables.c:5:19: sparse: sparse: symbol 'inat_primary_table' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:205:19: sparse: sparse: symbol 'inat_escape_table_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:422:19: sparse: sparse: symbol 'inat_escape_table_1_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:550:19: sparse: sparse: symbol 'inat_escape_table_1_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:586:19: sparse: sparse: symbol 'inat_escape_table_1_3' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:624:19: sparse: sparse: symbol 'inat_escape_table_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:809:19: sparse: sparse: symbol 'inat_escape_table_2_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:987:19: sparse: sparse: symbol 'inat_escape_table_2_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1021:19: sparse: sparse: symbol 'inat_escape_table_2_3' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1039:19: sparse: sparse: symbol 'inat_escape_table_3' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1114:19: sparse: sparse: symbol 'inat_escape_table_3_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1187:19: sparse: sparse: symbol 'inat_escape_table_3_3' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1198:19: sparse: sparse: symbol 'inat_group_table_6' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1210:19: sparse: sparse: symbol 'inat_group_table_7' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1222:19: sparse: sparse: symbol 'inat_group_table_8' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1228:19: sparse: sparse: symbol 'inat_group_table_9' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1239:19: sparse: sparse: symbol 'inat_group_table_10' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1249:19: sparse: sparse: symbol 'inat_group_table_11' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1259:19: sparse: sparse: symbol 'inat_group_table_11_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1266:19: sparse: sparse: symbol 'inat_group_table_24' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1271:19: sparse: sparse: symbol 'inat_group_table_24_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1274:19: sparse: sparse: symbol 'inat_group_table_24_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1282:19: sparse: sparse: symbol 'inat_group_table_4' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1288:19: sparse: sparse: symbol 'inat_group_table_5' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1294:19: sparse: sparse: symbol 'inat_group_table_16' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1299:19: sparse: sparse: symbol 'inat_group_table_16_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1306:19: sparse: sparse: symbol 'inat_group_table_17' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1313:19: sparse: sparse: symbol 'inat_group_table_17_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1322:19: sparse: sparse: symbol 'inat_group_table_18' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1328:19: sparse: sparse: symbol 'inat_group_table_18_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1336:19: sparse: sparse: symbol 'inat_group_table_21' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1345:19: sparse: sparse: symbol 'inat_group_table_21_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1348:19: sparse: sparse: symbol 'inat_group_table_21_2' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1357:19: sparse: sparse: symbol 'inat_group_table_21_3' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1362:19: sparse: sparse: symbol 'inat_group_table_13' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1370:19: sparse: sparse: symbol 'inat_group_table_27' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1377:19: sparse: sparse: symbol 'inat_group_table_25' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1383:19: sparse: sparse: symbol 'inat_group_table_25_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1391:19: sparse: sparse: symbol 'inat_group_table_26' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1397:19: sparse: sparse: symbol 'inat_group_table_26_1' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1405:19: sparse: sparse: symbol 'inat_group_table_14' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1410:19: sparse: sparse: symbol 'inat_group_table_15' was not declared. Should it be static? ./arch/x86/lib//inat-tables.c:1413:19: sparse: sparse: symbol 'inat_group_table_15_2' was not declared. Should it be static? arch/x86/boot/compressed/sev-es.c: note: in included file: >> arch/x86/boot/compressed/../../lib/insn.c:86:21: sparse: sparse: cast to >> restricted __le32 >> arch/x86/boot/compressed/../../lib/insn.c:86:21: sparse: sparse: cast to >> restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:129:13: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:129:13: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:154:21: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:154:21: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:171:21: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:171:21: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:184:13: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:184:13: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:187:34: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:187:34: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:200:30: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:200:30: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:202:30: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:202:30: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:210:30: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:210:30: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:258:14: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:258:14: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:278:22: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:278:22: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:310:23: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:310:23: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:372:40: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:372:40: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:423:40: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:423:40: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:427:48: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:427:48: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:433:48: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:433:48: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:449:49: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:449:49: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:452:49: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:452:49: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:455:49: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:455:49: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:456:49: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:456:49: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:474:50: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:474:50: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:478:50: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:478:50: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:495:51: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:495:51: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:498:51: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:498:51: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:502:51: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:502:51: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:503:51: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:503:51: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:520:51: sparse: sparse: cast to restricted __le32 arch/x86/boot/compressed/../../lib/insn.c:520:51: sparse: sparse: cast to restricted __le16 arch/x86/boot/compressed/../../lib/insn.c:523:51: sparse: sparse: too many warnings vim +86 arch/x86/boot/compressed/../../lib/insn.c 4d65adfcd11968 Masami Hiramatsu 2019-09-06 79 4d65adfcd11968 Masami Hiramatsu 2019-09-06 80 static int __insn_get_emulate_prefix(struct insn *insn, 4d65adfcd11968 Masami Hiramatsu 2019-09-06 81 const insn_byte_t *prefix, size_t len) 4d65adfcd11968 Masami Hiramatsu 2019-09-06 82 { 4d65adfcd11968 Masami Hiramatsu 2019-09-06 83 size_t i; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 84 4d65adfcd11968 Masami Hiramatsu 2019-09-06 85 for (i = 0; i < len; i++) { 4d65adfcd11968 Masami Hiramatsu 2019-09-06 @86 if (peek_nbyte_next(insn_byte_t, insn, i) != prefix[i]) 4d65adfcd11968 Masami Hiramatsu 2019-09-06 87 goto err_out; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 88 } 4d65adfcd11968 Masami Hiramatsu 2019-09-06 89 4d65adfcd11968 Masami Hiramatsu 2019-09-06 90 insn->emulate_prefix_size = len; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 91 insn->next_byte += len; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 92 4d65adfcd11968 Masami Hiramatsu 2019-09-06 93 return 1; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 94 4d65adfcd11968 Masami Hiramatsu 2019-09-06 95 err_out: 4d65adfcd11968 Masami Hiramatsu 2019-09-06 96 return 0; 4d65adfcd11968 Masami Hiramatsu 2019-09-06 97 } 4d65adfcd11968 Masami Hiramatsu 2019-09-06 98 :::::: The code at line 86 was first introduced by commit :::::: 4d65adfcd1196818659d3bd9b42dccab291e1751 x86: xen: insn: Decode Xen and KVM emulate-prefix signature :::::: TO: Masami Hiramatsu <[email protected]> :::::: CC: Peter Zijlstra <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
