* [mkp-scsi:for-next 91/112] drivers/scsi/nsp32.c:888:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int'
@ 2021-05-26 7:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 7:37 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3611 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
head: 46ded13dd3821d96fee65f0cef4bd8f0184607ab
commit: 566402afcce4a929af29dc449e154326855fd317 [91/112] scsi: nsp32: Whitespace cleanup
config: i386-randconfig-r022-20210526 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=566402afcce4a929af29dc449e154326855fd317
git remote add mkp-scsi https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
git fetch --no-tags mkp-scsi for-next
git checkout 566402afcce4a929af29dc449e154326855fd317
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/nsp32.c: In function 'nsp32_setup_sg_table':
>> drivers/scsi/nsp32.c:888:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
888 | "can't transfer over 64KB at a time, "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/nsp32.c:285:69: note: in definition of macro 'nsp32_msg'
285 | # define nsp32_msg(type, args...) nsp32_message ("", 0, (type), args)
| ^~~~
drivers/scsi/nsp32.c:889:16: note: format string is defined here
889 | "size=0x%lx", le32_to_cpu(sgt[i].len));
| ~~^
| |
| long unsigned int
| %x
vim +888 drivers/scsi/nsp32.c
852
853
854 /*
855 * nsp32_setup_sg_table - build scatter gather list for transfer data
856 * with bus master.
857 *
858 * Note: NinjaSCSI-32Bi/UDE bus master can not transfer over 64KB at a time.
859 */
860 static int nsp32_setup_sg_table(struct scsi_cmnd *SCpnt)
861 {
862 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
863 struct scatterlist *sg;
864 nsp32_sgtable *sgt = data->cur_lunt->sglun->sgt;
865 int num, i;
866 u32_le l;
867
868 if (sgt == NULL) {
869 nsp32_dbg(NSP32_DEBUG_SGLIST, "SGT == null");
870 return FALSE;
871 }
872
873 num = scsi_dma_map(SCpnt);
874 if (!num)
875 return TRUE;
876 else if (num < 0)
877 return FALSE;
878 else {
879 scsi_for_each_sg(SCpnt, sg, num, i) {
880 /*
881 * Build nsp32_sglist, substitute sg dma addresses.
882 */
883 sgt[i].addr = cpu_to_le32(sg_dma_address(sg));
884 sgt[i].len = cpu_to_le32(sg_dma_len(sg));
885
886 if (le32_to_cpu(sgt[i].len) > 0x10000) {
887 nsp32_msg(KERN_ERR,
> 888 "can't transfer over 64KB at a time, "
889 "size=0x%lx", le32_to_cpu(sgt[i].len));
890 return FALSE;
891 }
892 nsp32_dbg(NSP32_DEBUG_SGLIST,
893 "num 0x%x : addr 0x%lx len 0x%lx",
894 i,
895 le32_to_cpu(sgt[i].addr),
896 le32_to_cpu(sgt[i].len ));
897 }
898
899 /* set end mark */
900 l = le32_to_cpu(sgt[num-1].len);
901 sgt[num-1].len = cpu_to_le32(l | SGTEND);
902 }
903
904 return TRUE;
905 }
906
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36090 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 7:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 7:37 [mkp-scsi:for-next 91/112] drivers/scsi/nsp32.c:888:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.