[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210041101.k98VcPFJ-lkp@intel.com>
Date: Tue, 4 Oct 2022 11:28:51 +0800
From: kernel test robot <lkp@...el.com>
To: Manisha Chinthapally <manisha.chinthapally@...el.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mchinth:sep_linux_v6.0-rc7 2/2]
drivers/platform/x86/socperf/socperfdrv.c:1649:20: sparse: sparse: incorrect
type in initializer (incompatible argument 2 (different address spaces))
tree: https://github.com/mchinth/linux sep_linux_v6.0-rc7
head: 4c704363910aa00df3243bcb1658edf3fb9919c9
commit: 4c704363910aa00df3243bcb1658edf3fb9919c9 [2/2] Merge SEP5.36 into Linux tree
config: i386-randconfig-s003
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/mchinth/linux/commit/4c704363910aa00df3243bcb1658edf3fb9919c9
git remote add mchinth https://github.com/mchinth/linux
git fetch --no-tags mchinth sep_linux_v6.0-rc7
git checkout 4c704363910aa00df3243bcb1658edf3fb9919c9
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/platform/x86/socperf/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/platform/x86/socperf/socperfdrv.c:214:13: sparse: sparse: function 'SOCPERF_Read_Data3' with external linkage has definition
drivers/platform/x86/socperf/socperfdrv.c:1182:13: sparse: sparse: function 'lwpmudrv_Stop_Mem' with external linkage has definition
drivers/platform/x86/socperf/socperfdrv.c:1400:1: sparse: sparse: function 'socperf_Service_IOCTL' with external linkage has definition
drivers/platform/x86/socperf/socperfdrv.c:1525:1: sparse: sparse: function 'socperf_Device_Control' with external linkage has definition
drivers/platform/x86/socperf/socperfdrv.c:1614:12: sparse: sparse: function 'SOCPERF_Abnormal_Terminate' with external linkage has definition
drivers/platform/x86/socperf/socperfdrv.c:110:22: sparse: sparse: symbol 'socperf_drv_version' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:111:21: sparse: sparse: symbol 'read_unc_ctr_info' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:112:22: sparse: sparse: symbol 'dispatch_uncore' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:114:22: sparse: sparse: symbol 'socperf_global_ec' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:115:22: sparse: sparse: symbol 'socperf_abnormal_terminate' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:116:22: sparse: sparse: symbol 'socperf_control' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:120:27: sparse: sparse: symbol 'socperf_pcb_size' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int [usertype] * @@
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: expected void const volatile [noderef] __user *ptr
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: got unsigned int [usertype] *
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __user *__ptr_pu @@ got unsigned int [usertype] * @@
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: expected void [noderef] __user *__ptr_pu
drivers/platform/x86/socperf/socperfdrv.c:252:18: sparse: got unsigned int [usertype] *
drivers/platform/x86/socperf/socperfdrv.c:334:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:334:37: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:334:37: sparse: got void *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:413:62: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:413:62: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:413:62: sparse: got void *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:565:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got char *[usertype] buf_usr_to_drv @@
drivers/platform/x86/socperf/socperfdrv.c:565:63: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:565:63: sparse: got char *[usertype] buf_usr_to_drv
drivers/platform/x86/socperf/socperfdrv.c:647:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got char *[usertype] buf_usr_to_drv @@
drivers/platform/x86/socperf/socperfdrv.c:647:39: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:647:39: sparse: got char *[usertype] buf_usr_to_drv
drivers/platform/x86/socperf/socperfdrv.c:750:64: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got char *[usertype] buf_usr_to_drv @@
drivers/platform/x86/socperf/socperfdrv.c:750:64: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:750:64: sparse: got char *[usertype] buf_usr_to_drv
drivers/platform/x86/socperf/socperfdrv.c:1050:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned int [usertype] * @@
drivers/platform/x86/socperf/socperfdrv.c:1050:43: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:1050:43: sparse: got unsigned int [usertype] *
drivers/platform/x86/socperf/socperfdrv.c:1073:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got char *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:1073:29: sparse: expected void [noderef] __user *to
drivers/platform/x86/socperf/socperfdrv.c:1073:29: sparse: got char *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:1096:28: sparse: sparse: Using plain integer as NULL pointer
drivers/platform/x86/socperf/socperfdrv.c:1107:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got char *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:1107:29: sparse: expected void [noderef] __user *to
drivers/platform/x86/socperf/socperfdrv.c:1107:29: sparse: got char *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:1142:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned long long [usertype] * @@
drivers/platform/x86/socperf/socperfdrv.c:1142:45: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:1142:45: sparse: got unsigned long long [usertype] *
drivers/platform/x86/socperf/socperfdrv.c:1161:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got char *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:1161:29: sparse: expected void [noderef] __user *to
drivers/platform/x86/socperf/socperfdrv.c:1161:29: sparse: got char *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:1182:13: sparse: sparse: symbol 'lwpmudrv_Stop_Mem' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:1293:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got char *[usertype] buf_usr_to_drv @@
drivers/platform/x86/socperf/socperfdrv.c:1293:54: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:1293:54: sparse: got char *[usertype] buf_usr_to_drv
drivers/platform/x86/socperf/socperfdrv.c:1317:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got char *[usertype] buf_drv_to_usr @@
drivers/platform/x86/socperf/socperfdrv.c:1317:30: sparse: expected void [noderef] __user *to
drivers/platform/x86/socperf/socperfdrv.c:1317:30: sparse: got char *[usertype] buf_drv_to_usr
drivers/platform/x86/socperf/socperfdrv.c:1355:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got char *buf @@
drivers/platform/x86/socperf/socperfdrv.c:1355:26: sparse: expected void [noderef] __user *to
drivers/platform/x86/socperf/socperfdrv.c:1355:26: sparse: got char *buf
drivers/platform/x86/socperf/socperfdrv.c:1375:76: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got char const * @@
drivers/platform/x86/socperf/socperfdrv.c:1375:76: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:1375:76: sparse: got char const *
drivers/platform/x86/socperf/socperfdrv.c:1400:1: sparse: sparse: symbol 'socperf_Service_IOCTL' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:1547:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct IOCTL_ARGS_NODE_S [usertype] *[usertype] @@
drivers/platform/x86/socperf/socperfdrv.c:1547:55: sparse: expected void const [noderef] __user *from
drivers/platform/x86/socperf/socperfdrv.c:1547:55: sparse: got struct IOCTL_ARGS_NODE_S [usertype] *[usertype]
drivers/platform/x86/socperf/socperfdrv.c:1525:1: sparse: sparse: symbol 'socperf_Device_Control' was not declared. Should it be static?
drivers/platform/x86/socperf/socperfdrv.c:1614:12: sparse: sparse: symbol 'SOCPERF_Abnormal_Terminate' was not declared. Should it be static?
>> drivers/platform/x86/socperf/socperfdrv.c:1649:20: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected int ( *read )( ... ) @@ got int ( * )( ... ) @@
drivers/platform/x86/socperf/socperfdrv.c:1649:20: sparse: expected int ( *read )( ... )
drivers/platform/x86/socperf/socperfdrv.c:1649:20: sparse: got int ( * )( ... )
>> drivers/platform/x86/socperf/socperfdrv.c:1650:20: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected int ( *write )( ... ) @@ got int ( * )( ... ) @@
drivers/platform/x86/socperf/socperfdrv.c:1650:20: sparse: expected int ( *write )( ... )
drivers/platform/x86/socperf/socperfdrv.c:1650:20: sparse: got int ( * )( ... )
vim +1649 drivers/platform/x86/socperf/socperfdrv.c
1631
1632 /*****************************************************************************************
1633 *
1634 * Driver Entry / Exit functions that will be called on when the driver is loaded and
1635 * unloaded
1636 *
1637 ****************************************************************************************/
1638
1639 /*
1640 * Structure that declares the usual file access functions
1641 * First one is for lwpmu_c, the control functions
1642 */
1643 static struct file_operations socperf_Fops = {
1644 .owner = THIS_MODULE,
1645 IOCTL_OP = socperf_Device_Control,
1646 #if defined(CONFIG_COMPAT) && defined(DRV_EM64T)
1647 .compat_ioctl = socperf_Device_Control_Compat,
1648 #endif
> 1649 .read = socperf_Read,
> 1650 .write = socperf_Write,
1651 .open = socperf_Open,
1652 .release = NULL,
1653 .llseek = NULL,
1654 };
1655
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (158701 bytes)
Powered by blists - more mailing lists