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 31ADCC61D97 for ; Sun, 29 Jan 2023 10:29:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230521AbjA2K3J (ORCPT ); Sun, 29 Jan 2023 05:29:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjA2K3H (ORCPT ); Sun, 29 Jan 2023 05:29:07 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0755720D36 for ; Sun, 29 Jan 2023 02:29:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674988146; x=1706524146; h=date:from:to:cc:subject:message-id:mime-version; bh=JlSTbgK0HOQEbxgZtJrW0sdOaJmigDWciWOaN9E/tok=; b=f2S2sGdMgFu+t2oZuK8fwrsw2sIxp6en8ITeRKeuz8Rm5hVemyEwq3lh pG9qhZwtsJ/mK4bMRqjG10CEzMj1+eHvU+gUAxcFo3qVRDtR+/WGXp/ca vdIzDzGN8EDruyraP8MFdL6iI99s8jIOAIygW8Cf4XToe8mLfFIWu85iF rcVDLz4XbH1PEKo+LrZe3KcM1nv6SgXmihOTT7w6oG2CFyvqe/1lmYN2g scWVmPGR6AtXJuOTXF5/kmDaD5KGhmHyxaUaj4Ua+E67A3hsFKUHisgAt csQYQFv6kfY2aXvT+yWYCjm494hYOS8n/sM7TN8BUFmVkHfrexbVcyk2+ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10604"; a="315342379" X-IronPort-AV: E=Sophos;i="5.97,256,1669104000"; d="scan'208";a="315342379" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2023 02:29:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10604"; a="787696227" X-IronPort-AV: E=Sophos;i="5.97,256,1669104000"; d="scan'208";a="787696227" Received: from lkp-server01.sh.intel.com (HELO ffa7f14d1d0f) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 29 Jan 2023 02:29:03 -0800 Received: from kbuild by ffa7f14d1d0f with local (Exim 4.96) (envelope-from ) id 1pM4vm-0002iQ-0z; Sun, 29 Jan 2023 10:29:02 +0000 Date: Sun, 29 Jan 2023 18:28:55 +0800 From: kernel test robot To: Geert Uytterhoeven Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Guenter Roeck , Michael Schmitz Subject: drivers/block/paride/epia.c:183:59: sparse: sparse: cast to restricted __le16 Message-ID: <202301291805.K0QIVz4B-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c96618275234ad03d44eafe9f8844305bb44fda4 commit: 30b5e6ef4a32ea4985b99200e06d6660a69f9246 m68k: atari: Make Atari ROM port I/O write macros return void date: 8 months ago config: m68k-randconfig-s052-20230129 (https://download.01.org/0day-ci/archive/20230129/202301291805.K0QIVz4B-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30b5e6ef4a32ea4985b99200e06d6660a69f9246 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 30b5e6ef4a32ea4985b99200e06d6660a69f9246 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash drivers/block/paride/ drivers/comedi/drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/block/paride/epia.c:183:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/epia.c:183:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/epia.c:183:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/epia.c:183:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/epia.c: note: in included file (through arch/m68k/include/asm/io.h): arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer -- >> drivers/block/paride/bpck.c:182:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/bpck.c:182:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/bpck.c:182:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/bpck.c:182:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/bpck.c: note: in included file (through arch/m68k/include/asm/io.h): arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer drivers/block/paride/bpck.c:323:72: sparse: sparse: cast to restricted __le16 drivers/block/paride/bpck.c:323:72: sparse: sparse: cast to restricted __le16 drivers/block/paride/bpck.c:323:72: sparse: sparse: cast to restricted __le16 drivers/block/paride/bpck.c:323:72: sparse: sparse: cast to restricted __le16 arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer -- >> drivers/block/paride/kbic.c:58:21: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/kbic.c:58:21: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/kbic.c:58:21: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/kbic.c:58:21: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:156:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:157:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:159:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:160:48: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:179:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:179:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:179:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c:179:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/kbic.c: note: in included file (through arch/m68k/include/asm/io.h): arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer -- >> drivers/block/paride/dstr.c:145:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/dstr.c:145:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/dstr.c:145:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/dstr.c:145:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/dstr.c: note: in included file (through arch/m68k/include/asm/io.h): arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer -- >> drivers/block/paride/on26.c:221:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/on26.c:221:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/on26.c:221:59: sparse: sparse: cast to restricted __le16 >> drivers/block/paride/on26.c:221:59: sparse: sparse: cast to restricted __le16 drivers/block/paride/on26.c: note: in included file (through arch/m68k/include/asm/io.h): arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer arch/m68k/include/asm/io_mm.h:166:21: sparse: sparse: Using plain integer as NULL pointer -- >> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16 >> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16 >> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16 >> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16 drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16 drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16 drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16 drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16 vim +183 drivers/block/paride/epia.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 139 ^1da177e4c3f41 Linus Torvalds 2005-04-16 140 switch (pi->mode) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 141 ^1da177e4c3f41 Linus Torvalds 2005-04-16 142 case 0: w0(0x81); w2(1); w2(3); w0(0xc1); ^1da177e4c3f41 Linus Torvalds 2005-04-16 143 ph = 1; ^1da177e4c3f41 Linus Torvalds 2005-04-16 144 for (k=0;k 512) WR(0x84,3); ^1da177e4c3f41 Linus Torvalds 2005-04-16 176 w3(0); w2(0x24); ^1da177e4c3f41 Linus Torvalds 2005-04-16 177 for (k=0;k 512) WR(0x84,3); ^1da177e4c3f41 Linus Torvalds 2005-04-16 182 w3(0); w2(0x24); ^1da177e4c3f41 Linus Torvalds 2005-04-16 @183 for (k=0;k 512) WR(0x84,3); ^1da177e4c3f41 Linus Torvalds 2005-04-16 188 w3(0); w2(0x24); ^1da177e4c3f41 Linus Torvalds 2005-04-16 189 for (k=0;k :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests