tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   cd77006e01b3198c75fb7819b3d0ff89709539bb
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to 
define address spaces
date:   2 weeks ago
config: x86_64-randconfig-s021-20200703 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-3-gfa153962-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

>> drivers/scsi/qedf/qedf_debugfs.c:113:23: sparse: sparse: incorrect type in 
>> argument 1 (different address spaces) @@     expected char *buf @@     got 
>> char [noderef] __user *buffer @@
   drivers/scsi/qedf/qedf_debugfs.c:113:23: sparse:     expected char *buf
>> drivers/scsi/qedf/qedf_debugfs.c:113:23: sparse:     got char [noderef] 
>> __user *buffer
>> drivers/scsi/qedf/qedf_debugfs.c:119:40: sparse: sparse: incorrect type in 
>> argument 1 (different address spaces) @@     expected char *buf @@     got 
>> char [noderef] __user * @@
   drivers/scsi/qedf/qedf_debugfs.c:119:40: sparse:     expected char *buf
>> drivers/scsi/qedf/qedf_debugfs.c:119:40: sparse:     got char [noderef] 
>> __user *
   drivers/scsi/qedf/qedf_debugfs.c:147:23: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@     expected char *buf @@     got char 
[noderef] __user *buffer @@
   drivers/scsi/qedf/qedf_debugfs.c:147:23: sparse:     expected char *buf
   drivers/scsi/qedf/qedf_debugfs.c:147:23: sparse:     got char [noderef] 
__user *buffer
   drivers/scsi/qedf/qedf_debugfs.c:196:23: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@     expected char *buf @@     got char 
[noderef] __user *buffer @@
   drivers/scsi/qedf/qedf_debugfs.c:196:23: sparse:     expected char *buf
   drivers/scsi/qedf/qedf_debugfs.c:196:23: sparse:     got char [noderef] 
__user *buffer

vim +113 drivers/scsi/qedf/qedf_debugfs.c

61d8658b4a435e Dupuis, Chad 2017-02-15   98  
61d8658b4a435e Dupuis, Chad 2017-02-15   99  static ssize_t
61d8658b4a435e Dupuis, Chad 2017-02-15  100  qedf_dbg_fp_int_cmd_read(struct 
file *filp, char __user *buffer, size_t count,
61d8658b4a435e Dupuis, Chad 2017-02-15  101                      loff_t *ppos)
61d8658b4a435e Dupuis, Chad 2017-02-15  102  {
61d8658b4a435e Dupuis, Chad 2017-02-15  103     size_t cnt = 0;
61d8658b4a435e Dupuis, Chad 2017-02-15  104     int id;
61d8658b4a435e Dupuis, Chad 2017-02-15  105     struct qedf_fastpath *fp = NULL;
61d8658b4a435e Dupuis, Chad 2017-02-15  106     struct qedf_dbg_ctx *qedf_dbg =
61d8658b4a435e Dupuis, Chad 2017-02-15  107                             (struct 
qedf_dbg_ctx *)filp->private_data;
61d8658b4a435e Dupuis, Chad 2017-02-15  108     struct qedf_ctx *qedf = 
container_of(qedf_dbg,
61d8658b4a435e Dupuis, Chad 2017-02-15  109         struct qedf_ctx, dbg_ctx);
61d8658b4a435e Dupuis, Chad 2017-02-15  110  
61d8658b4a435e Dupuis, Chad 2017-02-15  111     QEDF_INFO(qedf_dbg, 
QEDF_LOG_DEBUGFS, "entered\n");
61d8658b4a435e Dupuis, Chad 2017-02-15  112  
61d8658b4a435e Dupuis, Chad 2017-02-15 @113     cnt = sprintf(buffer, 
"\nFastpath I/O completions\n\n");
61d8658b4a435e Dupuis, Chad 2017-02-15  114  
61d8658b4a435e Dupuis, Chad 2017-02-15  115     for (id = 0; id < 
qedf->num_queues; id++) {
61d8658b4a435e Dupuis, Chad 2017-02-15  116             fp = 
&(qedf->fp_array[id]);
61d8658b4a435e Dupuis, Chad 2017-02-15  117             if (fp->sb_id == 
QEDF_SB_ID_NULL)
61d8658b4a435e Dupuis, Chad 2017-02-15  118                     continue;
61d8658b4a435e Dupuis, Chad 2017-02-15 @119             cnt += sprintf((buffer 
+ cnt), "#%d: %lu\n", id,
61d8658b4a435e Dupuis, Chad 2017-02-15  120                            
fp->completions);
61d8658b4a435e Dupuis, Chad 2017-02-15  121     }
61d8658b4a435e Dupuis, Chad 2017-02-15  122  
61d8658b4a435e Dupuis, Chad 2017-02-15  123     cnt = min_t(int, count, cnt - 
*ppos);
61d8658b4a435e Dupuis, Chad 2017-02-15  124     *ppos += cnt;
61d8658b4a435e Dupuis, Chad 2017-02-15  125     return cnt;
61d8658b4a435e Dupuis, Chad 2017-02-15  126  }
61d8658b4a435e Dupuis, Chad 2017-02-15  127  

:::::: The code at line 113 was first introduced by commit
:::::: 61d8658b4a435eac729966cc94cdda077a8df5cd scsi: qedf: Add QLogic FastLinQ 
offload FCoE driver framework.

:::::: TO: Dupuis, Chad <[email protected]>
:::::: CC: Martin K. Petersen <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

Reply via email to