* [PATCH] lightnvm: pblk: fix TRACE_INCLUDE_PATH
@ 2019-01-25 7:23 Masahiro Yamada
2019-01-25 8:01 ` Hans Holmberg
0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2019-01-25 7:23 UTC (permalink / raw)
To: Matias Bjorling, linux-block, Jens Axboe; +Cc: Masahiro Yamada, linux-kernel
As the comment block in include/trace/define_trace.h says,
TRACE_INCLUDE_PATH should be a relative path to the define_trace.h
../../drivers/lightnvm is the correct relative path.
../../../drivers/lightnvm is working by coincidence because the top
Makefile adds -I$(srctree)/arch/$(SRCARCH)/include as a header
search path, but we should not rely on it.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
drivers/lightnvm/pblk-trace.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/lightnvm/pblk-trace.h b/drivers/lightnvm/pblk-trace.h
index 679e5c45..9534503 100644
--- a/drivers/lightnvm/pblk-trace.h
+++ b/drivers/lightnvm/pblk-trace.h
@@ -139,7 +139,7 @@ TRACE_EVENT(pblk_state,
/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH ../../../drivers/lightnvm
+#define TRACE_INCLUDE_PATH ../../drivers/lightnvm
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE pblk-trace
#include <trace/define_trace.h>
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lightnvm: pblk: fix TRACE_INCLUDE_PATH
2019-01-25 7:23 [PATCH] lightnvm: pblk: fix TRACE_INCLUDE_PATH Masahiro Yamada
@ 2019-01-25 8:01 ` Hans Holmberg
2019-01-25 8:17 ` Matias Bjørling
0 siblings, 1 reply; 3+ messages in thread
From: Hans Holmberg @ 2019-01-25 8:01 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Matias Bjorling, linux-block, Jens Axboe, Linux Kernel Mailing List
On Fri, Jan 25, 2019 at 8:35 AM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>
> As the comment block in include/trace/define_trace.h says,
> TRACE_INCLUDE_PATH should be a relative path to the define_trace.h
>
> ../../drivers/lightnvm is the correct relative path.
>
> ../../../drivers/lightnvm is working by coincidence because the top
> Makefile adds -I$(srctree)/arch/$(SRCARCH)/include as a header
> search path, but we should not rely on it.
Nice catch, thanks!
Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> drivers/lightnvm/pblk-trace.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/lightnvm/pblk-trace.h b/drivers/lightnvm/pblk-trace.h
> index 679e5c45..9534503 100644
> --- a/drivers/lightnvm/pblk-trace.h
> +++ b/drivers/lightnvm/pblk-trace.h
> @@ -139,7 +139,7 @@ TRACE_EVENT(pblk_state,
> /* This part must be outside protection */
>
> #undef TRACE_INCLUDE_PATH
> -#define TRACE_INCLUDE_PATH ../../../drivers/lightnvm
> +#define TRACE_INCLUDE_PATH ../../drivers/lightnvm
> #undef TRACE_INCLUDE_FILE
> #define TRACE_INCLUDE_FILE pblk-trace
> #include <trace/define_trace.h>
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lightnvm: pblk: fix TRACE_INCLUDE_PATH
2019-01-25 8:01 ` Hans Holmberg
@ 2019-01-25 8:17 ` Matias Bjørling
0 siblings, 0 replies; 3+ messages in thread
From: Matias Bjørling @ 2019-01-25 8:17 UTC (permalink / raw)
To: Hans Holmberg, Masahiro Yamada
Cc: linux-block, Jens Axboe, Linux Kernel Mailing List
On 1/25/19 9:01 AM, Hans Holmberg wrote:
> On Fri, Jan 25, 2019 at 8:35 AM Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
>>
>> As the comment block in include/trace/define_trace.h says,
>> TRACE_INCLUDE_PATH should be a relative path to the define_trace.h
>>
>> ../../drivers/lightnvm is the correct relative path.
>>
>> ../../../drivers/lightnvm is working by coincidence because the top
>> Makefile adds -I$(srctree)/arch/$(SRCARCH)/include as a header
>> search path, but we should not rely on it.
>
> Nice catch, thanks!
>
> Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
>
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>
>> drivers/lightnvm/pblk-trace.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/lightnvm/pblk-trace.h b/drivers/lightnvm/pblk-trace.h
>> index 679e5c45..9534503 100644
>> --- a/drivers/lightnvm/pblk-trace.h
>> +++ b/drivers/lightnvm/pblk-trace.h
>> @@ -139,7 +139,7 @@ TRACE_EVENT(pblk_state,
>> /* This part must be outside protection */
>>
>> #undef TRACE_INCLUDE_PATH
>> -#define TRACE_INCLUDE_PATH ../../../drivers/lightnvm
>> +#define TRACE_INCLUDE_PATH ../../drivers/lightnvm
>> #undef TRACE_INCLUDE_FILE
>> #define TRACE_INCLUDE_FILE pblk-trace
>> #include <trace/define_trace.h>
>> --
>> 2.7.4
>>
Thanks Masahiro-san. Applied for 5.1.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-25 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25 7:23 [PATCH] lightnvm: pblk: fix TRACE_INCLUDE_PATH Masahiro Yamada
2019-01-25 8:01 ` Hans Holmberg
2019-01-25 8:17 ` Matias Bjørling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®