From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 CB8913FC5AB for ; Fri, 10 Jul 2026 09:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783677527; cv=none; b=SBETQLptaFe2poN0b0O35fRFtQ0Uw/iYtYDuZKlVHEOvHOogrNeeOwjxxYFA8AHfy4kTvh5r6Lifnw6kgUjgnqsVqaW6r539dBFSHb3TaXddFJEmauaATykTg7bR78wFkejfQPIe2n2XkbMX+HLKXCfzourKNuok9+x1UqBmTYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783677527; c=relaxed/simple; bh=giWgPJS3XBLvIpsREXxBNm+9t6umopkDuBVxImXMZWk=; h=Date:From:To:Cc:Subject:Message-ID; b=IqWaLXUI8LQXD+UP0LvRsi3tVK71YeEU7rylZiuJbMZHNjELUUMkuK85Jpr/Xu3iBOAcXmACLZIp5z517mp4IAd0h/OuIh7OJELIzfRG7wM+Yfah/hwddXdXCEAB6pOBeGPKcAibXnIpl5Gptj2Dj5krQps5dCcoa4S2/DdTFQ4= 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=Ltl8XRTW; arc=none smtp.client-ip=192.198.163.8 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="Ltl8XRTW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783677524; x=1815213524; h=date:from:to:cc:subject:message-id; bh=giWgPJS3XBLvIpsREXxBNm+9t6umopkDuBVxImXMZWk=; b=Ltl8XRTWlA5zuFqnEk/KJBkymgm9AbyCxzIx0v3Qx77mARpwZfcyYxJF TpHTB/R+SGLN6xmPTIm9Pj0xXLaXEXiDt9tNLCFl+1KRk4riUshpdCPk3 N1Kq24WeGb3+ovC/PLYkLaEZpfz8EiizuglWeYONP1w9weAd7r1yYbcpf 8RG3gLytSxQkMmRwsrgtfDFFj4KDOGjb5b54qXK+ZRpsgZj0EneOt2Mrn jbk8M8atHAEEDqa/hgCMCNd+/NLIG9goIp7KzFWx7gWidRh6VPzUSG8ns jsfipFuedvQWcgPg7On2gQBx7Vv8njP7mxVcjXWl3sJdeS+B0CLCNHdlJ A==; X-CSE-ConnectionGUID: HE2Z1vY9R3SGmOPOaFGaUg== X-CSE-MsgGUID: qfwvznziTS64gpip8ky+zQ== X-IronPort-AV: E=McAfee;i="6800,10657,11841"; a="101923799" X-IronPort-AV: E=Sophos;i="6.25,154,1779174000"; d="scan'208";a="101923799" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2026 02:58:44 -0700 X-CSE-ConnectionGUID: IVYLu44mSqOSAvIjq5qk9Q== X-CSE-MsgGUID: rX/df2TWT8yeCLdHcv8inQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,154,1779174000"; d="scan'208";a="250841218" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 10 Jul 2026 02:58:42 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wi80C-00000000IoB-2oyw; Fri, 10 Jul 2026 09:58:38 +0000 Date: Fri, 10 Jul 2026 17:57:43 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android-mainline-riscv64 1/1] drivers/interconnect/debugfs-client.c:60:15: sparse: sparse: incompatible types in comparison expression (different address spaces): Message-ID: <202607101703.CIB6ytPN-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://android.googlesource.com/kernel/common android-mainline-riscv64 head: c8bd194f277ae6d43833ef16baa205e4c67629b4 commit: 4439db7b8f941e4e418fc4d07e84a2eb31c6f339 [1/1] ANDROID: interconnect: Enable debugfs client config: i386-randconfig-061-20260708 (https://download.01.org/0day-ci/archive/20260710/202607101703.CIB6ytPN-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260710/202607101703.CIB6ytPN-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/202607101703.CIB6ytPN-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/interconnect/debugfs-client.c:60:15: sparse: sparse: incompatible types in comparison expression (different address spaces): drivers/interconnect/debugfs-client.c:60:15: sparse: char [noderef] __rcu * drivers/interconnect/debugfs-client.c:60:15: sparse: char * drivers/interconnect/debugfs-client.c:61:15: sparse: sparse: incompatible types in comparison expression (different address spaces): drivers/interconnect/debugfs-client.c:61:15: sparse: char [noderef] __rcu * drivers/interconnect/debugfs-client.c:61:15: sparse: char * vim +60 drivers/interconnect/debugfs-client.c 770c69f037c18c Mike Tipton 2023-08-07 50 770c69f037c18c Mike Tipton 2023-08-07 51 static int icc_get_set(void *data, u64 val) 770c69f037c18c Mike Tipton 2023-08-07 52 { 770c69f037c18c Mike Tipton 2023-08-07 53 struct debugfs_path *debugfs_path; 770c69f037c18c Mike Tipton 2023-08-07 54 char *src, *dst; 770c69f037c18c Mike Tipton 2023-08-07 55 int ret = 0; 770c69f037c18c Mike Tipton 2023-08-07 56 770c69f037c18c Mike Tipton 2023-08-07 57 mutex_lock(&debugfs_lock); 770c69f037c18c Mike Tipton 2023-08-07 58 770c69f037c18c Mike Tipton 2023-08-07 59 rcu_read_lock(); 770c69f037c18c Mike Tipton 2023-08-07 @60 src = rcu_dereference(src_node); 770c69f037c18c Mike Tipton 2023-08-07 61 dst = rcu_dereference(dst_node); 770c69f037c18c Mike Tipton 2023-08-07 62 770c69f037c18c Mike Tipton 2023-08-07 63 /* 770c69f037c18c Mike Tipton 2023-08-07 64 * If we've already looked up a path, then use the existing one instead 770c69f037c18c Mike Tipton 2023-08-07 65 * of calling icc_get() again. This allows for updating previous BW 770c69f037c18c Mike Tipton 2023-08-07 66 * votes when "get" is written to multiple times for multiple paths. 770c69f037c18c Mike Tipton 2023-08-07 67 */ 770c69f037c18c Mike Tipton 2023-08-07 68 cur_path = get_path(src, dst); 770c69f037c18c Mike Tipton 2023-08-07 69 if (cur_path) { 770c69f037c18c Mike Tipton 2023-08-07 70 rcu_read_unlock(); 770c69f037c18c Mike Tipton 2023-08-07 71 goto out; 770c69f037c18c Mike Tipton 2023-08-07 72 } 770c69f037c18c Mike Tipton 2023-08-07 73 770c69f037c18c Mike Tipton 2023-08-07 74 src = kstrdup(src, GFP_ATOMIC); 770c69f037c18c Mike Tipton 2023-08-07 75 dst = kstrdup(dst, GFP_ATOMIC); 770c69f037c18c Mike Tipton 2023-08-07 76 rcu_read_unlock(); 770c69f037c18c Mike Tipton 2023-08-07 77 770c69f037c18c Mike Tipton 2023-08-07 78 if (!src || !dst) { 770c69f037c18c Mike Tipton 2023-08-07 79 ret = -ENOMEM; 770c69f037c18c Mike Tipton 2023-08-07 80 goto err_free; 770c69f037c18c Mike Tipton 2023-08-07 81 } 770c69f037c18c Mike Tipton 2023-08-07 82 770c69f037c18c Mike Tipton 2023-08-07 83 cur_path = icc_get(&pdev->dev, src, dst); 770c69f037c18c Mike Tipton 2023-08-07 84 if (IS_ERR(cur_path)) { 770c69f037c18c Mike Tipton 2023-08-07 85 ret = PTR_ERR(cur_path); 770c69f037c18c Mike Tipton 2023-08-07 86 goto err_free; 770c69f037c18c Mike Tipton 2023-08-07 87 } 770c69f037c18c Mike Tipton 2023-08-07 88 770c69f037c18c Mike Tipton 2023-08-07 89 debugfs_path = kzalloc(sizeof(*debugfs_path), GFP_KERNEL); 770c69f037c18c Mike Tipton 2023-08-07 90 if (!debugfs_path) { 770c69f037c18c Mike Tipton 2023-08-07 91 ret = -ENOMEM; 770c69f037c18c Mike Tipton 2023-08-07 92 goto err_put; 770c69f037c18c Mike Tipton 2023-08-07 93 } 770c69f037c18c Mike Tipton 2023-08-07 94 770c69f037c18c Mike Tipton 2023-08-07 95 debugfs_path->path = cur_path; 770c69f037c18c Mike Tipton 2023-08-07 96 debugfs_path->src = src; 770c69f037c18c Mike Tipton 2023-08-07 97 debugfs_path->dst = dst; 770c69f037c18c Mike Tipton 2023-08-07 98 list_add_tail(&debugfs_path->list, &debugfs_paths); 770c69f037c18c Mike Tipton 2023-08-07 99 770c69f037c18c Mike Tipton 2023-08-07 100 goto out; 770c69f037c18c Mike Tipton 2023-08-07 101 770c69f037c18c Mike Tipton 2023-08-07 102 err_put: 770c69f037c18c Mike Tipton 2023-08-07 103 icc_put(cur_path); 770c69f037c18c Mike Tipton 2023-08-07 104 err_free: 770c69f037c18c Mike Tipton 2023-08-07 105 kfree(src); 770c69f037c18c Mike Tipton 2023-08-07 106 kfree(dst); 770c69f037c18c Mike Tipton 2023-08-07 107 out: 770c69f037c18c Mike Tipton 2023-08-07 108 mutex_unlock(&debugfs_lock); 770c69f037c18c Mike Tipton 2023-08-07 109 return ret; 770c69f037c18c Mike Tipton 2023-08-07 110 } 770c69f037c18c Mike Tipton 2023-08-07 111 :::::: The code at line 60 was first introduced by commit :::::: 770c69f037c18cfaa37c3d6c6ef8bd257635513f interconnect: Add debugfs test client :::::: TO: Mike Tipton :::::: CC: Georgi Djakov -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki