Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1986689rdb; Sun, 4 Feb 2024 09:31:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxx+h822TLJq5UaHvQnorV/+qLg8/ixDaFdzmFRA+LFleXUb1SziYY0AZsnZc5EyV2Ag14 X-Received: by 2002:a9d:4f19:0:b0:6e1:e9d:54b1 with SMTP id d25-20020a9d4f19000000b006e10e9d54b1mr8043915otl.30.1707067889520; Sun, 04 Feb 2024 09:31:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707067889; cv=pass; d=google.com; s=arc-20160816; b=pTAmapBn9GBHpItNkR9YLiDQQ2dffWf3y8N64+12AM34Difnx0BivU9pvxaOP3FMPa BGtaw7IRndWhsIMf5MaDbhNg8edzH7hrOWX06BKf2tNK38xvBtGl5lz3XvYHpX2DZStu nVEoW68wwM7jv1so3TAyFgWlENUxMNZjkMiORl6uWmsd7YF1TkgMFmhr5G65IYPmtzhh VB+enRzo8XgjUyHHTlhkCYRoYnPuNYAmjAzd+/lZP+UXaNHkCfzFPgacaPV0bYse/LZF hfvFE56G1ieksshsdKMBYSHY/ZNlPwd5EQyo9kHn58UbvXmdOrVHpitAk4SdywlGr7JI UV8A== 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=H8A8mkMXIeg4pN9Qg3sM6CIXQyKa9cAcrXeNGwV/Dh4=; fh=8WHSUjpFVOwdVCj3fOUS0Qnd+cpZVDCrwPEFdKmwsxY=; b=U1qtoKQt8gPOrZ32qHLeNv9ULn4VBwgW59k1EN1KqTi9QSuqTqrvkaYvYB1qydMEQp 0PFJVmHajXc/kUH4/lftitqG1kFtS5vGirdwKElm1n/VS7P8pkC/qZozMld86InOKR2H w9oV8gbxbZkc/YJCQtv2aJAncfT11qYFBEq3NMfeV/WZmVV6R8T+S8f36S7UuqoxPnyq 3PvQLgGznrzIPvVJsHwZZqBEUL00tmUkI2ArOZWmFuz0Inh2l30stDvGjInqBVEFpU9f L/kciPPv2u2EtUCrpPoP9zps1zJ9nhcWuFi1mmsHdOCHp30PzuCRNFJCqeJcUqQ62mh0 hxAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kpm1xIib; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51827-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; AJvYcCVB/+nJSDgtNAHb4MNUmsrz++HSANzPQvgZpUfpqxmRb9BjGeNMwX2siP9wT93zU+Y2+qtjxILoqzLjL4XP5wlG25Kr74dMNMch7GtbEA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d15-20020a05622a05cf00b0042a9b659e1fsi6689681qtb.773.2024.02.04.09.31.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 09:31:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kpm1xIib; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51827-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 316291C2169E for ; Sun, 4 Feb 2024 17:31:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AE93249F4; Sun, 4 Feb 2024 17:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kpm1xIib" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 EB0C02421F; Sun, 4 Feb 2024 17:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707067877; cv=none; b=mMmjt1c39wnguvEXMBruTju+8zYZ8aWn0rhDcHX5Q1u86e/qiN1euWNaKH2owgAtm+AU4x+b4YPQm9IHitInpVyof2hgPeR+VXxpTFLPPKmKtbj4aSEprpySFJU3KLclEndZzuNUwo6DEH1YwMw8G7qbR5sx+5yZ3tWWb92+Gs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707067877; c=relaxed/simple; bh=SBchobUhFlbRKL9roZ8rvHypMRkQnDLsR7JiDyykqDo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DKvc2tf67oYkg1PRIMNcTsH+b9cKvsB+5a/6HJaGXmxoe6vtpsWUVOOea8/FHnmDsJQ84wKxx+w2UOyKQgEZg8BKWctZQJhkv5qFkbCFlrK2yKF0Ebd+kijxTIAimhPA3EUQ39bjj6Zl/AnynyJQ+OVwyYlJXVsbgIOFhUnsZQU= 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=kpm1xIib; arc=none smtp.client-ip=198.175.65.14 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=1707067876; x=1738603876; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SBchobUhFlbRKL9roZ8rvHypMRkQnDLsR7JiDyykqDo=; b=kpm1xIibuPXgHvc8fGrjbC4Nd9ccebJKExdGP/XjMwr+Sh5KXlWjIWRa pIcHtopk+h3tWUgtOio4f2oklNjaBdZza2gIqnoaVTe4olLRy5fOz4HG1 seRR6kJaKfFSlTE4sjatcSxICnuH0k/uT6aXxd5ux7rY0uupgsswUMLCE FvlACq/AA20o+n7uUb2q1+tshknHUL3Rc5FpVohON4jn4PG1d2GKc3kn9 5EAs4lS6docGBj0O+N3IHgkg01YP//ReZR2QfJUdqtKZzveYZKCIk22ge LE4YNTuE52j66DlmmUD+lXaC2u0JcJ2L1ZNrdT+tAGJPHIrIobnn3TWCy A==; X-IronPort-AV: E=McAfee;i="6600,9927,10973"; a="4225899" X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="4225899" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2024 09:31:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="31626380" Received: from fdefranc-mobl3.ger.corp.intel.com (HELO fdefranc-mobl3.intel.com) ([10.213.2.137]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2024 09:31:12 -0800 From: "Fabio M. De Francesco" To: Peter Zijlstra , Dan Williams , linux-kernel@vger.kernel.org Cc: Ingo Molnar , linux-cxl@vger.kernel.org, "Fabio M. De Francesco" , Ira Weiny Subject: [PATCH 0/2] Add cond_guard() to conditional guards Date: Sun, 4 Feb 2024 18:31:03 +0100 Message-ID: <20240204173105.935612-1-fabio.maria.de.francesco@linux.intel.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.43.0