anitazha / rpms / ndctl

Forked from rpms/ndctl a year ago
Clone

Blame SOURCES/0190-cxl-port-Consolidate-the-debug-option-in-cxl-port-ma.patch

e0018b
From a951e6ddaec82dc0c33fb4e665e20f8fe4ce9caf Mon Sep 17 00:00:00 2001
e0018b
From: Vishal Verma <vishal.l.verma@intel.com>
e0018b
Date: Mon, 15 Aug 2022 13:22:05 -0600
e0018b
Subject: [PATCH 190/217] cxl/port: Consolidate the debug option in cxl-port
e0018b
 man pages
e0018b
e0018b
In preparation for additional commands that implement the --debug
e0018b
option, consolidate the option description from the cxl-port man pages
e0018b
into an include.
e0018b
e0018b
The port man pages also mentioned the debug option requiring a build
e0018b
with debug enabled, which wasn't true - so remove that part.
e0018b
e0018b
Link: https://lore.kernel.org/r/20220815192214.545800-3-vishal.l.verma@intel.com
e0018b
Cc: Dan Williams <dan.j.williams@intel.com>
e0018b
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
e0018b
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
e0018b
---
e0018b
 Documentation/cxl/cxl-disable-port.txt | 5 +----
e0018b
 Documentation/cxl/cxl-enable-port.txt  | 5 +----
e0018b
 Documentation/cxl/debug-option.txt     | 4 ++++
e0018b
 Documentation/cxl/meson.build          | 1 +
e0018b
 4 files changed, 7 insertions(+), 8 deletions(-)
e0018b
 create mode 100644 Documentation/cxl/debug-option.txt
e0018b
e0018b
diff --git a/Documentation/cxl/cxl-disable-port.txt b/Documentation/cxl/cxl-disable-port.txt
e0018b
index ac56f20..7a22efc 100644
e0018b
--- a/Documentation/cxl/cxl-disable-port.txt
e0018b
+++ b/Documentation/cxl/cxl-disable-port.txt
e0018b
@@ -30,10 +30,7 @@ OPTIONS
e0018b
 	firmware and disabling an active device is akin to force removing memory
e0018b
 	from a running system.
e0018b
 
e0018b
---debug::
e0018b
-	If the cxl tool was built with debug disabled, turn on debug
e0018b
-	messages.
e0018b
-
e0018b
+include::debug-option.txt[]
e0018b
 
e0018b
 include::../copyright.txt[]
e0018b
 
e0018b
diff --git a/Documentation/cxl/cxl-enable-port.txt b/Documentation/cxl/cxl-enable-port.txt
e0018b
index 9a37cef..50b53d1 100644
e0018b
--- a/Documentation/cxl/cxl-enable-port.txt
e0018b
+++ b/Documentation/cxl/cxl-enable-port.txt
e0018b
@@ -31,10 +31,7 @@ OPTIONS
e0018b
 	memdev is only enabled after all CXL ports in its device topology
e0018b
 	ancestry are enabled.
e0018b
 
e0018b
---debug::
e0018b
-	If the cxl tool was built with debug enabled, turn on debug
e0018b
-	messages.
e0018b
-
e0018b
+include::debug-option.txt[]
e0018b
 
e0018b
 include::../copyright.txt[]
e0018b
 
e0018b
diff --git a/Documentation/cxl/debug-option.txt b/Documentation/cxl/debug-option.txt
e0018b
new file mode 100644
e0018b
index 0000000..70b922f
e0018b
--- /dev/null
e0018b
+++ b/Documentation/cxl/debug-option.txt
e0018b
@@ -0,0 +1,4 @@
e0018b
+// SPDX-License-Identifier: GPL-2.0
e0018b
+
e0018b
+--debug::
e0018b
+	Turn on additional debug messages including library debug.
e0018b
diff --git a/Documentation/cxl/meson.build b/Documentation/cxl/meson.build
e0018b
index d019dfc..423be90 100644
e0018b
--- a/Documentation/cxl/meson.build
e0018b
+++ b/Documentation/cxl/meson.build
e0018b
@@ -22,6 +22,7 @@ filedeps = [
e0018b
   '../copyright.txt',
e0018b
   'memdev-option.txt',
e0018b
   'labels-options.txt',
e0018b
+  'debug-option.txt',
e0018b
 ]
e0018b
 
e0018b
 cxl_manpages = [
e0018b
-- 
e0018b
2.27.0
e0018b