Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1817169rdb; Wed, 31 Jan 2024 09:53:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnf1WWQnyvdjivDH4czZZz6fKe5EfTSYkZ4v8kxRFjpkH+c2q5VHabn6tI/kNJnlIlbdzT X-Received: by 2002:a05:620a:26a2:b0:783:5b21:5746 with SMTP id c34-20020a05620a26a200b007835b215746mr185161qkp.43.1706723633516; Wed, 31 Jan 2024 09:53:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706723633; cv=pass; d=google.com; s=arc-20160816; b=BKuYur5zTGjsEgzxtc0/QhWfrBI+a7yTYcVnoXa4UKGZpw90Vf27YXOhlQXFgrt2RT GVQ26kZBBEv3NN3SQJVKQmmZ97qhLi9J0HxMYktG+7s5dpBu4UT2g7PzDAuIixtRI21M hrxHOOGh9qogIbGH2ucbzzb2eULbw0O4rlmo2p2lwvMWoefKUegArl4KQcD44GtciCUN fu+xmXJK52KIQpsxlI/IiEBAAlQFn8mlNt6KiJrvSLdVxWwNo/Mu42FgI2GOaC6SGwlp A1VYo0mwQyZoDGg9FHIFpQbVNL1e5swYgmvNMz6P993oSjmOfIKJQjxOBbZF5sY5c7Z5 zUdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KaDYGBkQXDUM6Wt/TLJjUuTameMDeFyCWVzvrp9jKng=; fh=dzuCDhZvM8Ti+Se8lXSWlRsjYpDbXwqJdjiy+EnleNI=; b=QpQvUfAdtJTzXatb+OkxX3HjNXnc6ZPkGGFsGpReVhLJSL422i6eAwIVcvjOsLG9NL FEwd04WmZ2T/se3QcdmHY0PWRSZQap+hMdpS9jd55mkVhtmS/08/SEewEaULIASkToOE bD7sVeEzUs6w22PM9m/7R/g246BIWRT8qpouqY7x7VoA3U1vtVu9ulYinlPL6Dp8psyi kofEoMd+h44eq+SLRgUV95YdaLRazAwxqRbay5ElhGG2ThLZILjB7SMy/DjI4vgo+rWK /YkH6F4b8upZekt4/T2CZgkxWF3zKOlPdkzYvkA2jAe47mKyCwetX7Pogh7LySLUvwJG BR0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KF0tfM7U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWyWTph4RlaMfWMT6qtLqPvj0QrHM2NsHQ1/L0QbENfFdohYsOVC8FtixcPcu2m/luKcEX8ajs5UnS6mZAHrYy92bptTQ3F25R41vhGsA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vw14-20020a05620a564e00b007848e1c5f2csi3444422qkn.129.2024.01.31.09.53.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 09:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KF0tfM7U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 463DF1C21FD0 for ; Wed, 31 Jan 2024 17:53:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02CE212F587; Wed, 31 Jan 2024 17:53:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KF0tfM7U" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 49C0912DD93; Wed, 31 Jan 2024 17:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706723625; cv=none; b=nBYWfrs8SM+COIFF6o4UpuNNBbD867ewkiD1ojnzVpSF8B6gaJCc/zorQOeSgvBsxktE6wVYl0t5QOp8j9SB6NtPB/+DyuOkIYYlUaSgOX8lZURjdF2BSoDOrOkXn94L71L7f/ayhgBJI3grGbkBB8Jbi8GjorWpzCn2F3DadgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706723625; c=relaxed/simple; bh=WwfiEaFylW6P3AB2GpoAp+jdKzKCLM6zIZV7F/QLI9c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BvSKDa/Snj+MCWZ1ewTqqv8475H6ZnFVhD3wL+I+DgDbZAtB/Al0AyCUWwIznGmN9YjCf5B8lICdvk8QgsP2TrJXYW96d2B1LCUG8l2PVbjRwuE12BzN6LZthxvu7aYQ+4A6qukg/M96Kh3wD9y4M9rC2kYYcXciF9URDqC17gY= 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=KF0tfM7U; arc=none smtp.client-ip=198.175.65.11 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706723623; x=1738259623; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WwfiEaFylW6P3AB2GpoAp+jdKzKCLM6zIZV7F/QLI9c=; b=KF0tfM7Uo+CkQyJun4ftLmO7qrdy2qHBcbfWM9GnyxjWFKDZt51IgpTG VvNm2/11JiZ92WEtR4IBoNbobRecXRLfIVFIGj+xJEB1fXej4OY7jline icHiUoB1VRRJz6k4k77C5OOJ890ALoYJMefk5Lob6DvPQtrt/B/UIo6oc z+wY6F7J4VuwT9Qn/WPCcQ2Ir1ew5RvgRMowZ7eHnWFngSz/L2PGHOclc +nfhebaGbMsDcUdD32tMGdjEui84tFAtdgl6fk1vWTkaKdcKuc9PEpz8W dJQRkEWuEfd8T+qDVlCCdw72LKeHqGH3VOdVAuV8Vd7ih1hr+2CpmFJdG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="10313276" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="10313276" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 09:53:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="4167760" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by fmviesa003.fm.intel.com with ESMTP; 31 Jan 2024 09:53:35 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rVEmC-0001ra-2t; Wed, 31 Jan 2024 17:53:32 +0000 Date: Thu, 1 Feb 2024 01:53:31 +0800 From: kernel test robot To: Oreoluwa Babatunde , catalin.marinas@arm.com, will@kernel.org, robh+dt@kernel.org, frowand.list@gmail.com, vgupta@kernel.org, arnd@arndb.de, olof@lixom.net, soc@kernel.org, guoren@kernel.org, monstr@monstr.eu, palmer@dabbelt.com, aou@eecs.berkeley.edu, dinguyen@kernel.org, chenhuacai@kernel.org, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, mpe@ellerman.id.au, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 30/46] of: reserved_mem: Add code to use unflattened DT for reserved_mem nodes Message-ID: <202402010140.VrsPYn0W-lkp@intel.com> References: <20240126235425.12233-31-quic_obabatun@quicinc.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: <20240126235425.12233-31-quic_obabatun@quicinc.com> Hi Oreoluwa, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on arm64/for-next/core vgupta-arc/for-curr powerpc/next powerpc/fixes jcmvbkbc-xtensa/xtensa-for-next linus/master v6.8-rc2 next-20240131] [cannot apply to vgupta-arc/for-next] [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/Oreoluwa-Babatunde/of-reserved_mem-Change-the-order-that-reserved_mem-regions-are-stored/20240127-081735 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20240126235425.12233-31-quic_obabatun%40quicinc.com patch subject: [PATCH 30/46] of: reserved_mem: Add code to use unflattened DT for reserved_mem nodes config: i386-randconfig-141-20240128 (https://download.01.org/0day-ci/archive/20240201/202402010140.VrsPYn0W-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) 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/202402010140.VrsPYn0W-lkp@intel.com/ smatch warnings: drivers/of/of_reserved_mem.c:111 dt_scan_reserved_mem_reg_nodes() warn: unsigned 'node' is never less than zero. vim +/node +111 drivers/of/of_reserved_mem.c 98 99 /* 100 * Save the reserved_mem reg nodes in the reserved_mem array 101 */ 102 static void __init dt_scan_reserved_mem_reg_nodes(void) 103 { 104 int t_len = (dt_root_addr_cells + dt_root_size_cells) * sizeof(__be32); 105 struct device_node *node, *child; 106 phys_addr_t base, size; 107 const __be32 *prop; 108 int len; 109 110 node = of_find_node_by_path("/reserved-memory"); > 111 if (node < 0) { 112 pr_err("Reserved memory: Did not find reserved-memory node\n"); 113 return; 114 } 115 116 for_each_child_of_node(node, child) { 117 const char *uname; 118 struct reserved_mem *rmem; 119 120 if (!of_device_is_available(child)) 121 continue; 122 123 prop = of_get_property(child, "reg", &len); 124 if (!prop) { 125 rmem = of_reserved_mem_lookup(child); 126 if (rmem) 127 rmem->dev_node = child; 128 continue; 129 } 130 131 uname = of_node_full_name(child); 132 if (len && len % t_len != 0) { 133 pr_err("Reserved memory: invalid reg property in '%s', skipping node.\n", 134 uname); 135 continue; 136 } 137 138 base = dt_mem_next_cell(dt_root_addr_cells, &prop); 139 size = dt_mem_next_cell(dt_root_size_cells, &prop); 140 141 if (size) 142 fdt_reserved_mem_save_node(child, uname, base, size); 143 } 144 } 145 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki