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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6A5AC3DA64 for ; Sun, 28 Jul 2024 07:46:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7FBB6B0082; Sun, 28 Jul 2024 03:46:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E2FD26B0083; Sun, 28 Jul 2024 03:46:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF7986B0085; Sun, 28 Jul 2024 03:46:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B04D66B0082 for ; Sun, 28 Jul 2024 03:46:31 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id EAB9716036F for ; Sun, 28 Jul 2024 07:46:30 +0000 (UTC) X-FDA: 82388378940.13.08D08BD Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by imf29.hostedemail.com (Postfix) with ESMTP id 0B10D12001E for ; Sun, 28 Jul 2024 07:46:27 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TPTGYZFg; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722152746; a=rsa-sha256; cv=none; b=XazKFhejFnuwhMAcBo7u2u6VRsldF27bMOwY1J6pxqtXmzS2+5EFPy0mVw2T+P88SI1Ja7 Vp4Jb3VMvk1WHrWYcct47hB3RvUsYRQ8nVOPNtUH33yysWd4jcXicCDcbqiv27Y4FLaQHE XgSBG2KC/wlMi0/DgrFc1XyT2OavAeo= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TPTGYZFg; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722152746; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=camvUwLr1TO4nSJzURgkyg0rZLKZXjarCIavlIy8CPo=; b=NIYLDszhMCYMyAb9h76eI7Yy9WiumCk04i2SiwrEzZCRojblht7pufLQgpiWV2+bM3m204 aE4KwSbYTs2jVQgcyUdeNS4+JUdAz0GrD5XFYiAZsJ8MKPGdxTW/rfbDpid0VGBo3FLWdg dKzYdXbod7JF3Ixv2HLW1RmB7E442Ow= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722152788; x=1753688788; h=date:from:to:cc:subject:message-id:mime-version; bh=iBvRhHhsfX5P/iKTnOx29nZSFG5/+5JfbERy4ly5nEk=; b=TPTGYZFge3pYyVQDWtGZGWztxv9qFeLDX24oVghV/k6FEL+HJrIqufq5 /q3avGNWw4eo3YiCu8B11KbDSeuo5byvX4qWtdPKOn4hOt3ilsbbje4rA rB6zCFyX9SX9wsjUTd8a7sSFdpRdATzIXPOabz7vP0VGB20svcJIuVUuY yAE6OQ7yAUfTAoTa9O8TofoJ7m7JfxF4dcHvnLc2INF/6PXjAX9CNfz4M hR2KTcIzs8zsDgn/YTNVzx7WkD5O63xs4uQcfZLmmg5O9aLbMzs085sxF aoDJisI7PHtv3JRTiblTqolApiNX5tI94V9h7jHTS+YMo3eKTxdGExW6L w==; X-CSE-ConnectionGUID: hEa/GEUoSqKPOWDEJ4WVdg== X-CSE-MsgGUID: 8OyG9eAuScmZAnPAQfv3Fg== X-IronPort-AV: E=McAfee;i="6700,10204,11146"; a="31291439" X-IronPort-AV: E=Sophos;i="6.09,243,1716274800"; d="scan'208";a="31291439" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2024 00:46:02 -0700 X-CSE-ConnectionGUID: 87D2YE3BTY+IyFn98x3vVQ== X-CSE-MsgGUID: yMJ/o/KOSmWd3pkKOt329w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,243,1716274800"; d="scan'208";a="53574640" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 28 Jul 2024 00:45:58 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sXybJ-000qcq-2B; Sun, 28 Jul 2024 07:45:53 +0000 Date: Sun, 28 Jul 2024 15:45:53 +0800 From: kernel test robot To: Baoquan He Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: kernel/iomem.c:18:32: sparse: sparse: cast truncates bits from constant value (38400000050e becomes 50e) Message-ID: <202407281541.d1dk2Bne-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 0B10D12001E X-Stat-Signature: gopsbiezqrep1by94ya1omooou9isy4f X-Rspam-User: X-HE-Tag: 1722152787-45865 X-HE-Meta: U2FsdGVkX1/TuA5C8IzzOW2iwSXkiNE4JzW61dPSKBR/Kn74EHZjEg5a76dG/0LTWw2GiicUnEjuf6T2/UAS3B+0aAiFIXVcjdVyeidCmUjLums/FqXtbc6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cIwMVjUyijOsavSsb5TjQWa1j4cNBb8P0gLx+fMlenFaVru8XTwi1Zn1g57UKxV/pKwUBGC/JCYh9zyylERuFQuyvFy3/1o6o7HwbRRMg8CXmCxXS3WnFDVDpeyp5W6Sg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5437f30d3458ad36e83ab96088d490ebfee844d8 commit: 0453c9a78015cb2219cda7239d881f4e3137bff8 sh: mm: convert to GENERIC_IOREMAP date: 12 months ago config: sh-randconfig-r133-20240727 (https://download.01.org/0day-ci/archive/20240728/202407281541.d1dk2Bne-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 14.1.0 reproduce: (https://download.01.org/0day-ci/archive/20240728/202407281541.d1dk2Bne-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202407281541.d1dk2Bne-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/iomem.c:113:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] addr @@ got void [noderef] __iomem * @@ kernel/iomem.c:113:22: sparse: expected void *[assigned] addr kernel/iomem.c:113:22: sparse: got void [noderef] __iomem * kernel/iomem.c:116:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] addr @@ got void [noderef] __iomem * @@ kernel/iomem.c:116:22: sparse: expected void *[assigned] addr kernel/iomem.c:116:22: sparse: got void [noderef] __iomem * >> kernel/iomem.c:18:32: sparse: sparse: cast truncates bits from constant value (38400000050e becomes 50e) kernel/iomem.c: note: in included file (through include/linux/gfp.h, include/linux/xarray.h, include/linux/radix-tree.h, ...): include/linux/mmzone.h:1997:40: sparse: sparse: self-comparison always evaluates to false -- arch/sh/boards/board-sh7785lcr.c:298:13: sparse: sparse: symbol 'init_sh7785lcr_IRQ' was not declared. Should it be static? arch/sh/boards/board-sh7785lcr.c:322:11: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char *p @@ got void [noderef] __iomem * @@ arch/sh/boards/board-sh7785lcr.c:322:11: sparse: expected unsigned char *p arch/sh/boards/board-sh7785lcr.c:322:11: sparse: got void [noderef] __iomem * >> arch/sh/boards/board-sh7785lcr.c:328:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned char *p @@ arch/sh/boards/board-sh7785lcr.c:328:17: sparse: expected void volatile [noderef] __iomem *addr arch/sh/boards/board-sh7785lcr.c:328:17: sparse: got unsigned char *p arch/sh/boards/board-sh7785lcr.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/spi/spi-sh-sci.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/scatterlist.h, include/linux/spi/spi.h): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/spi/spi-nxp-fspi.c:513:25: sparse: sparse: cast from restricted __be32 drivers/spi/spi-nxp-fspi.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/scsi/aacraid/rx.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/scsi/aacraid/nark.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/scsi/aacraid/rkt.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/scsi/aacraid/sa.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) -- drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:146:34: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/aacraid/src.c:146:34: sparse: sparse: cast to restricted __le32 drivers/scsi/aacraid/src.c:507:54: sparse: sparse: restricted __le16 degrades to integer drivers/scsi/aacraid/src.c:545:57: sparse: sparse: bad assignment (+=) to restricted __le32 drivers/scsi/aacraid/src.c:552:57: sparse: sparse: bad assignment (+=) to restricted __le32 drivers/scsi/aacraid/src.c:560:49: sparse: sparse: bad assignment (+=) to restricted __le32 drivers/scsi/aacraid/src.c:563:55: sparse: sparse: bad assignment (+=) to restricted __le32 drivers/scsi/aacraid/src.c:804:15: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/aacraid/src.c:804:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char * @@ drivers/scsi/aacraid/src.c:804:15: sparse: expected void const volatile [noderef] __iomem *ptr drivers/scsi/aacraid/src.c:804:15: sparse: got char * drivers/scsi/aacraid/src.c:804:15: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/aacraid/src.c:806:9: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/aacraid/src.c:806:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char * @@ drivers/scsi/aacraid/src.c:806:9: sparse: expected void const volatile [noderef] __iomem *ptr drivers/scsi/aacraid/src.c:806:9: sparse: got char * drivers/scsi/aacraid/src.c:806:9: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/aacraid/src.c: note: in included file (through arch/sh/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) >> include/asm-generic/io.h:1089:41: sparse: sparse: cast truncates bits from constant value (384000000506 becomes 506) vim +18 kernel/iomem.c 5981690ddb8f72 Dan Williams 2018-03-29 14 5981690ddb8f72 Dan Williams 2018-03-29 15 #ifndef arch_memremap_wb 5981690ddb8f72 Dan Williams 2018-03-29 16 static void *arch_memremap_wb(resource_size_t offset, unsigned long size) 5981690ddb8f72 Dan Williams 2018-03-29 17 { 5981690ddb8f72 Dan Williams 2018-03-29 @18 return (__force void *)ioremap_cache(offset, size); 5981690ddb8f72 Dan Williams 2018-03-29 19 } 5981690ddb8f72 Dan Williams 2018-03-29 20 #endif 5981690ddb8f72 Dan Williams 2018-03-29 21 :::::: The code at line 18 was first introduced by commit :::::: 5981690ddb8f72f9546a2d017a914cf56095fc1f memremap: split devm_memremap_pages() and memremap() infrastructure :::::: TO: Dan Williams :::::: CC: Dan Williams -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki