All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include
@ 2025-02-09 18:03 alison.schofield
  2025-02-11 17:14 ` Marc Herbert
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: alison.schofield @ 2025-02-09 18:03 UTC (permalink / raw)
  To: nvdimm; +Cc: Michal Suchanek, Alison Schofield

From: Michal Suchanek <msuchanek@suse.de>

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")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
---
 cxl/json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cxl/json.c b/cxl/json.c
index 5066d3bed13f..e65bd803b706 100644
--- a/cxl/json.c
+++ b/cxl/json.c
@@ -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
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include
  2025-02-09 18:03 [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include alison.schofield
@ 2025-02-11 17:14 ` Marc Herbert
  2025-02-12 16:11 ` Dave Jiang
  2025-03-03 19:59 ` Alison Schofield
  2 siblings, 0 replies; 4+ messages in thread
From: Marc Herbert @ 2025-02-11 17:14 UTC (permalink / raw)
  To: alison.schofield, nvdimm; +Cc: Michal Suchanek

On 2025-02-09 10:03, alison.schofield@intel.com wrote:
> From: Michal Suchanek <msuchanek@suse.de>
> 
> 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")
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>
> ---
>  cxl/json.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Marc Herbert <marc.herbert@intel.com>
 
> diff --git a/cxl/json.c b/cxl/json.c
> index 5066d3bed13f..e65bd803b706 100644
> --- a/cxl/json.c
> +++ b/cxl/json.c
> @@ -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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include
  2025-02-09 18:03 [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include alison.schofield
  2025-02-11 17:14 ` Marc Herbert
@ 2025-02-12 16:11 ` Dave Jiang
  2025-03-03 19:59 ` Alison Schofield
  2 siblings, 0 replies; 4+ messages in thread
From: Dave Jiang @ 2025-02-12 16:11 UTC (permalink / raw)
  To: alison.schofield, nvdimm; +Cc: Michal Suchanek



On 2/9/25 11:03 AM, alison.schofield@intel.com wrote:
> From: Michal Suchanek <msuchanek@suse.de>
> 
> 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")
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>

Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> ---
>  cxl/json.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cxl/json.c b/cxl/json.c
> index 5066d3bed13f..e65bd803b706 100644
> --- a/cxl/json.c
> +++ b/cxl/json.c
> @@ -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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include
  2025-02-09 18:03 [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include alison.schofield
  2025-02-11 17:14 ` Marc Herbert
  2025-02-12 16:11 ` Dave Jiang
@ 2025-03-03 19:59 ` Alison Schofield
  2 siblings, 0 replies; 4+ messages in thread
From: Alison Schofield @ 2025-03-03 19:59 UTC (permalink / raw)
  To: nvdimm; +Cc: Michal Suchanek

On Sun, Feb 09, 2025 at 10:03:46AM -0800, alison.schofield@intel.com wrote:
> From: Michal Suchanek <msuchanek@suse.de>
> 
> 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")
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>

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

snip
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-03 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-09 18:03 [ndctl PATCH] cxl/json: remove prefix from tracefs.h #include alison.schofield
2025-02-11 17:14 ` Marc Herbert
2025-02-12 16:11 ` Dave Jiang
2025-03-03 19:59 ` Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.