From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47DB8C433EF for ; Tue, 15 Feb 2022 06:05:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233728AbiBOGFt (ORCPT ); Tue, 15 Feb 2022 01:05:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiBOGFs (ORCPT ); Tue, 15 Feb 2022 01:05:48 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F37C4B65 for ; Mon, 14 Feb 2022 22:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644905139; x=1676441139; h=date:from:to:cc:subject:message-id:mime-version; bh=9T1Zhf11T2THdcQwM7OSO3iT2Z5DgFxy8/YrIQD9NXo=; b=WaKmqozGyUvm8nvU8tUej+LN9pq1W3Z4VtOFLwXW0Hrumi30jdss/VOt B2vh2I6QRtUR47xV5OMwvNiyGT728sGzdMunuEoRV1BvTDtZ6RY49x5qK N36RPQK6LLsXl89Z/ENpAV1YpgKh1XL0d+PQ4rE2QmdeRiHsiMNF9yrbm VZP7+BSguWHphcQvFWSdCU3aKq2Kkku/kWYf0uZ/4OaUYUO0iBQ+l8tul lA1Txghh1FXpjp3Kb5RakDK0yWeVgyKebW98dWvE/XS1HmleQcJGgEI6X mtFSZMVb4fmCSU34eoXKGrE3vfaHCmn9vXVEs8EIYysgSdS2HOZGil2U/ A==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="230893924" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="230893924" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:05:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="703453297" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 14 Feb 2022 22:05:36 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nJqy0-0009K4-9B; Tue, 15 Feb 2022 06:05:36 +0000 Date: Tue, 15 Feb 2022 14:05:31 +0800 From: kernel test robot To: Manisha Chinthapally Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mchinth:sep_socwatch_linux_5_16 1/1] drivers/platform/x86/socperf/socperfdrv.c:1637:17: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) Message-ID: <202202151426.RB8miR3A-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/mchinth/linux sep_socwatch_linux_5_16 head: 4cbfca15a262729ae8557758b49226fe4769f582 commit: 4cbfca15a262729ae8557758b49226fe4769f582 [1/1] Platform/x86 Updated SEP/SOCPERF drivers to latest version config: i386-randconfig-s002-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151426.RB8miR3A-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/mchinth/linux/commit/4cbfca15a262729ae8557758b49226fe4769f582 git remote add mchinth https://github.com/mchinth/linux git fetch --no-tags mchinth sep_socwatch_linux_5_16 git checkout 4cbfca15a262729ae8557758b49226fe4769f582 # save the config file to linux build tree mkdir build_dir 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 as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/platform/x86/socperf/socperfdrv.c:208:13: sparse: sparse: function 'SOCPERF_Read_Data3' with external linkage has definition drivers/platform/x86/socperf/socperfdrv.c:1175:13: sparse: sparse: function 'lwpmudrv_Stop_Mem' with external linkage has definition drivers/platform/x86/socperf/socperfdrv.c:1392:22: sparse: sparse: function 'socperf_Service_IOCTL' with external linkage has definition drivers/platform/x86/socperf/socperfdrv.c:1516:13: sparse: sparse: function 'socperf_Device_Control' with external linkage has definition drivers/platform/x86/socperf/socperfdrv.c:1602:12: sparse: sparse: function 'SOCPERF_Abnormal_Terminate' with external linkage has definition drivers/platform/x86/socperf/socperfdrv.c:104:22: sparse: sparse: symbol 'socperf_drv_version' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:105:5: sparse: sparse: symbol 'read_unc_ctr_info' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:106:10: sparse: sparse: symbol 'dispatch_uncore' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:108:14: sparse: sparse: symbol 'socperf_global_ec' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:109:14: sparse: sparse: symbol 'socperf_abnormal_terminate' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:110:11: sparse: sparse: symbol 'socperf_control' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:114:8: sparse: sparse: symbol 'socperf_pcb_size' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:246: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:246:18: sparse: expected void const volatile [noderef] __user *ptr drivers/platform/x86/socperf/socperfdrv.c:246:18: sparse: got unsigned int [usertype] * drivers/platform/x86/socperf/socperfdrv.c:246: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:246:18: sparse: expected void [noderef] __user *__ptr_pu drivers/platform/x86/socperf/socperfdrv.c:246:18: sparse: got unsigned int [usertype] * drivers/platform/x86/socperf/socperfdrv.c:328: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:328:37: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:328:37: sparse: got void *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:407: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:407:62: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:407:62: sparse: got void *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:559: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:559:63: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:559:63: sparse: got char *[usertype] buf_usr_to_drv drivers/platform/x86/socperf/socperfdrv.c:641: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:641:39: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:641:39: sparse: got char *[usertype] buf_usr_to_drv drivers/platform/x86/socperf/socperfdrv.c:742: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:742:64: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:742:64: sparse: got char *[usertype] buf_usr_to_drv drivers/platform/x86/socperf/socperfdrv.c:1043: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:1043:43: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:1043:43: sparse: got unsigned int [usertype] * drivers/platform/x86/socperf/socperfdrv.c:1066: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:1066:29: sparse: expected void [noderef] __user *to drivers/platform/x86/socperf/socperfdrv.c:1066:29: sparse: got char *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:1089:28: sparse: sparse: Using plain integer as NULL pointer drivers/platform/x86/socperf/socperfdrv.c:1100: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:1100:29: sparse: expected void [noderef] __user *to drivers/platform/x86/socperf/socperfdrv.c:1100:29: sparse: got char *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:1135: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:1135:45: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:1135:45: sparse: got unsigned long long [usertype] * drivers/platform/x86/socperf/socperfdrv.c:1154: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:1154:29: sparse: expected void [noderef] __user *to drivers/platform/x86/socperf/socperfdrv.c:1154:29: sparse: got char *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:1175:13: sparse: sparse: symbol 'lwpmudrv_Stop_Mem' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:1286: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:1286:54: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:1286:54: sparse: got char *[usertype] buf_usr_to_drv drivers/platform/x86/socperf/socperfdrv.c:1310: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:1310:30: sparse: expected void [noderef] __user *to drivers/platform/x86/socperf/socperfdrv.c:1310:30: sparse: got char *[usertype] buf_drv_to_usr drivers/platform/x86/socperf/socperfdrv.c:1348: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:1348:26: sparse: expected void [noderef] __user *to drivers/platform/x86/socperf/socperfdrv.c:1348:26: sparse: got char *buf drivers/platform/x86/socperf/socperfdrv.c:1368: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:1368:76: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:1368:76: sparse: got char const * drivers/platform/x86/socperf/socperfdrv.c:1392:22: sparse: sparse: symbol 'socperf_Service_IOCTL' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:1537: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:1537:55: sparse: expected void const [noderef] __user *from drivers/platform/x86/socperf/socperfdrv.c:1537:55: sparse: got struct IOCTL_ARGS_NODE_S [usertype] *[usertype] drivers/platform/x86/socperf/socperfdrv.c:1516:13: sparse: sparse: symbol 'socperf_Device_Control' was not declared. Should it be static? drivers/platform/x86/socperf/socperfdrv.c:1602:12: sparse: sparse: symbol 'SOCPERF_Abnormal_Terminate' was not declared. Should it be static? >> drivers/platform/x86/socperf/socperfdrv.c:1637:17: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected int ( *read )( ... ) @@ got int ( * )( ... ) @@ drivers/platform/x86/socperf/socperfdrv.c:1637:17: sparse: expected int ( *read )( ... ) drivers/platform/x86/socperf/socperfdrv.c:1637:17: sparse: got int ( * )( ... ) >> drivers/platform/x86/socperf/socperfdrv.c:1638:18: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected int ( *write )( ... ) @@ got int ( * )( ... ) @@ drivers/platform/x86/socperf/socperfdrv.c:1638:18: sparse: expected int ( *write )( ... ) drivers/platform/x86/socperf/socperfdrv.c:1638:18: sparse: got int ( * )( ... ) vim +1637 drivers/platform/x86/socperf/socperfdrv.c f57492d07625dd Manisha Chinthapally 2019-05-01 1619 f57492d07625dd Manisha Chinthapally 2019-05-01 1620 /***************************************************************************************** f57492d07625dd Manisha Chinthapally 2019-05-01 1621 * f57492d07625dd Manisha Chinthapally 2019-05-01 1622 * Driver Entry / Exit functions that will be called on when the driver is loaded and f57492d07625dd Manisha Chinthapally 2019-05-01 1623 * unloaded f57492d07625dd Manisha Chinthapally 2019-05-01 1624 * f57492d07625dd Manisha Chinthapally 2019-05-01 1625 ****************************************************************************************/ f57492d07625dd Manisha Chinthapally 2019-05-01 1626 f57492d07625dd Manisha Chinthapally 2019-05-01 1627 /* f57492d07625dd Manisha Chinthapally 2019-05-01 1628 * Structure that declares the usual file access functions f57492d07625dd Manisha Chinthapally 2019-05-01 1629 * First one is for lwpmu_c, the control functions f57492d07625dd Manisha Chinthapally 2019-05-01 1630 */ f57492d07625dd Manisha Chinthapally 2019-05-01 1631 static struct file_operations socperf_Fops = { f57492d07625dd Manisha Chinthapally 2019-05-01 1632 .owner = THIS_MODULE, f57492d07625dd Manisha Chinthapally 2019-05-01 1633 IOCTL_OP = socperf_Device_Control, f57492d07625dd Manisha Chinthapally 2019-05-01 1634 #if defined(CONFIG_COMPAT) && defined(DRV_EM64T) f57492d07625dd Manisha Chinthapally 2019-05-01 1635 .compat_ioctl = socperf_Device_Control_Compat, f57492d07625dd Manisha Chinthapally 2019-05-01 1636 #endif f57492d07625dd Manisha Chinthapally 2019-05-01 @1637 .read = socperf_Read, f57492d07625dd Manisha Chinthapally 2019-05-01 @1638 .write = socperf_Write, f57492d07625dd Manisha Chinthapally 2019-05-01 1639 .open = socperf_Open, f57492d07625dd Manisha Chinthapally 2019-05-01 1640 .release = NULL, f57492d07625dd Manisha Chinthapally 2019-05-01 1641 .llseek = NULL, f57492d07625dd Manisha Chinthapally 2019-05-01 1642 }; f57492d07625dd Manisha Chinthapally 2019-05-01 1643 :::::: The code at line 1637 was first introduced by commit :::::: f57492d07625dddac7920eccdb5be08c55ee16fa platform/x86: SOCPERF3 support for sep & socwatch :::::: TO: Manisha Chinthapally :::::: CC: Faycal Benmlih --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org