Hi Peng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.0 next-20190304] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peng-Ma/dmaengine-fsl-dpaa2-qdma-Add-the-DPDMAI-Data-Path-DMA-Interface-support/20190304-204911 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' All warnings (new ones prefixed by >>): >> drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: warning: incorrect type in assignment (different base types) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: expected unsigned int [usertype] cmd drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: got restricted __le32 [usertype] drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: warning: incorrect type in assignment (different base types) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: expected unsigned int [usertype] cmd drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: got restricted __le32 [usertype] drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: warning: incorrect type in assignment (different base types) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: expected unsigned int [usertype] cmd drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: got restricted __le32 [usertype] -- >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: right side has type unsigned long long >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: right side has type unsigned long long >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: got restricted __le64 [addressable] [assigned] [usertype] header drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: right side has type unsigned long long sparse warnings: (new ones prefixed by >>) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: warning: incorrect type in assignment (different base types) >> drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: expected unsigned int [usertype] cmd >> drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:151:18: sparse: got restricted __le32 [usertype] drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: warning: incorrect type in assignment (different base types) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: expected unsigned int [usertype] cmd drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:156:26: sparse: got restricted __le32 [usertype] drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: warning: incorrect type in assignment (different base types) drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: expected unsigned int [usertype] cmd drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:158:26: sparse: got restricted __le32 [usertype] -- drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: warning: invalid assignment: |= >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: left side has type restricted __le64 >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: warning: invalid assignment: |= >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: left side has type restricted __le64 >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:93:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: warning: incorrect type in argument 1 (different base types) >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: expected unsigned long long [usertype] val >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:101:18: sparse: got restricted __le64 [addressable] [assigned] [usertype] header drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: expected unsigned long long [usertype] val >> drivers/dma/fsl-dpaa2-qdma/dpdmai.c:169:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:203:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:211:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:228:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:247:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:255:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:272:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:291:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:299:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:316:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:335:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: warning: incorrect type in argument 1 (different base types) drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: expected unsigned long long [usertype] val drivers/dma/fsl-dpaa2-qdma/dpdmai.c:343:9: sparse: got restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: right side has type unsigned long long drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: warning: invalid assignment: |= drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: left side has type restricted __le64 drivers/dma/fsl-dpaa2-qdma/dpdmai.c:360:9: sparse: right side has type unsigned long long vim +151 drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c 138 139 /* first frame list for descriptor buffer */ 140 static void 141 dpaa2_qdma_populate_first_framel(struct dpaa2_fl_entry *f_list, 142 struct dpaa2_qdma_comp *dpaa2_comp, 143 bool wrt_changed) 144 { 145 struct dpaa2_qdma_sd_d *sdd; 146 147 sdd = (struct dpaa2_qdma_sd_d *)dpaa2_comp->desc_virt_addr; 148 memset(sdd, 0, 2 * (sizeof(*sdd))); 149 150 /* source descriptor CMD */ > 151 sdd->cmd = cpu_to_le32(QDMA_SD_CMD_RDTTYPE_COHERENT); 152 sdd++; 153 154 /* dest descriptor CMD */ 155 if (wrt_changed) 156 sdd->cmd = cpu_to_le32(LX2160_QDMA_DD_CMD_WRTTYPE_COHERENT); 157 else 158 sdd->cmd = cpu_to_le32(QDMA_DD_CMD_WRTTYPE_COHERENT); 159 160 memset(f_list, 0, sizeof(struct dpaa2_fl_entry)); 161 162 /* first frame list to source descriptor */ 163 dpaa2_fl_set_addr(f_list, dpaa2_comp->desc_bus_addr); 164 dpaa2_fl_set_len(f_list, 0x20); 165 dpaa2_fl_set_format(f_list, QDMA_FL_FMT_SBF | QDMA_FL_SL_LONG); 166 167 /* bypass memory translation */ 168 if (smmu_disable) 169 f_list->bpid = cpu_to_le16(QDMA_FL_BMT_ENABLE); 170 } 171 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip