Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2319428rdb; Mon, 5 Feb 2024 02:56:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Zal6TsTcX6vIL1MoUAmgNlF2BGgQhfwoOINPSnyVLXaFexfegN/OSEyv9SI39iUeeNd9 X-Received: by 2002:a17:902:d2d1:b0:1d9:6009:c23d with SMTP id n17-20020a170902d2d100b001d96009c23dmr12304100plc.54.1707130597359; Mon, 05 Feb 2024 02:56:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707130597; cv=pass; d=google.com; s=arc-20160816; b=E5mKShMepGWLJceWf0D4AnRBFBvCFIuWj3wgtMBP6dp7qEIyQcpdQByKNCc/jZK/42 QAeORA1Z8aOfePt7PNgbAFrnjgR/MhYIlIbmZymL0d4TrAH9aXbaFC1KoaHxmITJxo66 Wa88UzOCW85isvimGyxsrY4q57X8YClyjcGODFFHyef3aNfYoeniWXdXGIXCQg8gIFsp 1jV3d5u8JnfwlbtH0HQSKWjIUDr65V9fcljiBQDp3jGFsJNIAnRx+qJr/49Su4+QhMwi HukB6AynJ/B9dZVcAYk0B/u3HjaoCf6rEsPtaEKKxvVpvQKhCSptdFm5ilqAvVz791NW Q4eA== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=BXb7p8+QGJSgP1YVDtEL+WyzgRKhlEt72KCZsaoxaHA=; fh=0jQxbl7T07+q4h1+5gRAmDli52k+IqeTFt344GJa/qg=; b=ZguaCyUmThyeUts9tFgdM4MBRHPzz3XdpQ4sW7i40cvHSNWcqkDjj28S22sY3skCv2 gRZl2bePBe9xgieDfa/lSVSwUbDiBMmEb1QAghEeGZBW4D4pLmue+S0ZqUzAYFGMUnVz iRnRCYQe/LpPVmNWb1qwJa3toOKx7FKywd2eHgfljkT7UIHNp/SNKH3C10cS+YF2NE54 765HKjHd44yKzFdbgmN3wMhZdLiJaML7U5oINnKAD+ccbJf/XL49Izovf4zA4492bKuK Rjr5/eNRb1wpzjAWg/3NkA97lD8xIAum0I5jGj5XBETfIO1+lDBq0qb4tbyzfRZg6Eb9 Gjow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-52440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCXevkC8VBQ3Lhe8c4s/e1jeECSJA0JlVMfQJw3QCw7Hw0xvCSbf5b3lbF2xL8xfXj0hR4/yzAcJZ8RNUfwyMGrZqvNsfpe/q4R5/RQKVw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a18-20020a170902ecd200b001d8882dd6a7si6264354plh.392.2024.02.05.02.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 02:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-52440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 A6247286B77 for ; Mon, 5 Feb 2024 10:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9369B175A6; Mon, 5 Feb 2024 10:56:12 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 C1B931758F; Mon, 5 Feb 2024 10:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707130572; cv=none; b=V5NtjQzaYDgRUhnuAYo0sWYD6epQEXpj5G8n3d2txCcyB1/YvotZ3iODImxC+oCUkVR+TZmJ/RBlhrX39P+j3ZW83YDAQe0Mnkzlm4VU3nDsEs+4GFGBJf/3WCQsnP/gRxQCRb34HzAVjYIuYLAYIsG8RGGvlb/1onz6w7SVZa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707130572; c=relaxed/simple; bh=oRvBm9nh5zhoHBy90FmSGP1rxQpWRExwh5iQCVgboqA=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BuUvsYPZ557J11XkwG7x8zRDK9HDOUvzHcAfRJMN7ajX4hT+tyBwM0eeSRad1F65jLXUUMBwsGvU61TWkoBQz4KEzbtQYycAbTNV/OmV3uMVnPucNhcQCz4qNG+tjuSZTZZZclz0qVy6+ec3pqdAa2fA9muTqext6pUSaH7Wi6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TT3BG5Pbhz6K9LR; Mon, 5 Feb 2024 18:52:54 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 48F7C140D1A; Mon, 5 Feb 2024 18:56:08 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 5 Feb 2024 10:56:07 +0000 Date: Mon, 5 Feb 2024 10:56:06 +0000 From: Jonathan Cameron To: "Fabio M. De Francesco" CC: Peter Zijlstra , Dan Williams , , Ingo Molnar , , Ira Weiny Subject: Re: [PATCH 0/2] Add cond_guard() to conditional guards Message-ID: <20240205105606.00000546@Huawei.com> In-Reply-To: <20240204173105.935612-1-fabio.maria.de.francesco@linux.intel.com> References: <20240204173105.935612-1-fabio.maria.de.francesco@linux.intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) 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-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sun, 4 Feb 2024 18:31:03 +0100 "Fabio M. De Francesco" wrote: > Add cond_guard() macro to conditional guards and use it to replace an > open-coded up_read() in show_targetN(). > > Cc: Peter Zijlstra > Suggested-by: Dan Williams > Suggested-by: Ira Weiny Change log since RFC v5? > > Fabio M. De Francesco (2): > cleanup: Add cond_guard() to conditional guards > cxl/region: Use cond_guard() in show_targetN() > > drivers/cxl/core/region.c | 16 ++++------------ > include/linux/cleanup.h | 14 ++++++++++++++ > 2 files changed, 18 insertions(+), 12 deletions(-) >