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 2AF9BC433EF for ; Fri, 11 Feb 2022 21:24:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5349B6B0071; Fri, 11 Feb 2022 16:24:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E3936B007B; Fri, 11 Feb 2022 16:24:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3AB706B007D; Fri, 11 Feb 2022 16:24:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0187.hostedemail.com [216.40.44.187]) by kanga.kvack.org (Postfix) with ESMTP id 2CEFC6B0071 for ; Fri, 11 Feb 2022 16:24:13 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id DBE9E8249980 for ; Fri, 11 Feb 2022 21:24:12 +0000 (UTC) X-FDA: 79131777144.11.3CC68A8 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf18.hostedemail.com (Postfix) with ESMTP id DBC1C1C000B for ; Fri, 11 Feb 2022 21:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644614651; x=1676150651; h=date:from:to:cc:subject:message-id:mime-version; bh=BrjaBu0hgo8frKWceu+/d41JJ9l3t8T7/pb2VRNneQk=; b=NZx3WyLHro0gsigH8IR29Kha9wvKuAQ88DuttBhOnK3UTsR1tmnn1lWo pOb6VJldFvMiGMS4BXOrk9SfyEFVx+Xta4U/doSRCm5Uucl21lInT66B6 ukVrlimSLgG64egMPgRVbr41KPbxaVAC8TIdmRM/HHZkAO8XOBtoEsYkK opBEgsqUzTvDIK4212Nxtx0yVlQkixIXkN+aX2RPZeL/b0ilw6zxeOMzS 7hiocJhYlyull/nWZMRy+5WEG8hWZmA2fI4ppktqeFPZYTyZz0APZRNRl kYF4bVWpklELFmr4BgBn1Kn1SQmNrTM4Qa474L9Bm9fJgXIVJTy3051bx Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10255"; a="249759838" X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="249759838" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 13:24:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="702240527" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 11 Feb 2022 13:24:08 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nIdOi-0005Ck-57; Fri, 11 Feb 2022 21:24:08 +0000 Date: Sat, 12 Feb 2022 05:24:05 +0800 From: kernel test robot To: Jan Dabros Cc: kbuild-all@lists.01.org, Linux Memory Management List , Wolfram Sang , Andy Shevchenko Subject: [linux-next:master 4897/5417] drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202202120520.NbWJGvF2-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) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NZx3WyLH; spf=none (imf18.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam07 X-Rspam-User: X-Rspamd-Queue-Id: DBC1C1C000B X-Stat-Signature: j4rpy5d49eo8jtth9a88gjipbos1emot X-HE-Tag: 1644614651-481981 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: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631 commit: 91560fe37f81ba8145427477a39cea88f4422385 [4897/5417] i2c: designware: Add AMD PSP I2C bus support config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220212/202202120520.NbWJGvF2-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # 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=91560fe37f81ba8145427477a39cea88f4422385 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 91560fe37f81ba8145427477a39cea88f4422385 # save the config file to linux build tree mkdir build_dir make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/i2c/busses/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@ drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: expected void const volatile [noderef] __iomem *addr drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: got unsigned int * vim +165 drivers/i2c/busses/i2c-designware-amdpsp.c 159 160 /* Helper to verify status returned by PSP */ 161 static int check_i2c_req_sts(struct psp_i2c_req *req) 162 { 163 int status; 164 > 165 status = readl(&req->hdr.status); 166 167 switch (status) { 168 case PSP_I2C_REQ_STS_OK: 169 return 0; 170 case PSP_I2C_REQ_STS_BUS_BUSY: 171 return -EBUSY; 172 case PSP_I2C_REQ_STS_INV_PARAM: 173 default: 174 return -EIO; 175 }; 176 } 177 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org