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

Fabio M. De Francesco posted 2 patches 2 years ago
There is a newer version of this series
drivers/cxl/core/region.c | 16 ++++------------
include/linux/cleanup.h   | 14 ++++++++++++++
2 files changed, 18 insertions(+), 12 deletions(-)
[PATCH 0/2] Add cond_guard() to conditional guards
Posted by Fabio M. De Francesco 2 years ago
Add cond_guard() macro to conditional guards and use it to replace an
open-coded up_read() in show_targetN().

Cc: Peter Zijlstra <peterz@infradead.org>
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Suggested-by: Ira Weiny <ira.weiny@intel.com>

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
Re: [PATCH 0/2] Add cond_guard() to conditional guards
Posted by Jonathan Cameron 2 years ago
On Sun,  4 Feb 2024 18:31:03 +0100
"Fabio M. De Francesco" <fabio.maria.de.francesco@linux.intel.com> 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@infradead.org>
> Suggested-by: Dan Williams <dan.j.williams@intel.com>
> Suggested-by: Ira Weiny <ira.weiny@intel.com>

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