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

Message ID 20240204173105.935612-1-fabio.maria.de.francesco@linux.intel.com
Headers
Series Add cond_guard() to conditional guards |

Message

Fabio M. De Francesco Feb. 4, 2024, 5:31 p.m. UTC
  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(-)