Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp549985rdb; Sat, 27 Jan 2024 20:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IELmrkA97VPv+lDILDGdiY2yOYfkNjSs2cxj3AMONfB19Gug8uuZ6PWF51zj82LYRzIEpPY X-Received: by 2002:ac8:5a55:0:b0:42a:8004:888f with SMTP id o21-20020ac85a55000000b0042a8004888fmr3716280qta.61.1706416282010; Sat, 27 Jan 2024 20:31:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706416281; cv=pass; d=google.com; s=arc-20160816; b=XEXW9qOniL38HfnEISugo88dfXamTJ/fLtlekMf+N9ntiAvv8EXQRmuWpzYqeYkeqN zGdct6kVRvGYQlxUY15hOGGBRJEhX6uBEh5hK/y5jpv6SI/TLxMLQY/Eij9C1F3+Chbv 5DRsT4bcNbw5ek9COuR4OmnZlOVdLvt+vWDbsKYA9Iu+bc2NrdZzntbhPsvUMWITbVru rgqNUXqP2HITquoVfRVXv3nzHVoJqWICHsgkLqeuN+W+h0QNmtTCwlCdAm5Kn/bel1Ae YhXjkGEVNsJ13PyMAwdbqHKc1jeP5DnVecmF56Cr764qrc5BBwH0pFG2GTU6Usey/CiT jyCQ== 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=rRQP0PxJUrPkmMpvWz7S8fvtYjOLzvzMQCPQoo1rNYc=; fh=H7gcf94p8WK8xlCPS3KYZ7lcyPSUSMCxyqZbJIGfgT0=; b=qJh5bDDVTgc2Rri+KoFdvb0dPSkd346KWQxQ+zhMT7gmtBn426n6t3IHtnS+oYjkJp QcL+hXqGD0Z3OsgQfR4q0MLz5dcR77LyA1yQihir4Npr6lt+jVqdlWVythV0RIRo/qGl 0+mw0g5edeNmw+2bzxczAnktKptuZND5ygSct5Fn2G40A3Mvk/u8C4IrWrh2cyp0h6uF sWKTeMGYZyar/uYR0N4tzwtcS0Y494+iwD9T/F62sVoggI7vDuyRqe+7nvuwe4Cu2bcM OpfLbDZPghl/re4Tzgg0Cu1Dzlk6UB8wp9RuVxMqoeq4RVbgPhZqudfMOhnfsIPYowz/ 2ZCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8zAsAus; 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-41529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ld10-20020a056a004f8a00b006da04ab75basi3688991pfb.278.2024.01.27.20.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 20:31:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8zAsAus; 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-41529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41529-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E1D2B2205D for ; Sun, 28 Jan 2024 04:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16EC2539A; Sun, 28 Jan 2024 04:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="c8zAsAus" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 9B062DDA2; Sun, 28 Jan 2024 04:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706416223; cv=none; b=XimyJGHIxNrlpu+CeeDt4vouUjNpYriEUAtKdLfu1nLhWk+lYCbyracwJcTzhkq18eojUM0pmmuXK3TnZs2nxwFK2CJ8fBPr6JaTZ8883QkBuZ7Id1GehuQGeaTnszSynIAq6cEtVx7ZDKu7AZraNYA77OKaAHVzIakJbLttYio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706416223; c=relaxed/simple; bh=5KJJfPnG1UoHE6jIm0aaEisxP7TFBqaCktqKdcwNC7c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KP9fKCtHe4FpWPBWcXgu/7ucC4XYK5Q4bdcpA5yPCEvXv6r0R0EMqK+cAlQOXOxJiNk8r7M3/s26Cuw7m7bHPrjhpTpAxgapyHqYSEceYgmN7vpro/E8rIPYiUKPP/RJhJ+8rcs1HWUHjb2CI0hJhNKe/aBlyPn9/hRT8I6909Y= 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=c8zAsAus; arc=none smtp.client-ip=192.55.52.88 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=1706416221; x=1737952221; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5KJJfPnG1UoHE6jIm0aaEisxP7TFBqaCktqKdcwNC7c=; b=c8zAsAuspSzn5JzuekdZPatzKhS3RtQWaB3hnq6IMisqgJoR4/7RendP IIWAB2ZHbQlP9Dnoq1ola0MBzOvgwMeGn4uGpnZBFtsE0bvaBaOiCk9Cq GrIPPzT/j5Y7QlnNNMGc4nN6pJrddgin4qN5szVPoqp1GenEHb2jsY+MG //D6fuyjoVE4rNhvVYDcz/lao6B9CQ47EC31CSCFqipm5E+tUvfSGmV3E JWhknTaYKHpeyN7V3tC/bcTK0S5txXvnqBCArHkTRzE0m7RGmtmqU0vkt 5TOnz1VOyhOXGBAJkkZt16GWuqXDpI7BVfI7geAx9r0PzK02KWFY7WALe w==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="433900320" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="433900320" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2024 20:30:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="910718819" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="910718819" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 27 Jan 2024 20:30:13 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rTwo7-00034k-1V; Sun, 28 Jan 2024 04:30:11 +0000 Date: Sun, 28 Jan 2024 12:29:50 +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: <202401281219.iIhqs1Si-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-rc1 next-20240125] [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-061-20240127 (https://download.01.org/0day-ci/archive/20240128/202401281219.iIhqs1Si-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401281219.iIhqs1Si-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/202401281219.iIhqs1Si-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/of/of_reserved_mem.c:111:18: sparse: sparse: incompatible types for operation (<): drivers/of/of_reserved_mem.c:111:18: sparse: struct device_node *[assigned] node drivers/of/of_reserved_mem.c:111:18: sparse: int vim +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