From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 024B640D56B for ; Fri, 12 Jun 2026 00:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781222647; cv=none; b=JKzRaAbITllSqmbeacAK9I8KeW136q3pbQQgd9GlRFlto/uoMvFt7mxFKn30oV8L5qw709mK8M7gv/R29Wn7/84tQOFaOTj46CuE5TOgCpIFHUyzbXzJxVhupXifv1ia8Wp7g5qc+R3bhdfJe78OrBpAseEdClzaj1tTrY5s/Do= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781222647; c=relaxed/simple; bh=KiphxvawWzAqroBFdJlhiZ4d3G32B1wUrDPyelw8p3s=; h=Date:From:To:Cc:Subject:Message-ID; b=dzLgK1xtqEEKncRz9t0zd2MZshdhRyNFolaVFUjkBeNKH4tYb2UK8bLssIjj4hx+Svcdlb91U2yB7YO2bQJhFBFOF4tsiEHJ1woYINGOnEHI19d0Ylmwuj1p73UryM1dpIBWfnh+CgeqcQC7CDPnNEDDekj6mTSIP4w1b6uSY48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KJ8Pl1G8; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KJ8Pl1G8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1781222646; x=1812758646; h=date:from:to:cc:subject:message-id; bh=KiphxvawWzAqroBFdJlhiZ4d3G32B1wUrDPyelw8p3s=; b=KJ8Pl1G8YxvM4fhTYlhC3W2t7MqFPOX8fe0wWdPlLU9ylEVHHhBuZ+DF svoYjvrwEYOkm+4gSBDEIeTDfKxwwFm3HZW7dd8b+JAnA10s8/eIhefVV NDCZ3rI5p3cmNv7MGAYEZTYXlRJwcxcXblb8wah+xeTgTyPOEcMRSJK3w gfzb7feoWyRtPv9q9tD8uEnTxAES03UOSuqOeKmh6ghAIaewyPp8P3dfO w+RaKBQMYm3YJWYh/9NCctK0RwntMVY0BW8hZqzbBIRCOeUtFKCbH3MYu XU3wsDvYikkvnU/XABASHHlMqf729e81zwQtPLwpzbpBfgwdFMC48gJzF Q==; X-CSE-ConnectionGUID: rKNcy4e3TmeGb9WZMXyHgQ== X-CSE-MsgGUID: r8VrZPuxQMqD+/Ks4w0BvA== X-IronPort-AV: E=McAfee;i="6800,10657,11813"; a="104719074" X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="104719074" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2026 17:04:05 -0700 X-CSE-ConnectionGUID: ASbjJWx7QC2uwgAZ+DHemg== X-CSE-MsgGUID: MpRbkX9nTGyK1yrWaKx+yA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="250933440" Received: from lkp-server01.sh.intel.com (HELO f0d55cb201f0) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 11 Jun 2026 17:04:02 -0700 Received: from kbuild by f0d55cb201f0 with local (Exim 4.98.2) (envelope-from ) id 1wXpNP-00000000O2o-2i5h; Fri, 12 Jun 2026 00:03:59 +0000 Date: Fri, 12 Jun 2026 08:03:13 +0800 From: kernel test robot To: Sudeep Holla Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andi Shyti Subject: drivers/i2c/busses/i2c-xgene-slimpro.c:153:38: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202606120803.iI23w3ER-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9716c086c8e8b141d35aa61f2e96a2e83de212a7 commit: 7b174126124560f15e392fe5767face99e61ddb1 i2c: xgene-slimpro: Simplify PCC shared memory region handling date: 1 year, 1 month ago config: arm64-randconfig-r112-20260612 (https://download.01.org/0day-ci/archive/20260612/202606120803.iI23w3ER-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.4.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260612/202606120803.iI23w3ER-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 | Fixes: 7b1741261245 ("i2c: xgene-slimpro: Simplify PCC shared memory region handling") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202606120803.iI23w3ER-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/i2c/busses/i2c-xgene-slimpro.c:121:15: sparse: sparse: cast to restricted __le16 drivers/i2c/busses/i2c-xgene-slimpro.c:124:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile @@ got restricted __le16 [usertype] @@ drivers/i2c/busses/i2c-xgene-slimpro.c:124:9: sparse: expected unsigned short volatile drivers/i2c/busses/i2c-xgene-slimpro.c:124:9: sparse: got restricted __le16 [usertype] >> drivers/i2c/busses/i2c-xgene-slimpro.c:153:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned short [usertype] *addr @@ got unsigned short [noderef] __iomem * @@ drivers/i2c/busses/i2c-xgene-slimpro.c:153:38: sparse: expected unsigned short [usertype] *addr drivers/i2c/busses/i2c-xgene-slimpro.c:153:38: sparse: got unsigned short [noderef] __iomem * drivers/i2c/busses/i2c-xgene-slimpro.c:157:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned short [usertype] *addr @@ got unsigned short [noderef] __iomem * @@ drivers/i2c/busses/i2c-xgene-slimpro.c:157:37: sparse: expected unsigned short [usertype] *addr drivers/i2c/busses/i2c-xgene-slimpro.c:157:37: sparse: got unsigned short [noderef] __iomem * drivers/i2c/busses/i2c-xgene-slimpro.c:159:21: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *msg @@ got struct acpi_pcct_shared_memory [noderef] __iomem * @@ drivers/i2c/busses/i2c-xgene-slimpro.c:159:21: sparse: expected void *msg drivers/i2c/busses/i2c-xgene-slimpro.c:159:21: sparse: got struct acpi_pcct_shared_memory [noderef] __iomem * drivers/i2c/busses/i2c-xgene-slimpro.c:173:21: sparse: sparse: cast removes address space '__iomem' of expression drivers/i2c/busses/i2c-xgene-slimpro.c:177:9: sparse: sparse: cast removes address space '__iomem' of expression drivers/i2c/busses/i2c-xgene-slimpro.c:177:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@ drivers/i2c/busses/i2c-xgene-slimpro.c:177:9: sparse: expected unsigned int volatile drivers/i2c/busses/i2c-xgene-slimpro.c:177:9: sparse: got restricted __le32 [usertype] drivers/i2c/busses/i2c-xgene-slimpro.c:180:9: sparse: sparse: cast removes address space '__iomem' of expression drivers/i2c/busses/i2c-xgene-slimpro.c:180:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile @@ got restricted __le16 [usertype] @@ drivers/i2c/busses/i2c-xgene-slimpro.c:180:9: sparse: expected unsigned short volatile drivers/i2c/busses/i2c-xgene-slimpro.c:180:9: sparse: got restricted __le16 [usertype] drivers/i2c/busses/i2c-xgene-slimpro.c:183:18: sparse: sparse: cast removes address space '__iomem' of expression drivers/i2c/busses/i2c-xgene-slimpro.c:183:18: sparse: sparse: cast to restricted __le16 drivers/i2c/busses/i2c-xgene-slimpro.c:185:9: sparse: sparse: cast removes address space '__iomem' of expression drivers/i2c/busses/i2c-xgene-slimpro.c:185:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile @@ got restricted __le16 [usertype] @@ drivers/i2c/busses/i2c-xgene-slimpro.c:185:9: sparse: expected unsigned short volatile drivers/i2c/busses/i2c-xgene-slimpro.c:185:9: sparse: got restricted __le16 [usertype] drivers/i2c/busses/i2c-xgene-slimpro.c:189:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@ drivers/i2c/busses/i2c-xgene-slimpro.c:189:17: sparse: expected unsigned int volatile drivers/i2c/busses/i2c-xgene-slimpro.c:189:17: sparse: got restricted __le32 [usertype] vim +153 drivers/i2c/busses/i2c-xgene-slimpro.c f6505fbabc426b9 Feng Kan 2015-04-24 145 df5da47fe722e36 Hoan Tran 2017-04-24 146 static void slimpro_i2c_pcc_rx_cb(struct mbox_client *cl, void *msg) df5da47fe722e36 Hoan Tran 2017-04-24 147 { df5da47fe722e36 Hoan Tran 2017-04-24 148 struct slimpro_i2c_dev *ctx = to_slimpro_i2c_dev(cl); 7b174126124560f Sudeep Holla 2025-04-11 149 struct acpi_pcct_shared_memory __iomem *generic_comm_base = 7b174126124560f Sudeep Holla 2025-04-11 150 ctx->pcc_chan->shmem; df5da47fe722e36 Hoan Tran 2017-04-24 151 df5da47fe722e36 Hoan Tran 2017-04-24 152 /* Check if platform sends interrupt */ df5da47fe722e36 Hoan Tran 2017-04-24 @153 if (!xgene_word_tst_and_clr(&generic_comm_base->status, 89a4ad1f437c049 Sudeep Holla 2023-09-27 154 PCC_STATUS_SCI_DOORBELL)) df5da47fe722e36 Hoan Tran 2017-04-24 155 return; df5da47fe722e36 Hoan Tran 2017-04-24 156 df5da47fe722e36 Hoan Tran 2017-04-24 157 if (xgene_word_tst_and_clr(&generic_comm_base->status, 89a4ad1f437c049 Sudeep Holla 2023-09-27 158 PCC_STATUS_CMD_COMPLETE)) { df5da47fe722e36 Hoan Tran 2017-04-24 159 msg = generic_comm_base + 1; df5da47fe722e36 Hoan Tran 2017-04-24 160 df5da47fe722e36 Hoan Tran 2017-04-24 161 /* Response message msg[1] contains the return value. */ df5da47fe722e36 Hoan Tran 2017-04-24 162 if (ctx->resp_msg) df5da47fe722e36 Hoan Tran 2017-04-24 163 *ctx->resp_msg = ((u32 *)msg)[1]; df5da47fe722e36 Hoan Tran 2017-04-24 164 df5da47fe722e36 Hoan Tran 2017-04-24 165 complete(&ctx->rd_complete); df5da47fe722e36 Hoan Tran 2017-04-24 166 } df5da47fe722e36 Hoan Tran 2017-04-24 167 } df5da47fe722e36 Hoan Tran 2017-04-24 168 :::::: The code at line 153 was first introduced by commit :::::: df5da47fe722e36055b97134e6bb9df58c12495c i2c: xgene-slimpro: Add ACPI support by using PCC mailbox :::::: TO: Hoan Tran :::::: CC: Wolfram Sang -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki