Skip to contentSkip to conversation

cxl/json: remove prefix from tracefs.h #include

PATCH Applied [email protected] 3 participants 4 messages Feb 9, 2025 – Mar 3, 2025 libnvdimm: non-volatile memory device

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 cxl/json: remove prefix from tracefs.h #include

From: Michal Suchanek <[email protected]>

Distros vary on whether tracefs.h is placed in {prefix}/libtracefs/ or {prefix}/tracefs/. Since the library ships with pkgconfig info to determine the exact include path the #include statement can drop the tracefs/ prefix.

This was previously found and fixed elsewhere:
a59866328ec5 ("cxl/monitor: fix include paths for tracefs and traceevent") but was introduced anew with cxl media-error support in ndctl v80.

Reposted here from github pull request:
https://github.com/pmem/ndctl/pull/268/

[ alison: commit msg and log edits ]

Fixes 9873123fce03 ("cxl/list: collect and parse media_error records")
---
 cxl/json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cxl/json.c +1 -1
index 5066d3bed13f..e65bd803b706 100644
@@ -9,7 +9,7 @@
 #include <json-c/json.h>
 #include <json-c/printbuf.h>
 #include <ccan/short_types/short_types.h>
-#include <tracefs/tracefs.h>
+#include <tracefs.h>
 
 #include "filter.h"
 #include "json.h"

base-commit: 04815e5f8b87e02a4fb5a61aeebaa5cad25a15c3

Signature · 1 line
2.37.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · On 2025-02-09 10:03, [email protected] wrote:

From: Michal Suchanek <[email protected]>

Distros vary on whether tracefs.h is placed in {prefix}/libtracefs/ or {prefix}/tracefs/. Since the library ships with pkgconfig info to determine the exact include path the #include statement can drop the tracefs/ prefix.

This was previously found and fixed elsewhere:
a59866328ec5 ("cxl/monitor: fix include paths for tracefs and traceevent") but was introduced anew with cxl media-error support in ndctl v80.

Reposted here from github pull request:
https://github.com/pmem/ndctl/pull/268/

Quoted 8 lines

[ alison: commit msg and log edits ]

Fixes 9873123fce03 ("cxl/list: collect and parse media_error records")
---
 cxl/json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
cxl/json.c +1 -1
index 5066d3bed13f..e65bd803b706 100644
@@ -9,7 +9,7 @@
 #include <json-c/json.h>
 #include <json-c/printbuf.h>
 #include <ccan/short_types/short_types.h>
-#include <tracefs/tracefs.h>
+#include <tracefs.h>
 
 #include "filter.h"
 #include "json.h"

base-commit: 04815e5f8b87e02a4fb5a61aeebaa5cad25a15c3

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 11 lines · On 2/9/25 11:03 AM, [email protected] wrote:

From: Michal Suchanek <[email protected]>

Distros vary on whether tracefs.h is placed in {prefix}/libtracefs/ or {prefix}/tracefs/. Since the library ships with pkgconfig info to determine the exact include path the #include statement can drop the tracefs/ prefix.

This was previously found and fixed elsewhere:
a59866328ec5 ("cxl/monitor: fix include paths for tracefs and traceevent") but was introduced anew with cxl media-error support in ndctl v80.

Quoted 8 lines

Reposted here from github pull request:
https://github.com/pmem/ndctl/pull/268/

[ alison: commit msg and log edits ]

Fixes 9873123fce03 ("cxl/list: collect and parse media_error records")
Quoted 19 lines
---
 cxl/json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cxl/json.c +1 -1
index 5066d3bed13f..e65bd803b706 100644
@@ -9,7 +9,7 @@
 #include <json-c/json.h>
 #include <json-c/printbuf.h>
 #include <ccan/short_types/short_types.h>
-#include <tracefs/tracefs.h>
+#include <tracefs.h>
 
 #include "filter.h"
 #include "json.h"

base-commit: 04815e5f8b87e02a4fb5a61aeebaa5cad25a15c3

author maintainer Applied
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Sun, Feb 09, 2025 at 10:03:46AM -0800, [email protected] wrote:

From: Michal Suchanek <[email protected]>

Distros vary on whether tracefs.h is placed in {prefix}/libtracefs/ or {prefix}/tracefs/. Since the library ships with pkgconfig info to determine the exact include path the #include statement can drop the tracefs/ prefix.

This was previously found and fixed elsewhere:
a59866328ec5 ("cxl/monitor: fix include paths for tracefs and traceevent") but was introduced anew with cxl media-error support in ndctl v80.

Quoted 8 lines

Reposted here from github pull request:
https://github.com/pmem/ndctl/pull/268/

[ alison: commit msg and log edits ]

Fixes 9873123fce03 ("cxl/list: collect and parse media_error records")

Merged to https://github.com/pmem/ndctl/commits/pending/

snip

Quoted 1 line