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 E7841C433EF for ; Sun, 24 Apr 2022 07:55:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F9FB6B0074; Sun, 24 Apr 2022 03:55:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0AA4C6B0075; Sun, 24 Apr 2022 03:55:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB46C6B0078; Sun, 24 Apr 2022 03:55:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id DB3B46B0074 for ; Sun, 24 Apr 2022 03:55:22 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B8F652258D for ; Sun, 24 Apr 2022 07:55:22 +0000 (UTC) X-FDA: 79391012484.02.B7C9357 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf06.hostedemail.com (Postfix) with ESMTP id 95DE5180026 for ; Sun, 24 Apr 2022 07:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650786921; x=1682322921; h=date:from:to:cc:subject:message-id:mime-version; bh=LbWl9JOixcBqANW57Na2Xhh7KZA62FZ4lcm5oWz+tOo=; b=IEycxWK/FHXWDSKp5GBUC6AcFJnJ9rsvh2tdgvMBwKpvTC8CGPHos80X DrrwiMNKi8vqDNZavzVN+R589mT8OQJUerBn3br1Npi6C2z0eDmvGUP0t hePtZ1ybnmZCb4nTlFI6D5uiRBxBdTqtlirR8CRui+iLBKo1cL8aqDL4j yd80DEQwPQorvC459uv5rfxE2pROpzlVV1+GlllIiQOBi6nTJkdeRNtXW l+UFNnJHDbD8mubgbLD2fVLSE2FkkkvDih2N947PurdubNiLPtZmoMJDD D2XlvLoE9kSkmE/VjRwEMraVlhrz0XiwW4HxE/fq6nRKKsFfXxvKLufgW g==; X-IronPort-AV: E=McAfee;i="6400,9594,10326"; a="290147139" X-IronPort-AV: E=Sophos;i="5.90,286,1643702400"; d="scan'208";a="290147139" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2022 00:55:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,286,1643702400"; d="scan'208";a="649251319" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 24 Apr 2022 00:55:18 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1niX5S-0001C1-AR; Sun, 24 Apr 2022 07:55:18 +0000 Date: Sun, 24 Apr 2022 15:55:01 +0800 From: kernel test robot To: Arnd Bergmann Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 5313/5845] arch/arm/mach-omap2/sram.c:78:17: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202204241527.n36cr1e5-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 95DE5180026 X-Stat-Signature: z1riaeemjrs9jqhz1sse6zmdfxnp5b1d Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="IEycxWK/"; spf=none (imf06.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1650786920-172 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e7d6987e09a328d4a949701db40ef63fbb970670 commit: 6eab9bfd712f63c0977f2d38a45f321816030707 [5313/5845] Merge branch 'omap1/multiplatform-prep' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc into arm/multiplatform config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220424/202204241527.n36cr1e5-lkp@intel.com/config) compiler: arm-linux-gnueabi-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/next/linux-next.git/commit/?id=6eab9bfd712f63c0977f2d38a45f321816030707 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 6eab9bfd712f63c0977f2d38a45f321816030707 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm 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 >>) >> arch/arm/mach-omap2/sram.c:78:17: sparse: sparse: cast removes address space '__iomem' of expression vim +/__iomem +78 arch/arm/mach-omap2/sram.c bd5b46d0540296 Arnd Bergmann 2019-09-20 55 bd5b46d0540296 Arnd Bergmann 2019-09-20 56 /* bd5b46d0540296 Arnd Bergmann 2019-09-20 57 * Memory allocator for SRAM: calculates the new ceiling address bd5b46d0540296 Arnd Bergmann 2019-09-20 58 * for pushing a function using the fncpy API. bd5b46d0540296 Arnd Bergmann 2019-09-20 59 * bd5b46d0540296 Arnd Bergmann 2019-09-20 60 * Note that fncpy requires the returned address to be aligned bd5b46d0540296 Arnd Bergmann 2019-09-20 61 * to an 8-byte boundary. bd5b46d0540296 Arnd Bergmann 2019-09-20 62 */ bd5b46d0540296 Arnd Bergmann 2019-09-20 63 static void *omap_sram_push_address(unsigned long size) bd5b46d0540296 Arnd Bergmann 2019-09-20 64 { bd5b46d0540296 Arnd Bergmann 2019-09-20 65 unsigned long available, new_ceil = (unsigned long)omap_sram_ceil; bd5b46d0540296 Arnd Bergmann 2019-09-20 66 bd5b46d0540296 Arnd Bergmann 2019-09-20 67 available = omap_sram_ceil - (omap_sram_base + omap_sram_skip); bd5b46d0540296 Arnd Bergmann 2019-09-20 68 bd5b46d0540296 Arnd Bergmann 2019-09-20 69 if (size > available) { bd5b46d0540296 Arnd Bergmann 2019-09-20 70 pr_err("Not enough space in SRAM\n"); bd5b46d0540296 Arnd Bergmann 2019-09-20 71 return NULL; bd5b46d0540296 Arnd Bergmann 2019-09-20 72 } bd5b46d0540296 Arnd Bergmann 2019-09-20 73 bd5b46d0540296 Arnd Bergmann 2019-09-20 74 new_ceil -= size; bd5b46d0540296 Arnd Bergmann 2019-09-20 75 new_ceil = ROUND_DOWN(new_ceil, FNCPY_ALIGN); bd5b46d0540296 Arnd Bergmann 2019-09-20 76 omap_sram_ceil = IOMEM(new_ceil); bd5b46d0540296 Arnd Bergmann 2019-09-20 77 bd5b46d0540296 Arnd Bergmann 2019-09-20 @78 return (void *)omap_sram_ceil; bd5b46d0540296 Arnd Bergmann 2019-09-20 79 } bd5b46d0540296 Arnd Bergmann 2019-09-20 80 :::::: The code at line 78 was first introduced by commit :::::: bd5b46d054029637b3c8b4918406eae8b9291ccc ARM: omap: un-merge plat/sram.c :::::: TO: Arnd Bergmann :::::: CC: Arnd Bergmann -- 0-DAY CI Kernel Test Service https://01.org/lkp