Re: [PATCH 0/2] Add cond_guard() to conditional guards

From: Jonathan Cameron
Date: Mon Feb 05 2024 - 05:56:20 EST


On Sun, 4 Feb 2024 18:31:03 +0100
"Fabio M. De Francesco" <fabio.maria.de.francesco@xxxxxxxxxxxxxxx> wrote:

> Add cond_guard() macro to conditional guards and use it to replace an
> open-coded up_read() in show_targetN().
>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Suggested-by: Dan Williams <dan.j.williams@xxxxxxxxx>
> Suggested-by: Ira Weiny <ira.weiny@xxxxxxxxx>

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(-)
>