tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
for-5.7/libata
head: e8a18ea99eaa557cc3df89d5a7af03f9556036ed
commit: c0985c4c13f76560b2ccd453303620f0ff77f335 [24/46] sata_dwc_460ex: use generic
tracepoints
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c0985c4c13f76560b2ccd453303620f0ff77f335
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_qc_issue':
> drivers/ata/sata_dwc_460ex.c:1066:26: error: 'qp'
undeclared (first use in this function); did you mean 'ap'?
1066 |
trace_ata_exec_command(qp, &qc->tf, tag);
| ^~
| ap
drivers/ata/sata_dwc_460ex.c:1066:26: note: each undeclared identifier is reported only
once for each function it appears in
vim +1066 drivers/ata/sata_dwc_460ex.c
1040
1041 static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc)
1042 {
1043 u32 sactive;
1044 u8 tag = qc->hw_tag;
1045 struct ata_port *ap = qc->ap;
1046 struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
1047
1048 if (!ata_is_ncq(qc->tf.protocol))
1049 tag = 0;
1050
1051 if (ata_is_dma(qc->tf.protocol)) {
1052 hsdevp->desc[tag] = dma_dwc_xfer_setup(qc);
1053 if (!hsdevp->desc[tag])
1054 return AC_ERR_SYSTEM;
1055 } else {
1056 hsdevp->desc[tag] = NULL;
1057 }
1058
1059 if (ata_is_ncq(qc->tf.protocol)) {
1060 sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive);
1061 sactive |= (0x00000001 << tag);
1062 sata_dwc_scr_write(&ap->link, SCR_ACTIVE, sactive);
1063
1064 trace_ata_tf_load(ap, &qc->tf);
1065 ap->ops->sff_tf_load(ap, &qc->tf);
1066 trace_ata_exec_command(qp, &qc->tf, tag);
1067 sata_dwc_exec_command_by_tag(ap, &qc->tf, tag,
1068 SATA_DWC_CMD_ISSUED_PEND);
1069 } else {
1070 return ata_bmdma_qc_issue(qc);
1071 }
1072 return 0;
1073 }
1074
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org