From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5819251109210234044==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) Date: Sun, 30 Jan 2022 10:52:13 +0800 Message-ID: <202201301017.4PgkIeBv-lkp@intel.com> List-Id: --===============5819251109210234044== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next head: e8a1a72b5883a6aa1480e0a46f1df1960e18fa3a commit: c96303ec34ab5dffd825142d2c1b30484b6ca879 [1/4] printk: Move back pr= oc_dointvec_minmax_sysadmin() to sysctl.c config: sparc-randconfig-s032-20220130 (https://download.01.org/0day-ci/arc= hive/20220130/202201301017.4PgkIeBv-lkp(a)intel.com/config) compiler: sparc-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/com= mit/?id=3Dc96303ec34ab5dffd825142d2c1b30484b6ca879 git remote add mic git://git.kernel.org/pub/scm/linux/kernel/git/mi= c/linux.git git fetch --no-tags mic next git checkout c96303ec34ab5dffd825142d2c1b30484b6ca879 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Ds= parc SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (di= fferent address spaces) @@ expected void * @@ got void [noderef] __= user *buffer @@ kernel/sysctl.c:897:51: sparse: expected void * kernel/sysctl.c:897:51: sparse: got void [noderef] __user *buffer kernel/sysctl.c:891:5: sparse: sparse: symbol 'proc_dointvec_minmax_sysa= dmin' redeclared with different type (incompatible argument 3 (different ad= dress spaces)): >> kernel/sysctl.c:891:5: sparse: int extern [addressable] [signed] [top= level] proc_dointvec_minmax_sysadmin( ... ) kernel/sysctl.c: note: in included file (through include/linux/umh.h, in= clude/linux/kmod.h, include/linux/module.h): include/linux/sysctl.h:72:5: sparse: note: previously declared as: >> include/linux/sysctl.h:72:5: sparse: int extern [addressable] [signed= ] [toplevel] proc_dointvec_minmax_sysadmin( ... ) vim +897 kernel/sysctl.c 890 = > 891 int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, 892 void __user *buffer, size_t *lenp, loff_t *ppos) 893 { 894 if (write && !capable(CAP_SYS_ADMIN)) 895 return -EPERM; 896 = > 897 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); 898 } 899 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5819251109210234044==-- 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 D2F65C433EF for ; Sun, 30 Jan 2022 02:53:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353717AbiA3CxS (ORCPT ); Sat, 29 Jan 2022 21:53:18 -0500 Received: from mga14.intel.com ([192.55.52.115]:26189 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353586AbiA3CxR (ORCPT ); Sat, 29 Jan 2022 21:53:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643511197; x=1675047197; h=date:from:to:cc:subject:message-id:mime-version; bh=ymGE3GP7HJInAeXZ6HE+VzUYWssWUyQLzLRaNVchgsI=; b=fTlsFNrxfmy2SbW/S5sXJZXM+JWazhqj1BXukAmI92lUJiVFcb17f8g2 plwsG8SXnUKGyHMhxRPDPjlQYmvEeRKi3PNuPre7c4dJkvLIxLv1XSxIw NEBWZvd6dVDV8Ay+n7UHO+D7w6LAsIMNTr4gUBkrWpWFoYpcRIDRg0UKs ZZsxZ5VRv76omqhUvjF0hhbqW9m41wDiJvHa3/eO4jpu8VLe/kkMG0AAT zEAOcZvt9r4Gz93rkt2cBFfEnW5ab6dULZhrKdI+EhK2sl/7Wa/M363TE 2VtKmscu+ljrEZmvNfpvnyHGodHtMr9PcFkKc2/ihwH6BkVwYjCWgEVTz g==; X-IronPort-AV: E=McAfee;i="6200,9189,10242"; a="247533172" X-IronPort-AV: E=Sophos;i="5.88,327,1635231600"; d="scan'208";a="247533172" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2022 18:53:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,327,1635231600"; d="scan'208";a="619068539" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jan 2022 18:53:15 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nE0L5-000Pye-AZ; Sun, 30 Jan 2022 02:53:15 +0000 Date: Sun, 30 Jan 2022 10:52:13 +0800 From: kernel test robot To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) Message-ID: <202201301017.4PgkIeBv-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: git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next head: e8a1a72b5883a6aa1480e0a46f1df1960e18fa3a commit: c96303ec34ab5dffd825142d2c1b30484b6ca879 [1/4] printk: Move back proc_dointvec_minmax_sysadmin() to sysctl.c config: sparc-randconfig-s032-20220130 (https://download.01.org/0day-ci/archive/20220130/202201301017.4PgkIeBv-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/commit/?id=c96303ec34ab5dffd825142d2c1b30484b6ca879 git remote add mic git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git git fetch --no-tags mic next git checkout c96303ec34ab5dffd825142d2c1b30484b6ca879 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void * @@ got void [noderef] __user *buffer @@ kernel/sysctl.c:897:51: sparse: expected void * kernel/sysctl.c:897:51: sparse: got void [noderef] __user *buffer kernel/sysctl.c:891:5: sparse: sparse: symbol 'proc_dointvec_minmax_sysadmin' redeclared with different type (incompatible argument 3 (different address spaces)): >> kernel/sysctl.c:891:5: sparse: int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... ) kernel/sysctl.c: note: in included file (through include/linux/umh.h, include/linux/kmod.h, include/linux/module.h): include/linux/sysctl.h:72:5: sparse: note: previously declared as: >> include/linux/sysctl.h:72:5: sparse: int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... ) vim +897 kernel/sysctl.c 890 > 891 int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, 892 void __user *buffer, size_t *lenp, loff_t *ppos) 893 { 894 if (write && !capable(CAP_SYS_ADMIN)) 895 return -EPERM; 896 > 897 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); 898 } 899 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org