arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token

From: kernel test robot
Date: Sun May 30 2021 - 06:19:17 EST


Hi Christoph,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b90e90f40b4ff23c753126008bf4713a42353af6
commit: 8cad3b66bff4ee7c7d52b9a663cb6a2c5f66a7f7 Buslogic: remove ISA support
date: 8 weeks ago
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8cad3b66bff4ee7c7d52b9a663cb6a2c5f66a7f7
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8cad3b66bff4ee7c7d52b9a663cb6a2c5f66a7f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:30,
from arch/ia64/include/asm/hw_irq.h:11,
from include/linux/irq.h:589,
from arch/ia64/include/asm/hardirq.h:19,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/scsi/BusLogic.c:27:
>> arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
drivers/scsi/FlashPoint.c:43:6: note: in expansion of macro 'si_flags'
43 | u16 si_flags;
| ^~~~~~~~
In file included from drivers/scsi/BusLogic.c:51:
drivers/scsi/FlashPoint.c: In function 'FlashPoint_ProbeHostAdapter':
>> drivers/scsi/FlashPoint.c:1076:11: error: 'struct sccb_mgr_info' has no member named '_sifields'
1076 | pCardInfo->si_flags = 0x0000;
| ^~
drivers/scsi/FlashPoint.c:1079:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1079 | pCardInfo->si_flags |= SCSI_PARITY_ENA;
| ^~
drivers/scsi/FlashPoint.c:1082:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1082 | pCardInfo->si_flags |= SOFT_RESET;
| ^~
drivers/scsi/FlashPoint.c:1085:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1085 | pCardInfo->si_flags |= EXTENDED_TRANSLATION;
| ^~
drivers/scsi/FlashPoint.c:1088:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1088 | pCardInfo->si_flags |= FLAG_SCAM_ENABLED;
| ^~
drivers/scsi/FlashPoint.c:1091:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1091 | pCardInfo->si_flags |= FLAG_SCAM_LEVEL2;
| ^~
drivers/scsi/FlashPoint.c:1107:12: error: 'struct sccb_mgr_info' has no member named '_sifields'
1107 | pCardInfo->si_flags |= SUPPORT_16TAR_32LUN;
| ^~
>> drivers/scsi/FlashPoint.c:1109:11: error: 'struct sccb_mgr_info' has no member named 'si_card_family'
1109 | pCardInfo->si_card_family = HARPOON_FAMILY;
| ^~
>> drivers/scsi/FlashPoint.c:1110:11: error: 'struct sccb_mgr_info' has no member named 'si_bustype'
1110 | pCardInfo->si_bustype = BUSTYPE_PCI;
| ^~
>> drivers/scsi/FlashPoint.c:1113:12: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1113 | pCardInfo->si_card_model[0] = '9';
| ^~
drivers/scsi/FlashPoint.c:1116:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1116 | pCardInfo->si_card_model[1] = '3';
| ^~
drivers/scsi/FlashPoint.c:1117:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1117 | pCardInfo->si_card_model[2] = '0';
| ^~
drivers/scsi/FlashPoint.c:1120:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1120 | pCardInfo->si_card_model[1] = '5';
| ^~
drivers/scsi/FlashPoint.c:1121:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1121 | pCardInfo->si_card_model[2] = '0';
| ^~
drivers/scsi/FlashPoint.c:1124:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1124 | pCardInfo->si_card_model[1] = '3';
| ^~
drivers/scsi/FlashPoint.c:1125:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1125 | pCardInfo->si_card_model[2] = '2';
| ^~
drivers/scsi/FlashPoint.c:1128:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1128 | pCardInfo->si_card_model[1] = '5';
| ^~
drivers/scsi/FlashPoint.c:1129:13: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1129 | pCardInfo->si_card_model[2] = '2';
| ^~
drivers/scsi/FlashPoint.c:1134:12: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1134 | pCardInfo->si_card_model[0] = (unsigned char)(temp >> 8);
| ^~
drivers/scsi/FlashPoint.c:1137:12: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1137 | pCardInfo->si_card_model[1] = (unsigned char)(temp & 0x00FF);
| ^~
drivers/scsi/FlashPoint.c:1138:12: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1138 | pCardInfo->si_card_model[2] = (unsigned char)(temp >> 8);
| ^~
drivers/scsi/FlashPoint.c:1141:15: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1141 | if (pCardInfo->si_card_model[1] == '3') {
| ^~
drivers/scsi/FlashPoint.c:1143:13: error: 'struct sccb_mgr_info' has no member named '_sifields'
1143 | pCardInfo->si_flags |= LOW_BYTE_TERM;
| ^~
drivers/scsi/FlashPoint.c:1144:22: error: 'struct sccb_mgr_info' has no member named 'si_card_model'
1144 | } else if (pCardInfo->si_card_model[2] == '0') {
| ^~
drivers/scsi/FlashPoint.c:1148:13: error: 'struct sccb_mgr_info' has no member named '_sifields'
1148 | pCardInfo->si_flags |= LOW_BYTE_TERM;
| ^~
drivers/scsi/FlashPoint.c:1151:13: error: 'struct sccb_mgr_info' has no member named '_sifields'
1151 | pCardInfo->si_flags |= HIGH_BYTE_TERM;
| ^~
drivers/scsi/FlashPoint.c:1169:13: error: 'struct sccb_mgr_info' has no member named '_sifields'
1169 | pCardInfo->si_flags |= LOW_BYTE_TERM;
| ^~
drivers/scsi/FlashPoint.c:1171:13: error: 'struct sccb_mgr_info' has no member named '_sifields'
1171 | pCardInfo->si_flags |= HIGH_BYTE_TERM;
| ^~
>> drivers/scsi/FlashPoint.c:1178:12: error: 'struct sccb_mgr_info' has no member named 'si_XlatInfo'
1178 | pCardInfo->si_XlatInfo[i] =
| ^~
>> drivers/scsi/FlashPoint.c:1185:11: error: 'struct sccb_mgr_info' has no member named 'si_relative_cardnum'
1185 | pCardInfo->si_relative_cardnum =
| ^~
drivers/scsi/FlashPoint.c: In function 'FlashPoint_HardwareResetHostAdapter':
drivers/scsi/FlashPoint.c:1278:30: error: 'struct sccb_mgr_info' has no member named '_sifields'
1278 | i = (unsigned char)pCardInfo->si_flags;
| ^~
drivers/scsi/FlashPoint.c:1292:17: error: 'struct sccb_mgr_info' has no member named '_sifields'
1292 | if (!(pCardInfo->si_flags & SOFT_RESET)) {
| ^~
drivers/scsi/FlashPoint.c:1299:15: error: 'struct sccb_mgr_info' has no member named '_sifields'
1299 | if (pCardInfo->si_flags & POST_ALL_UNDERRRUNS)
| ^~
drivers/scsi/FlashPoint.c: In function 'FlashPoint_AbortCCB':
drivers/scsi/FlashPoint.c:1618:16: warning: variable 'TID' set but not used [-Wunused-but-set-variable]
1618 | unsigned char TID;
| ^~~
drivers/scsi/BusLogic.c: In function 'blogic_msg':
drivers/scsi/BusLogic.c:3447:2: warning: function 'blogic_msg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
3447 | len = vsprintf(buf, fmt, args);
| ^~~


vim +15 arch/ia64/include/uapi/asm/siginfo.h

43e40f25d2c0903 David Howells 2012-10-09 13
43e40f25d2c0903 David Howells 2012-10-09 14 #define si_imm _sifields._sigfault._imm /* as per UNIX SysV ABI spec */
43e40f25d2c0903 David Howells 2012-10-09 @15 #define si_flags _sifields._sigfault._flags
43e40f25d2c0903 David Howells 2012-10-09 16 /*
43e40f25d2c0903 David Howells 2012-10-09 17 * si_isr is valid for SIGILL, SIGFPE, SIGSEGV, SIGBUS, and SIGTRAP provided that
43e40f25d2c0903 David Howells 2012-10-09 18 * si_code is non-zero and __ISR_VALID is set in si_flags.
43e40f25d2c0903 David Howells 2012-10-09 19 */
43e40f25d2c0903 David Howells 2012-10-09 20 #define si_isr _sifields._sigfault._isr
43e40f25d2c0903 David Howells 2012-10-09 21

:::::: The code at line 15 was first introduced by commit
:::::: 43e40f25d2c090392fc36cb900b42972e88cc2e2 UAPI: (Scripted) Disintegrate arch/ia64/include/asm

:::::: TO: David Howells <dhowells@xxxxxxxxxx>
:::::: CC: David Howells <dhowells@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip