From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 3DABF2BE03D; Wed, 24 Dec 2025 03:38:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766547515; cv=none; b=nd+o+jUMt+Z8n6GmnrRO41Jv83Alas8ul0OdN4HV19xuwqQN7LEqiKJuUFex9udKq56DuKREOgXM/nqoLCF8nQ9aTMDcM6tqrseHzKcj06F+wVD1Z6gfunq84ZE3scggvyEbL7G/0KIqxMOJZHof1Q0TaUit00jiKMS09HWZJgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766547515; c=relaxed/simple; bh=1KoPLXAp5Rhb+epBgjJ6CNEndULKtawia4ndGzeMBpI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KS2Ruy+R3Ov0AX5TJkgNYMDBKviX/tWcD3TmMEcD4tLuL4Jt5OBkjd5ybQiptVPFs2YjxNfU8aObjNCOgZh98vbIAMyV/ar/XM/x2YdFYzy5ktVh2EJulyatlYG6KwhWPmVQDScxtAYH8XrIwkWwfBHnoao/hqIhVjKEAk9Ap4o= 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=QePA1APg; arc=none smtp.client-ip=192.198.163.18 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="QePA1APg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1766547513; x=1798083513; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1KoPLXAp5Rhb+epBgjJ6CNEndULKtawia4ndGzeMBpI=; b=QePA1APgDfZperyhPBjgkWABIC2swiE9mbZX99pK9UcUIU2aO9xKGRdC VP9ul8Ala1Ce2hb0aa37ComgtOFQ1auxNMbzlvpt6mvBLCfqsAJ2q+N89 EEKF7FvjpLy9Tw8ts5d5CQyZq4FxipmOOFIK2ov3iELTyQ3ZNx5FenuIT Zxnic3HaElmZrW1UhZHrUS7hBwhrNQ54DBEcoae7nYPUskJipOC2RUd/4 UU4ZE7QtGEYBprfNjrR7NrTYb11FF3LA6pe4tuT6d9wLlHBqgqtb+MROn sihBhM+hSQFLivaQHJ8dJcQBmnjuebXCKLWQN7eZNuUK8rxgtd4ETm9QN w==; X-CSE-ConnectionGUID: N9/Slv0+QgqtzJWi5XU6kQ== X-CSE-MsgGUID: 4gj9trAbR9uurTFgkN1hNA== X-IronPort-AV: E=McAfee;i="6800,10657,11651"; a="67586987" X-IronPort-AV: E=Sophos;i="6.21,172,1763452800"; d="scan'208";a="67586987" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2025 19:38:33 -0800 X-CSE-ConnectionGUID: 9utZlab7R7q9B/uIQmaNXA== X-CSE-MsgGUID: Gzq/5fV4TreZpH12mwXqeA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,172,1763452800"; d="scan'208";a="204428721" Received: from lkp-server02.sh.intel.com (HELO dd3453e2b682) ([10.239.97.151]) by fmviesa005.fm.intel.com with ESMTP; 23 Dec 2025 19:38:28 -0800 Received: from kbuild by dd3453e2b682 with local (Exim 4.98.2) (envelope-from ) id 1vYFhV-000000002dP-0OxJ; Wed, 24 Dec 2025 03:38:16 +0000 Date: Wed, 24 Dec 2025 11:37:22 +0800 From: kernel test robot To: Vijayanand Jitta , robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, robh@kernel.org, dmitry.baryshkov@oss.qualcomm.com, konrad.dybcio@oss.qualcomm.com, bjorn.andersson@oss.qualcomm.com, bod@kernel.org, conor+dt@kernel.org, krzk+dt@kernel.org, saravanak@google.com, prakash.gupta@oss.qualcomm.com, vikash.garodia@oss.qualcomm.com Cc: oe-kbuild-all@lists.linux.dev, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Charan Teja Kalla , Vijayanand Jitta Subject: Re: [PATCH v3 2/3] of: factor arguments passed to of_map_id() into a struct Message-ID: <202512241116.41ldSEgi-lkp@intel.com> References: <20251221213602.2413124-3-vijayanand.jitta@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251221213602.2413124-3-vijayanand.jitta@oss.qualcomm.com> Hi Vijayanand, kernel test robot noticed the following build warnings: [auto build test WARNING on xen-tip/linux-next] [cannot apply to robh/for-next pci/next pci/for-linus linus/master v6.19-rc2 next-20251219] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Vijayanand-Jitta/of-Add-convenience-wrappers-for-of_map_id/20251222-053941 base: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next patch link: https://lore.kernel.org/r/20251221213602.2413124-3-vijayanand.jitta%40oss.qualcomm.com patch subject: [PATCH v3 2/3] of: factor arguments passed to of_map_id() into a struct config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20251224/202512241116.41ldSEgi-lkp@intel.com/config) compiler: arc-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251224/202512241116.41ldSEgi-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/202512241116.41ldSEgi-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/of/base.c: In function 'of_map_id': >> drivers/of/base.c:2078:63: warning: the comparison will always evaluate as 'true' for the address of 'args' will never be NULL [-Waddress] 2078 | if (!np || !map_name || !arg || (!arg->map_args.np && !arg->map_args.args)) | ^ In file included from drivers/of/base.c:24: include/linux/of.h:74:18: note: 'args' declared here 74 | uint32_t args[MAX_PHANDLE_ARGS]; | ^~~~ drivers/of/base.c:2136:21: warning: the comparison will always evaluate as 'true' for the address of 'args' will never be NULL [-Waddress] 2136 | if (arg->map_args.args) | ^~~ include/linux/of.h:74:18: note: 'args' declared here 74 | uint32_t args[MAX_PHANDLE_ARGS]; | ^~~~ drivers/of/base.c:2149:13: warning: the comparison will always evaluate as 'true' for the address of 'args' will never be NULL [-Waddress] 2149 | if (arg->map_args.args) | ^~~ include/linux/of.h:74:18: note: 'args' declared here 74 | uint32_t args[MAX_PHANDLE_ARGS]; | ^~~~ vim +2078 drivers/of/base.c 2047 2048 /** 2049 * of_map_id - Translate an ID through a downstream mapping. 2050 * @np: root complex device node. 2051 * @id: device ID to map. 2052 * @map_name: property name of the map to use. 2053 * @map_mask_name: optional property name of the mask to use. 2054 * @arg: contains the optional params, wrapped in a struct of_phandle_args, 2055 * which includes: 2056 * np: pointer to the target device node 2057 * args_count: number of arguments 2058 * args[]: array to receive the translated ID(s). 2059 * 2060 * Given a device ID, look up the appropriate implementation-defined 2061 * platform ID and/or the target device which receives transactions on that 2062 * ID, as per the "iommu-map" and "msi-map" bindings. Either of @target or 2063 * @id_out may be NULL if only the other is required. If @target points to 2064 * a non-NULL device node pointer, only entries targeting that node will be 2065 * matched; if it points to a NULL value, it will receive the device node of 2066 * the first matching target phandle, with a reference held. 2067 * 2068 * Return: 0 on success or a standard error code on failure. 2069 */ 2070 int of_map_id(const struct device_node *np, u32 id, 2071 const char *map_name, const char *map_mask_name, 2072 struct of_map_id_arg *arg) 2073 { 2074 u32 map_mask, masked_id; 2075 int map_len; 2076 const __be32 *map = NULL; 2077 > 2078 if (!np || !map_name || !arg || (!arg->map_args.np && !arg->map_args.args)) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki