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 856BBC433EF for ; Thu, 2 Dec 2021 14:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354325AbhLBOFV (ORCPT ); Thu, 2 Dec 2021 09:05:21 -0500 Received: from mga03.intel.com ([134.134.136.65]:4050 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237081AbhLBOFU (ORCPT ); Thu, 2 Dec 2021 09:05:20 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10185"; a="236651945" X-IronPort-AV: E=Sophos;i="5.87,282,1631602800"; d="scan'208";a="236651945" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2021 06:01:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,282,1631602800"; d="scan'208";a="677671585" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 02 Dec 2021 06:01:33 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1msmeS-000GO2-Ct; Thu, 02 Dec 2021 14:01:32 +0000 Date: Thu, 2 Dec 2021 22:00:56 +0800 From: kernel test robot To: Randy Dunlap Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Wim Van Sebroeck , Guenter Roeck Subject: drivers/watchdog/mtx-1_wdt.c:184:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) Message-ID: <202112022111.k2wVj4jm-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 Hi Randy, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 58e1100fdc5990b0cc0d4beaf2562a92e621ac7d commit: 76215889be9d2cd388207545424bbbe3bf80e1ea watchdog: mtx-1: drop au1000.h header file date: 5 months ago config: mips-randconfig-s031-20211202 (https://download.01.org/0day-ci/archive/20211202/202112022111.k2wVj4jm-lkp@intel.com/config) compiler: mips64-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/torvalds/linux.git/commit/?id=76215889be9d2cd388207545424bbbe3bf80e1ea git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 76215889be9d2cd388207545424bbbe3bf80e1ea # 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=mips SHELL=/bin/bash drivers/clk/ drivers/gpio/ drivers/watchdog/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition >> drivers/watchdog/mtx-1_wdt.c:184:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected long ( *write )( ... ) @@ got long ( * )( ... ) @@ drivers/watchdog/mtx-1_wdt.c:184:27: sparse: expected long ( *write )( ... ) drivers/watchdog/mtx-1_wdt.c:184:27: sparse: got long ( * )( ... ) vim +184 drivers/watchdog/mtx-1_wdt.c 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 177 b47a166ed0baaa drivers/watchdog/mtx-1_wdt.c Jan Engelhardt 2008-01-22 178 static const struct file_operations mtx1_wdt_fops = { 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 179 .owner = THIS_MODULE, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 180 .llseek = no_llseek, ed78c2da149247 drivers/watchdog/mtx-1_wdt.c Alan Cox 2008-05-19 181 .unlocked_ioctl = mtx1_wdt_ioctl, b6dfb2477fb0bf drivers/watchdog/mtx-1_wdt.c Arnd Bergmann 2019-06-03 182 .compat_ioctl = compat_ptr_ioctl, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 183 .open = mtx1_wdt_open, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 @184 .write = mtx1_wdt_write, 7944d3a5a70ee5 drivers/watchdog/mtx-1_wdt.c Wim Van Sebroeck 2008-08-06 185 .release = mtx1_wdt_release, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 186 }; 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 187 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-06 188 :::::: The code at line 184 was first introduced by commit :::::: 04bf3b4f5fc033adf921f2e57d034ddbebef5fe7 [WATCHDOG] MTX-1 Watchdog driver :::::: TO: Florian Fainelli :::::: CC: Wim Van Sebroeck --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6282414907716709741==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: drivers/watchdog/mtx-1_wdt.c:184:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) Date: Thu, 02 Dec 2021 22:00:56 +0800 Message-ID: <202112022111.k2wVj4jm-lkp@intel.com> List-Id: --===============6282414907716709741== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Randy, First bad commit (maybe !=3D root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 58e1100fdc5990b0cc0d4beaf2562a92e621ac7d commit: 76215889be9d2cd388207545424bbbe3bf80e1ea watchdog: mtx-1: drop au10= 00.h header file date: 5 months ago config: mips-randconfig-s031-20211202 (https://download.01.org/0day-ci/arch= ive/20211202/202112022111.k2wVj4jm-lkp(a)intel.com/config) compiler: mips64-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/torvalds/linux.gi= t/commit/?id=3D76215889be9d2cd388207545424bbbe3bf80e1ea git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout 76215889be9d2cd388207545424bbbe3bf80e1ea # 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=3Dm= ips SHELL=3D/bin/bash drivers/clk/ drivers/gpio/ drivers/watchdog/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefin= ed builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefin= ed builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefin= ed builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefin= ed builtin:0:0: sparse: this was the original definition >> drivers/watchdog/mtx-1_wdt.c:184:27: sparse: sparse: incorrect type in i= nitializer (incompatible argument 2 (different address spaces)) @@ expe= cted long ( *write )( ... ) @@ got long ( * )( ... ) @@ drivers/watchdog/mtx-1_wdt.c:184:27: sparse: expected long ( *write = )( ... ) drivers/watchdog/mtx-1_wdt.c:184:27: sparse: got long ( * )( ... ) vim +184 drivers/watchdog/mtx-1_wdt.c 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 177 = b47a166ed0baaa drivers/watchdog/mtx-1_wdt.c Jan Engelhardt 2008-01-2= 2 178 static const struct file_operations mtx1_wdt_fops =3D { 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 179 .owner =3D THIS_MODULE, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 180 .llseek =3D no_llseek, ed78c2da149247 drivers/watchdog/mtx-1_wdt.c Alan Cox 2008-05-1= 9 181 .unlocked_ioctl =3D mtx1_wdt_ioctl, b6dfb2477fb0bf drivers/watchdog/mtx-1_wdt.c Arnd Bergmann 2019-06-0= 3 182 .compat_ioctl =3D compat_ptr_ioctl, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 183 .open =3D mtx1_wdt_open, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 @184 .write =3D mtx1_wdt_write, 7944d3a5a70ee5 drivers/watchdog/mtx-1_wdt.c Wim Van Sebroeck 2008-08-0= 6 185 .release =3D mtx1_wdt_release, 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 186 }; 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 187 = 04bf3b4f5fc033 drivers/char/watchdog/mtx-1_wdt.c Florian Fainelli 2007-05-0= 6 188 = :::::: The code at line 184 was first introduced by commit :::::: 04bf3b4f5fc033adf921f2e57d034ddbebef5fe7 [WATCHDOG] MTX-1 Watchdog d= river :::::: TO: Florian Fainelli :::::: CC: Wim Van Sebroeck --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6282414907716709741==--