Skip to contentSkip to conversation

linux-next: build failure after merge of the scsi-mkp tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Aug 17, 2021 – Aug 18, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the scsi-mkp tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

In file included from include/linux/byteorder/big_endian.h:5,
from arch/powerpc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:7,
from arch/powerpc/include/asm/bitops.h:265,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_queuecommand':
drivers/scsi/ibmvscsi/ibmvfc.c:1959:39: error: 'struct scsi_cmnd' has no member named 'tag'
1959 | vfc_cmd->task_tag = cpu_to_be64(cmnd->tag);
| ^~
include/uapi/linux/byteorder/big_endian.h:37:51: note: in definition of macro '__cpu_to_be64'
37 | #define __cpu_to_be64(x) ((__force __be64)(__u64)(x))
| ^
drivers/scsi/ibmvscsi/ibmvfc.c:1959:23: note: in expansion of macro 'cpu_to_be64'

 1959 |   vfc_cmd->task_tag = cpu_to_be64(cmnd->tag);
      |                       ^~~~~~~~~~~

Caused by commit

c7c43e3c7147 ("scsi: core: Remove scsi_cmnd.tag")

I have used the scsi-mkp tree from next-20210816 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 25 lines · Stephen Rothwell

Hi all,

After merging the scsi-mkp tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

In file included from include/linux/byteorder/big_endian.h:5,
from arch/powerpc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:7,
from arch/powerpc/include/asm/bitops.h:265,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_queuecommand':
drivers/scsi/ibmvscsi/ibmvfc.c:1959:39: error: 'struct scsi_cmnd' has no member named 'tag'
1959 | vfc_cmd->task_tag = cpu_to_be64(cmnd->tag);
| ^~
include/uapi/linux/byteorder/big_endian.h:37:51: note: in definition of macro '__cpu_to_be64'

    37 | #define __cpu_to_be64(x) ((__force __be64)(__u64)(x))
       |                                                   ^
drivers/scsi/ibmvscsi/ibmvfc.c:1959:23: note: in expansion of macro 'cpu_to_be64'
  1959 |   vfc_cmd->task_tag = cpu_to_be64(cmnd->tag);
       |                       ^~~~~~~~~~~
Quoted 6 lines

Caused by commit

   c7c43e3c7147 ("scsi: core: Remove scsi_cmnd.tag")

I have used the scsi-mkp tree from next-20210816 for today.

sorry... I only built x86 and arm64 allmodconfig. Let me check this.

Thanks

#2 lore raw
Quoted 1 line · John Garry

sorry... I only built x86 and arm64 allmodconfig. Let me check this.

Build testing for tree-wide changes is tricky. You may want to use a build bot for such testing. From
https://01.org/lkp/documentation/0-day-test-service:

Q: Which git tree and which mailing list will be tested? How can I opt-in or opt-out from it?

A: 0-Day monitors hundreds of git trees and tens of mailing lists. You can obtain detailed tree and mailing list information from the source code under the lkp-tests/repo directory. If you want to add or remove your tree from the 0-Day test system, send an email to the LKML, specifying your git tree URL.

Bart.

#3 lore raw
Quoted 6 lines · Bart Van Assche
Quoted 1 line · John Garry

sorry... I only built x86 and arm64 allmodconfig. Let me check this.

Build testing for tree-wide changes is tricky. You may want to use a build bot for such testing. From
https://01.org/lkp/documentation/0-day-test-service:

Quoted 8 lines

Q: Which git tree and which mailing list will be tested? How can I opt-in or opt-out from it?

A: 0-Day monitors hundreds of git trees and tens of mailing lists. You can obtain detailed tree and mailing list information from the source code under the lkp-tests/repo directory. If you want to add or remove your tree from the 0-Day test system, send an email to the LKML, specifying your git tree URL.

Thanks for the info! Quite useful.

Unfortunately there is code which has internal build switches - like qla1280.c and DEBUG_QLA1280, which Martin mentioned - so harder to spot. I suppose that's the risk with internal build switches.

Thanks again,
John