Message ID | 20240202154744.473467-1-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-51009-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp929499dyc; Sat, 3 Feb 2024 01:27:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvIXg1H4sCxzy/C5kGZhMPP8aSE2YEKXufliEyPMPcLxsUlL16QGk3LOiFkDdJSjv/oeQH X-Received: by 2002:a2e:b0db:0:b0:2d0:9a6e:80 with SMTP id g27-20020a2eb0db000000b002d09a6e0080mr977792ljl.43.1706952430182; Sat, 03 Feb 2024 01:27:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706952430; cv=pass; d=google.com; s=arc-20160816; b=Rg/CM6Zg73X1U3GtOhO7SAeZ7x26s+g6WBUw3GdBif2cO3CGas0HVVWyuIhdGrNdxk MDUxk5m8H2oLDo2fmbOTaogAgTkTYwg6kpwc2RIvngagrAKFtERmmM3/HlyvwdPIpsIh PrCcK8N+EztcEYURDBiO9dTbaRrhhB8sx8TJH7DB7pUkcOuiS0oNGCEqHsMBvwWlYfV4 xoYlysbZ+Y5L9DkEeGf9sltcez5926iU8StD/kRQpFsNfQkU4EcSZv2JK79UdRxqzzuB RUhXv0ISXwRjW8ZAsFqmkEV0WeMXd0cK+s2OMPZBFUAQ/QwGYIuYdMFbfy8uQoMEfNvb 0laA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=hpUPK6HU+MCAe21sR7DDw/VPrNvJV/wzfN4VrXA9ecs=; fh=Ibd6PsZHxEj7yP7heWWnyuooTGQYZfg8qKoycQQBSb8=; b=Ts4b2vO9UuBfAKIdJqTD/NR+eGc8Y12fx1pjGPYofarq0eK2tkcFDy5Fok99yYnUap sEwr6NUQxabKTBrfFjRJn39gWqtg+9XMVjErrfAn55IxyCBXL+bXjfuMKnwZUua42Lm9 5uf72adZHoJbgrmgYoobDywwBvayo3rW5fKspXI6N0e9j80NUL/aNil8EyXr29weda90 zyUBe+Ds17UattVImF55vyDj1+AZcSmeCE54v8evON98D/fuSxtIl7Xp+87nvbMnbrdB ohbUp0cy0l+Z1wu3TAgSAqkUtSZ4644DFD7JTNgqN3j3TXbSIUX0ha7ZC42bgA5z4W++ CN6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mR4HGdrS; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51009-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51009-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVsY82ZFEqwuAwPrBXoluH1GD1VUpWObPkMuiA5UROXiNT2ECpEcWXMy/VD+iUK67OGQiKr7ZnuwtVHJp2HlwIu92reVg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cy2-20020a0564021c8200b0055c2df7fa74si1617966edb.529.2024.02.03.01.27.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 01:27:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51009-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mR4HGdrS; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51009-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51009-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id AE6A71F2DB67 for <ouuuleilei@gmail.com>; Sat, 3 Feb 2024 09:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6CC25D732; Sat, 3 Feb 2024 09:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mR4HGdrS" 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 5AE3B5CDC4 for <linux-kernel@vger.kernel.org>; Sat, 3 Feb 2024 09:26:51 +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=1706952413; cv=none; b=YD3ypgAwBKKQIIvy+JJuhRhf8So4HVg1JYm7Nj8IRgYU1Rj6W1LZowCLwqb7tdDJ2nl0GRqPSGek+PrC0m9U9ARMa8dN7juSB3wi1URroknbVJatW44OFkvO4jbOBnZhCfyT/RXu7RF1Ac+PxF+DRD3Vk6SQ7q5OTNqfHNZWX/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706952413; c=relaxed/simple; bh=ewc2+RS8n9r8I32AbwlyRDrV0xZI3DKnyzUgCv3YY8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kApuVidN68/F9HEs6KGqC880wiAx9ZIp6+XgDV31dmHeTED7lYmZ8g95UYwDXubDgmYYJG727/anADstE2vhY+owIviiReBhsqW64J9xRM0GvJAv3LNlJs6nPuAPEdjGoHZ0/ROAHhfmlLK9r/Ilax8vks1cASLJP55YBRu9/Ao= 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=mR4HGdrS; arc=none smtp.client-ip=192.55.52.88 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=1706952411; x=1738488411; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ewc2+RS8n9r8I32AbwlyRDrV0xZI3DKnyzUgCv3YY8Q=; b=mR4HGdrSyY9J6WGi3fQArYdZ5HrPQbYe3x976vcQRoQYcaZPaGtlMPrs c6RXhSI1UobaQDNfHZPKhDa5+TuTg/tfW6C+i8jHPPgJCTSlU10NF0FdN cQzpuweBnH2kaAbWhOBAYm+2l8AxcZ5C9jRl6Ay6hkhAWxZQLwJ17mFKn 0327ycc6PGIVfzd8QW3Dq0Xv8cZUi7mPgH4L61U2WCATrkTx81F8oXkzL TYr/c9WwqkzPNLM4ChR+yB1DpwWQqhZBhxrQVCSbdUwEJuhn6oT2b1vES ctIVMUU7VslhcZ0qAGXcn8xt28vrIYLnK7iPeyP3/7fO/5V3QQFHQ9mti Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="435443636" X-IronPort-AV: E=Sophos;i="6.05,240,1701158400"; d="scan'208";a="435443636" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2024 01:26:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="908819844" X-IronPort-AV: E=Sophos;i="6.05,240,1701158400"; d="scan'208";a="908819844" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 03 Feb 2024 01:26:48 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id DDDB18C7; Fri, 2 Feb 2024 17:47:50 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-kernel@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org>, John Garry <john.garry@huawei.com>, Wei Xu <xuwei5@hisilicon.com>, Gabriele Paoloni <gabriele.paoloni@huawei.com>, Zhichang Yuan <yuanzhichang@hisilicon.com> Subject: [resend, PATCH v1 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition Date: Fri, 2 Feb 2024 17:45:59 +0200 Message-ID: <20240202154744.473467-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779918740014176723 X-GMAIL-MSGID: 1789869351805629759 |
Series |
[resend,v1,1/1] logic_pio: Use RESOURCE_SIZE_MAX definition
|
|
Commit Message
Andy Shevchenko
Feb. 2, 2024, 3:45 p.m. UTC
Use a predefined limit instead of hardcoding it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v1: resent with the main contributrs in the Cc list
Initial contribution was here more than a few months ago:
https://lore.kernel.org/r/20230911224500.16677-1-andriy.shevchenko@linux.intel.com
followed by
20231016132611.1201402-1-andriy.shevchenko@linux.intel.com
lib/logic_pio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 2ea564a40064..1cab23e4f856 100644 --- a/lib/logic_pio.c +++ b/lib/logic_pio.c @@ -175,7 +175,7 @@ resource_size_t logic_pio_to_hwaddr(unsigned long pio) if (range) return range->hw_start + pio - range->io_start; - return (resource_size_t)~0; + return RESOURCE_SIZE_MAX; } /**