Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp386894lqb; Tue, 4 Jun 2024 14:38:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFtM0wJt6g1bLKMCzgG98Oy2mNhAa+0ac35WAm2uD1L12s09p5S6Yg6CoEW+QrjogqZHDXBssQz0KtRvE+TqEPfrdwuKHPrqFyqiVvZQ== X-Google-Smtp-Source: AGHT+IFm/rYkhI9+JXvZZh3F9J9dfHDooEJBkwZBq+V5ztzBc/9l8lGHtVTlDRSUQnnc6sNvRYOu X-Received: by 2002:a05:6a21:998f:b0:1aa:43f4:3562 with SMTP id adf61e73a8af0-1b2b6e4dae5mr1049846637.11.1717537125303; Tue, 04 Jun 2024 14:38:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717537125; cv=pass; d=google.com; s=arc-20160816; b=ZxsI+aG/7eFbWT7Wc8jeJSoSxFA4Ey7/sRIextGIJ8kScqgskp/vDD7ZHMj2gKXyi1 +jxh+bw7ZT5XOiWBDvD8V2mQeuFT2jUTvWxpe3IR09waLL1Oe/fukH7C32wLV/CdX0x2 FQZ/ijzk/lt5WmxsBS0l1eYFy2CuvUy5qobtPw1D40M4WEdS+gv3kr5ZOXL+b4PUeAkT vWZYY44SaXjNktQjNcfwv9Yx/2aQ9LIZH5PbiVmPX2SuVYeraNcWbwUZu19lg5Mu0Ug+ f255tLouBwUo5hWO93i3zWokf+nxbeDsDyQaYi38M9o3Bk17hE/opvtA2ZZe3CHnXjLV na8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=tb2k4LrFr6mFMSmBuRyv8mgayG0rR0pwtrTKQWVETns=; fh=iueWvqwL+7btX6Dg8k/tFlggxS8GCXyE4v3IeGD/uJk=; b=C48oAxTUU/vqS5Ri7WM8X8AjrCupSj7HS9F93Rc94cFWouP4Z00Wtt1q9VGlkzyWkS mrUSq+1a8685jb1loFzNd/c7F6KysAWKax5GNOVCHg3WaAEHYZTZZx0qIWz1Na/difKm iX06wu+BCRsWlvrWqHvvHCkf4SL9rn0EfnHUEsRPCxg6qjCD3edvLFAqf/R53HUxQbr7 8OjdnAX7B17Br4n1pYnDUqft2bKs4pQ3166U8uGPOcqsuC+gp5x0M2QVdAfUWAIJYth3 B/n0gdSxTmFtWrcEvILmbg5HBVEHYcdbjQyaq+cQ+fwwQx2sYYQD0dE4RWP+bv+uhrBh f/DQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M2qf6uQv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242b0a098si1734426b3a.176.2024.06.04.14.38.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 14:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M2qf6uQv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201411-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ED13D2867F8 for ; Tue, 4 Jun 2024 21:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A0D014B97B; Tue, 4 Jun 2024 21:38:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="M2qf6uQv" 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 358AB84E1C for ; Tue, 4 Jun 2024 21:38:37 +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=1717537119; cv=none; b=QWVF3qqqiZwoj4AIUfrL1lfAp40BjMByRkO2LXPhRoE1ZeSjTd3CtIALvqhiDMIDTtJxgO/0KBVpext57Z+XN4tE7KvuIPqerB4aHDB0NV/n7X/o90PqhLSRLURT1SLnGBZiTep56EPR4VduyIGgWq9YmEMe8pMZbnN5ypAAz4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717537119; c=relaxed/simple; bh=96F07kfBenUy8WriVf3SkvLFWZePh996qzWpyKNaZcE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ee/NbEWGyBPK7seQQz5wfyB5R4ekQIsB4IcBDCm2B36hyPU6vTXQmjoLISgYQhOc7AQFNrpaXAn34pC4yKJLDIg3J1IvuEWABr3QXbx6z2QlxO1txS0AKtIMnOecbigUDTXJISFdYweoESI3EsCpTtfKEQ0yv39Pm3z34qPl+HU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=M2qf6uQv; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717537118; x=1749073118; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=96F07kfBenUy8WriVf3SkvLFWZePh996qzWpyKNaZcE=; b=M2qf6uQvXdqyEpgNskLLT/UswqnnPClLWm8GDNkXzrTIrXpX4RX9p9Rm xd4h9enSYnSb2zTrAF+XeWsqOi75XE3z4nNSyqQJXDRr7nDXRNfk5kuZi G72ijTytFPUWBRMWtJGVPVPp2dARlLWpKa66mIyvQDGNswg8QLfG+FbMs VHAD80Wn6LaR1HeWrm7sEiymFeJeFRK+tM+O4cKi95xR2z5UYqa58h/CI 50j+dAHntPWSKpmlqYlv0kOhKlPoZ6e9k0hqs7vKqRO77EQ9LnxYLAcaR chAW7SVyONwCPVPuGP65BRvn8QlSghJyof39CkuWoXzcQw0FLzpHJefX+ Q==; X-CSE-ConnectionGUID: cwEIrgq7R9umfamqwGQybA== X-CSE-MsgGUID: LylMOkilTROa7J9Zl6gx+g== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="31653894" X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="31653894" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 14:38:37 -0700 X-CSE-ConnectionGUID: KMocsjVCR4Wae0uDsVfAUw== X-CSE-MsgGUID: Ni7C9kpKSQ+Q3OHTUJkssA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="60563426" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 14:38:30 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sEbrP-0000000DfcA-0jPP; Wed, 05 Jun 2024 00:38:27 +0300 Date: Wed, 5 Jun 2024 00:38:26 +0300 From: Andy Shevchenko To: Chia-I Wu Cc: Greg Kroah-Hartman , Andrew Morton , AKASHI Takahiro , Dan Williams , Baoquan He , Alison Schofield , linux-kernel@vger.kernel.org Subject: Re: [PATCH] resource: add a basic test for walk_iomem_res_desc Message-ID: References: <20240604213200.672279-1-olvaffe@gmail.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: <20240604213200.672279-1-olvaffe@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Jun 04, 2024 at 02:31:46PM -0700, Chia-I Wu wrote: > This mainly tests that find_next_iomem_res() does not miss resources. In the Subject: walk_iomem_res_desc() > Signed-off-by: Chia-I Wu ... > + res[2] = (struct resource){ > + .start = offset, > + .end = offset + SZ_1K - 1, > + .name = "NESTED", > + }; We have respective macros. Use them. -- With Best Regards, Andy Shevchenko