Undelivered Mail Returned to Sender
by Mail Delivery System
This is the mail system at host ml01.01.org.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<kbuild-all(a)lists.01.org>: host 127.0.0.1[127.0.0.1] said: 550 No Message-ID
header provided (in reply to end of DATA command)
Final-Recipient: rfc822; kbuild-all(a)lists.01.org
Original-Recipient: rfc822;kbuild-all(a)lists.01.org
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 550 No Message-ID header provided
.74; helo=3Dlocalhost; envelope-from=3Dkbuild-all(a)lists.01.org; receiver=3D=
<UNKNOWN>=20
Received: from localhost (unknown [121.61.136.74])
by ml01.01.org (Postfix) with UTF8SMTP id B58FC100EB337
for <kbuild-all(a)lists.01.org>; Thu, 10 Feb 2022 03:55:18 -0800 (PST)
From: "jack" <kbuild-all(a)lists.01.org>
Date: Thu, 10 Feb 2022 19:55:17 +0800
To: kbuild-all(a)lists.01.org
Subject: =3D?UTF-8?B?d2hvbGVzYWxlIG9sZCBtb2JpbGUgcGhvbmVzIGF0IGNoZWFwIHBy=
aWNlcw=3D=3D?=3D
Reply-To: jack_helloworld(a)163.com
MIME-Version: 1.0
Importance: high
Content-Type: text/html; charset=3Dutf-8
hi,<br><p>i'm jack from shenzhen, china. professionally provide used mobi=
le phones with competitive prices to global customers, add whtasapp video=
to buy mobile phones.<br>provide second-hand mobile phones of all brands=
in the world, such as: apple, huawei, samsung, xiaomi, vivo, oppo, etc.<=
br>please contact us. (wholesale, retail, one piece also shipped)</p><p>w=
hatsapp:+86 13423994073 jack</p>
7 months, 1 week
Undelivered Mail Returned to Sender
by Mail Delivery System
This is the mail system at host ml01.01.org.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<kbuild-all(a)lists.01.org>: host 127.0.0.1[127.0.0.1] said: 550 No Message-ID
header provided (in reply to end of DATA command)
Final-Recipient: rfc822; kbuild-all(a)lists.01.org
Original-Recipient: rfc822;kbuild-all(a)lists.01.org
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 550 No Message-ID header provided
.74; helo=3Dlocalhost; envelope-from=3Dkbuild-all(a)lists.01.org; receiver=3D=
<UNKNOWN>=20
Received: from localhost (unknown [121.61.136.74])
by ml01.01.org (Postfix) with UTF8SMTP id 13AFD100EB337
for <kbuild-all(a)lists.01.org>; Thu, 10 Feb 2022 03:53:57 -0800 (PST)
From: "jack" <kbuild-all(a)lists.01.org>
Date: Thu, 10 Feb 2022 19:53:56 +0800
To: kbuild-all(a)lists.01.org
Subject: =3D?UTF-8?B?d2hvbGVzYWxlIG9sZCBtb2JpbGUgcGhvbmVzIGF0IGNoZWFwIHBy=
aWNlcw=3D=3D?=3D
Reply-To: jack_helloworld(a)163.com
MIME-Version: 1.0
Importance: high
Content-Type: text/html; charset=3Dutf-8
hi,<br><p>i'm jack from shenzhen, china. professionally provide used mobi=
le phones with competitive prices to global customers, add whtasapp video=
to buy mobile phones.<br>provide second-hand mobile phones of all brands=
in the world, such as: apple, huawei, samsung, xiaomi, vivo, oppo, etc.<=
br>please contact us. (wholesale, retail, one piece also shipped)</p><p>w=
hatsapp:+86 13423994073 jack</p>
7 months, 1 week
[hch-misc:remove-scsi_request 3/3] drivers/usb/storage/cypress_atacb.c:180:27: error: assignment to expression with array type
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git remove-scsi_request
head: 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
commit: 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0 [3/3] scsi: remove the cdb field from struct scsi_request
config: h8300-randconfig-r035-20220210 (https://download.01.org/0day-ci/archive/20220210/202202101930.FPTl9w8H-lk...)
compiler: h8300-linux-gcc (GCC) 11.2.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
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc remove-scsi_request
git checkout 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/usb/storage/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/usb/storage/cypress_atacb.c: In function 'cypress_atacb_passthrough':
>> drivers/usb/storage/cypress_atacb.c:180:27: error: assignment to expression with array type
180 | srb->cmnd = ses.cmnd;
| ^
vim +180 drivers/usb/storage/cypress_atacb.c
fcdb51401f7f69 Alan Stern 2009-02-12 64
fcdb51401f7f69 Alan Stern 2009-02-12 65
d277064e7e16d0 Matthieu CASTET 2008-03-19 66 /*
d277064e7e16d0 Matthieu CASTET 2008-03-19 67 * ATACB is a protocol used on cypress usb<->ata bridge to
d277064e7e16d0 Matthieu CASTET 2008-03-19 68 * send raw ATA command over mass storage
d277064e7e16d0 Matthieu CASTET 2008-03-19 69 * There is a ATACB2 protocol that support LBA48 on newer chip.
d277064e7e16d0 Matthieu CASTET 2008-03-19 70 * More info that be found on cy7c68310_8.pdf and cy7c68300c_8.pdf
d277064e7e16d0 Matthieu CASTET 2008-03-19 71 * datasheet from cypress.com.
d277064e7e16d0 Matthieu CASTET 2008-03-19 72 */
fcdb51401f7f69 Alan Stern 2009-02-12 73 static void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us)
d277064e7e16d0 Matthieu CASTET 2008-03-19 74 {
d277064e7e16d0 Matthieu CASTET 2008-03-19 75 unsigned char save_cmnd[MAX_COMMAND_SIZE];
d277064e7e16d0 Matthieu CASTET 2008-03-19 76
d277064e7e16d0 Matthieu CASTET 2008-03-19 77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) {
d277064e7e16d0 Matthieu CASTET 2008-03-19 78 usb_stor_transparent_scsi_command(srb, us);
d277064e7e16d0 Matthieu CASTET 2008-03-19 79 return;
d277064e7e16d0 Matthieu CASTET 2008-03-19 80 }
d277064e7e16d0 Matthieu CASTET 2008-03-19 81
d277064e7e16d0 Matthieu CASTET 2008-03-19 82 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd));
64a87b244b9297 Boaz Harrosh 2008-04-30 83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE);
d277064e7e16d0 Matthieu CASTET 2008-03-19 84
d277064e7e16d0 Matthieu CASTET 2008-03-19 85 /* check if we support the command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 86 if (save_cmnd[1] >> 5) /* MULTIPLE_COUNT */
d277064e7e16d0 Matthieu CASTET 2008-03-19 87 goto invalid_fld;
d277064e7e16d0 Matthieu CASTET 2008-03-19 88 /* check protocol */
d277064e7e16d0 Matthieu CASTET 2008-03-19 89 switch ((save_cmnd[1] >> 1) & 0xf) {
d277064e7e16d0 Matthieu CASTET 2008-03-19 90 case 3: /*no DATA */
d277064e7e16d0 Matthieu CASTET 2008-03-19 91 case 4: /* PIO in */
d277064e7e16d0 Matthieu CASTET 2008-03-19 92 case 5: /* PIO out */
d277064e7e16d0 Matthieu CASTET 2008-03-19 93 break;
d277064e7e16d0 Matthieu CASTET 2008-03-19 94 default:
d277064e7e16d0 Matthieu CASTET 2008-03-19 95 goto invalid_fld;
d277064e7e16d0 Matthieu CASTET 2008-03-19 96 }
d277064e7e16d0 Matthieu CASTET 2008-03-19 97
d277064e7e16d0 Matthieu CASTET 2008-03-19 98 /* first build the ATACB command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 99 srb->cmd_len = 16;
d277064e7e16d0 Matthieu CASTET 2008-03-19 100
f0183a338e4f90 Felipe Balbi 2016-04-18 101 srb->cmnd[0] = 0x24; /*
f0183a338e4f90 Felipe Balbi 2016-04-18 102 * bVSCBSignature : vendor-specific command
f0183a338e4f90 Felipe Balbi 2016-04-18 103 * this value can change, but most(all ?) manufacturers
f0183a338e4f90 Felipe Balbi 2016-04-18 104 * keep the cypress default : 0x24
f0183a338e4f90 Felipe Balbi 2016-04-18 105 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 106 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */
d277064e7e16d0 Matthieu CASTET 2008-03-19 107
f0183a338e4f90 Felipe Balbi 2016-04-18 108 srb->cmnd[3] = 0xff - 1; /*
f0183a338e4f90 Felipe Balbi 2016-04-18 109 * features, sector count, lba low, lba med
f0183a338e4f90 Felipe Balbi 2016-04-18 110 * lba high, device, command are valid
f0183a338e4f90 Felipe Balbi 2016-04-18 111 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 112 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 113
d277064e7e16d0 Matthieu CASTET 2008-03-19 114 if (save_cmnd[0] == ATA_16) {
d277064e7e16d0 Matthieu CASTET 2008-03-19 115 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */
d277064e7e16d0 Matthieu CASTET 2008-03-19 116 srb->cmnd[ 7] = save_cmnd[ 6]; /* sector count */
d277064e7e16d0 Matthieu CASTET 2008-03-19 117 srb->cmnd[ 8] = save_cmnd[ 8]; /* lba low */
d277064e7e16d0 Matthieu CASTET 2008-03-19 118 srb->cmnd[ 9] = save_cmnd[10]; /* lba med */
d277064e7e16d0 Matthieu CASTET 2008-03-19 119 srb->cmnd[10] = save_cmnd[12]; /* lba high */
d277064e7e16d0 Matthieu CASTET 2008-03-19 120 srb->cmnd[11] = save_cmnd[13]; /* device */
d277064e7e16d0 Matthieu CASTET 2008-03-19 121 srb->cmnd[12] = save_cmnd[14]; /* command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 122
d277064e7e16d0 Matthieu CASTET 2008-03-19 123 if (save_cmnd[1] & 0x01) {/* extended bit set for LBA48 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 124 /* this could be supported by atacb2 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 125 if (save_cmnd[3] || save_cmnd[5] || save_cmnd[7] || save_cmnd[9]
d277064e7e16d0 Matthieu CASTET 2008-03-19 126 || save_cmnd[11])
d277064e7e16d0 Matthieu CASTET 2008-03-19 127 goto invalid_fld;
d277064e7e16d0 Matthieu CASTET 2008-03-19 128 }
e9c585907f962a Bas Peters 2015-02-07 129 } else { /* ATA12 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 130 srb->cmnd[ 6] = save_cmnd[3]; /* features */
d277064e7e16d0 Matthieu CASTET 2008-03-19 131 srb->cmnd[ 7] = save_cmnd[4]; /* sector count */
d277064e7e16d0 Matthieu CASTET 2008-03-19 132 srb->cmnd[ 8] = save_cmnd[5]; /* lba low */
d277064e7e16d0 Matthieu CASTET 2008-03-19 133 srb->cmnd[ 9] = save_cmnd[6]; /* lba med */
d277064e7e16d0 Matthieu CASTET 2008-03-19 134 srb->cmnd[10] = save_cmnd[7]; /* lba high */
d277064e7e16d0 Matthieu CASTET 2008-03-19 135 srb->cmnd[11] = save_cmnd[8]; /* device */
d277064e7e16d0 Matthieu CASTET 2008-03-19 136 srb->cmnd[12] = save_cmnd[9]; /* command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 137
d277064e7e16d0 Matthieu CASTET 2008-03-19 138 }
d277064e7e16d0 Matthieu CASTET 2008-03-19 139 /* Filter SET_FEATURES - XFER MODE command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 140 if ((srb->cmnd[12] == ATA_CMD_SET_FEATURES)
d277064e7e16d0 Matthieu CASTET 2008-03-19 141 && (srb->cmnd[6] == SETFEATURES_XFER))
d277064e7e16d0 Matthieu CASTET 2008-03-19 142 goto invalid_fld;
d277064e7e16d0 Matthieu CASTET 2008-03-19 143
d277064e7e16d0 Matthieu CASTET 2008-03-19 144 if (srb->cmnd[12] == ATA_CMD_ID_ATA || srb->cmnd[12] == ATA_CMD_ID_ATAPI)
d277064e7e16d0 Matthieu CASTET 2008-03-19 145 srb->cmnd[2] |= (1<<7); /* set IdentifyPacketDevice for these cmds */
d277064e7e16d0 Matthieu CASTET 2008-03-19 146
d277064e7e16d0 Matthieu CASTET 2008-03-19 147
d277064e7e16d0 Matthieu CASTET 2008-03-19 148 usb_stor_transparent_scsi_command(srb, us);
d277064e7e16d0 Matthieu CASTET 2008-03-19 149
f0183a338e4f90 Felipe Balbi 2016-04-18 150 /* if the device doesn't support ATACB */
d277064e7e16d0 Matthieu CASTET 2008-03-19 151 if (srb->result == SAM_STAT_CHECK_CONDITION &&
d277064e7e16d0 Matthieu CASTET 2008-03-19 152 memcmp(srb->sense_buffer, usb_stor_sense_invalidCDB,
d277064e7e16d0 Matthieu CASTET 2008-03-19 153 sizeof(usb_stor_sense_invalidCDB)) == 0) {
191648d03d2022 Joe Perches 2013-04-19 154 usb_stor_dbg(us, "cypress atacb not supported ???\n");
d277064e7e16d0 Matthieu CASTET 2008-03-19 155 goto end;
d277064e7e16d0 Matthieu CASTET 2008-03-19 156 }
d277064e7e16d0 Matthieu CASTET 2008-03-19 157
f0183a338e4f90 Felipe Balbi 2016-04-18 158 /*
f0183a338e4f90 Felipe Balbi 2016-04-18 159 * if ck_cond flags is set, and there wasn't critical error,
d277064e7e16d0 Matthieu CASTET 2008-03-19 160 * build the special sense
d277064e7e16d0 Matthieu CASTET 2008-03-19 161 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 162 if ((srb->result != (DID_ERROR << 16) &&
d277064e7e16d0 Matthieu CASTET 2008-03-19 163 srb->result != (DID_ABORT << 16)) &&
d277064e7e16d0 Matthieu CASTET 2008-03-19 164 save_cmnd[2] & 0x20) {
d277064e7e16d0 Matthieu CASTET 2008-03-19 165 struct scsi_eh_save ses;
d277064e7e16d0 Matthieu CASTET 2008-03-19 166 unsigned char regs[8];
d277064e7e16d0 Matthieu CASTET 2008-03-19 167 unsigned char *sb = srb->sense_buffer;
d277064e7e16d0 Matthieu CASTET 2008-03-19 168 unsigned char *desc = sb + 8;
d277064e7e16d0 Matthieu CASTET 2008-03-19 169 int tmp_result;
d277064e7e16d0 Matthieu CASTET 2008-03-19 170
f0183a338e4f90 Felipe Balbi 2016-04-18 171 /* build the command for reading the ATA registers */
1f4159c1620f74 Boaz Harrosh 2009-02-11 172 scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sizeof(regs));
1f4159c1620f74 Boaz Harrosh 2009-02-11 173
f0183a338e4f90 Felipe Balbi 2016-04-18 174 /*
f0183a338e4f90 Felipe Balbi 2016-04-18 175 * we use the same command as before, but we set
d277064e7e16d0 Matthieu CASTET 2008-03-19 176 * the read taskfile bit, for not executing atacb command,
d277064e7e16d0 Matthieu CASTET 2008-03-19 177 * but reading register selected in srb->cmnd[4]
d277064e7e16d0 Matthieu CASTET 2008-03-19 178 */
1f4159c1620f74 Boaz Harrosh 2009-02-11 179 srb->cmd_len = 16;
1f4159c1620f74 Boaz Harrosh 2009-02-11 @180 srb->cmnd = ses.cmnd;
d277064e7e16d0 Matthieu CASTET 2008-03-19 181 srb->cmnd[2] = 1;
d277064e7e16d0 Matthieu CASTET 2008-03-19 182
d277064e7e16d0 Matthieu CASTET 2008-03-19 183 usb_stor_transparent_scsi_command(srb, us);
1f4159c1620f74 Boaz Harrosh 2009-02-11 184 memcpy(regs, srb->sense_buffer, sizeof(regs));
d277064e7e16d0 Matthieu CASTET 2008-03-19 185 tmp_result = srb->result;
d277064e7e16d0 Matthieu CASTET 2008-03-19 186 scsi_eh_restore_cmnd(srb, &ses);
d277064e7e16d0 Matthieu CASTET 2008-03-19 187 /* we fail to get registers, report invalid command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 188 if (tmp_result != SAM_STAT_GOOD)
d277064e7e16d0 Matthieu CASTET 2008-03-19 189 goto invalid_fld;
d277064e7e16d0 Matthieu CASTET 2008-03-19 190
d277064e7e16d0 Matthieu CASTET 2008-03-19 191 /* build the sense */
d277064e7e16d0 Matthieu CASTET 2008-03-19 192 memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
d277064e7e16d0 Matthieu CASTET 2008-03-19 193
d277064e7e16d0 Matthieu CASTET 2008-03-19 194 /* set sk, asc for a good command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 195 sb[1] = RECOVERED_ERROR;
d277064e7e16d0 Matthieu CASTET 2008-03-19 196 sb[2] = 0; /* ATA PASS THROUGH INFORMATION AVAILABLE */
d277064e7e16d0 Matthieu CASTET 2008-03-19 197 sb[3] = 0x1D;
d277064e7e16d0 Matthieu CASTET 2008-03-19 198
f0183a338e4f90 Felipe Balbi 2016-04-18 199 /*
f0183a338e4f90 Felipe Balbi 2016-04-18 200 * XXX we should generate sk, asc, ascq from status and error
d277064e7e16d0 Matthieu CASTET 2008-03-19 201 * regs
1f4159c1620f74 Boaz Harrosh 2009-02-11 202 * (see 11.1 Error translation ATA device error to SCSI error
1f4159c1620f74 Boaz Harrosh 2009-02-11 203 * map, and ata_to_sense_error from libata.)
d277064e7e16d0 Matthieu CASTET 2008-03-19 204 */
d277064e7e16d0 Matthieu CASTET 2008-03-19 205
d277064e7e16d0 Matthieu CASTET 2008-03-19 206 /* Sense data is current and format is descriptor. */
d277064e7e16d0 Matthieu CASTET 2008-03-19 207 sb[0] = 0x72;
d277064e7e16d0 Matthieu CASTET 2008-03-19 208 desc[0] = 0x09; /* ATA_RETURN_DESCRIPTOR */
d277064e7e16d0 Matthieu CASTET 2008-03-19 209
d277064e7e16d0 Matthieu CASTET 2008-03-19 210 /* set length of additional sense data */
d277064e7e16d0 Matthieu CASTET 2008-03-19 211 sb[7] = 14;
d277064e7e16d0 Matthieu CASTET 2008-03-19 212 desc[1] = 12;
d277064e7e16d0 Matthieu CASTET 2008-03-19 213
d277064e7e16d0 Matthieu CASTET 2008-03-19 214 /* Copy registers into sense buffer. */
d277064e7e16d0 Matthieu CASTET 2008-03-19 215 desc[ 2] = 0x00;
d277064e7e16d0 Matthieu CASTET 2008-03-19 216 desc[ 3] = regs[1]; /* features */
d277064e7e16d0 Matthieu CASTET 2008-03-19 217 desc[ 5] = regs[2]; /* sector count */
d277064e7e16d0 Matthieu CASTET 2008-03-19 218 desc[ 7] = regs[3]; /* lba low */
d277064e7e16d0 Matthieu CASTET 2008-03-19 219 desc[ 9] = regs[4]; /* lba med */
d277064e7e16d0 Matthieu CASTET 2008-03-19 220 desc[11] = regs[5]; /* lba high */
d277064e7e16d0 Matthieu CASTET 2008-03-19 221 desc[12] = regs[6]; /* device */
d277064e7e16d0 Matthieu CASTET 2008-03-19 222 desc[13] = regs[7]; /* command */
d277064e7e16d0 Matthieu CASTET 2008-03-19 223
464a00c9e0ad45 Hannes Reinecke 2021-04-27 224 srb->result = SAM_STAT_CHECK_CONDITION;
d277064e7e16d0 Matthieu CASTET 2008-03-19 225 }
d277064e7e16d0 Matthieu CASTET 2008-03-19 226 goto end;
d277064e7e16d0 Matthieu CASTET 2008-03-19 227 invalid_fld:
464a00c9e0ad45 Hannes Reinecke 2021-04-27 228 srb->result = SAM_STAT_CHECK_CONDITION;
d277064e7e16d0 Matthieu CASTET 2008-03-19 229
d277064e7e16d0 Matthieu CASTET 2008-03-19 230 memcpy(srb->sense_buffer,
d277064e7e16d0 Matthieu CASTET 2008-03-19 231 usb_stor_sense_invalidCDB,
d277064e7e16d0 Matthieu CASTET 2008-03-19 232 sizeof(usb_stor_sense_invalidCDB));
d277064e7e16d0 Matthieu CASTET 2008-03-19 233 end:
d277064e7e16d0 Matthieu CASTET 2008-03-19 234 memcpy(srb->cmnd, save_cmnd, sizeof(save_cmnd));
d277064e7e16d0 Matthieu CASTET 2008-03-19 235 if (srb->cmnd[0] == ATA_12)
d277064e7e16d0 Matthieu CASTET 2008-03-19 236 srb->cmd_len = 12;
d277064e7e16d0 Matthieu CASTET 2008-03-19 237 }
fcdb51401f7f69 Alan Stern 2009-02-12 238
:::::: The code at line 180 was first introduced by commit
:::::: 1f4159c1620f74377e26d8a569d10ca5907ef475 USB: fix USB_STORAGE_CYPRESS_ATACB
:::::: TO: Boaz Harrosh <bharrosh(a)panasas.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[linux-next:master 4550/4901] drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:325:17: error: 'gc_parent' undeclared; did you mean 'xa_parent'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 395a61741f7ea29e1f4a0d6e160197fe8e377572
commit: 03182a20db448774a4cf5f2e5b1c4bd660746ebe [4550/4901] pinctrl: npcm: Fix broken references to chip->parent_device
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202101846.4j5fV5nD-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 03182a20db448774a4cf5f2e5b1c4bd660746ebe
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/printk.h:555,
from include/asm-generic/bug.h:22,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from arch/arm/include/asm/current.h:50,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:5:
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c: In function 'npcmgpio_irq_startup':
>> drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:325:17: error: 'gc_parent' undeclared (first use in this function); did you mean 'xa_parent'?
325 | dev_dbg(gc_parent, "startup: %u.%u\n", gpio, d->irq);
| ^~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:325:9: note: in expansion of macro 'dev_dbg'
325 | dev_dbg(gc_parent, "startup: %u.%u\n", gpio, d->irq);
| ^~~~~~~
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:325:17: note: each undeclared identifier is reported only once for each function it appears in
325 | dev_dbg(gc_parent, "startup: %u.%u\n", gpio, d->irq);
| ^~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c:325:9: note: in expansion of macro 'dev_dbg'
325 | dev_dbg(gc_parent, "startup: %u.%u\n", gpio, d->irq);
| ^~~~~~~
vim +325 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
318
319 static unsigned int npcmgpio_irq_startup(struct irq_data *d)
320 {
321 struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
322 unsigned int gpio = d->hwirq;
323
324 /* active-high, input, clear interrupt, enable interrupt */
> 325 dev_dbg(gc_parent, "startup: %u.%u\n", gpio, d->irq);
326 npcmgpio_direction_input(gc, gpio);
327 npcmgpio_irq_ack(d);
328 npcmgpio_irq_unmask(d);
329
330 return 0;
331 }
332
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[hch-misc:remove-scsi_request 3/3] drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git remove-scsi_request
head: 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
commit: 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0 [3/3] scsi: remove the cdb field from struct scsi_request
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220210/202202101815.2JlOiZan-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.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
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc remove-scsi_request
git checkout 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/ata/libata-scsi.c: In function 'ata_scsi_dma_need_drain':
>> drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd'
1025 | return atapi_cmd_type(scsi_req(rq)->cmd[0]) == ATAPI_MISC;
| ^~
drivers/ata/libata-scsi.c:1026:1: error: control reaches end of non-void function [-Werror=return-type]
1026 | }
| ^
cc1: some warnings being treated as errors
vim +1025 drivers/ata/libata-scsi.c
^1da177e4c3f41 drivers/scsi/libata-scsi.c Linus Torvalds 2005-04-16 1007
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1008 /**
94bd5719e49156 drivers/ata/libata-scsi.c Mauro Carvalho Chehab 2020-10-23 1009 * ata_scsi_dma_need_drain - Check whether data transfer may overflow
73fd8b6d310196 drivers/ata/libata-scsi.c Randy Dunlap 2008-02-19 1010 * @rq: request to be checked
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1011 *
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1012 * ATAPI commands which transfer variable length data to host
c9b5560aac7aa7 drivers/ata/libata-scsi.c Masanari Iida 2016-04-13 1013 * might overflow due to application error or hardware bug. This
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1014 * function checks whether overflow should be drained and ignored
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1015 * for @request.
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1016 *
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1017 * LOCKING:
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1018 * None.
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1019 *
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1020 * RETURNS:
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1021 * 1 if ; otherwise, 0.
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1022 */
cc97923a5bccc7 drivers/ata/libata-scsi.c Christoph Hellwig 2020-04-14 1023 bool ata_scsi_dma_need_drain(struct request *rq)
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1024 {
82ed4db499b859 drivers/ata/libata-scsi.c Christoph Hellwig 2017-01-27 @1025 return atapi_cmd_type(scsi_req(rq)->cmd[0]) == ATAPI_MISC;
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1026 }
cc97923a5bccc7 drivers/ata/libata-scsi.c Christoph Hellwig 2020-04-14 1027 EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
fa2fc7f4813bfe drivers/ata/libata-scsi.c James Bottomley 2008-02-19 1028
:::::: The code at line 1025 was first introduced by commit
:::::: 82ed4db499b8598f16f8871261bff088d6b0597f block: split scsi_request out of struct request
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week