scsi: ufs-mediatek: use correct path to fix compiling error
Subsystems (2)
cover scsi: ufs-mediatek: use correct path to fix compiling error
This patch is based on the latest linux-next code. So the Fixes commit-id maybe changed when it merged int v5.11-rc1.
Zhen Lei (1):
scsi: ufs-mediatek: use correct path to fix compiling error
drivers/scsi/ufs/ufs-mediatek-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 8 lines
2.26.0.106.g9fadedd _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 1/1 scsi: ufs-mediatek: use correct path to fix compiling error
When the kernel is compiled with allmodconfig, the following error is
reported:
In file included from drivers/scsi/ufs/ufs-mediatek-trace.h:36:0,
from drivers/scsi/ufs/ufs-mediatek.c:28:./include/trace/define_trace.h:95:42: fatal error: ./ufs-mediatek-trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
The comment in include/trace/define_trace.h specifies that:TRACE_INCLUDE_PATH: Note, the path is relative to define_trace.h, not the file including it. Full path names for out of tree modules must be used.
So without "CFLAGS_ufs-mediatek.o := -I$(src)", the current directory "." is "include/trace/", the relative path of ufs-mediatek-trace.h is "../../drivers/scsi/ufs/".
--- drivers/scsi/ufs/ufs-mediatek-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ufs/ufs-mediatek-trace.h +1 -1
@@ -31,6 +31,6 @@ TRACE_EVENT(ufs_mtk_event,#undef TRACE_INCLUDE_PATH#undef TRACE_INCLUDE_FILE -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../drivers/scsi/ufs/ #define TRACE_INCLUDE_FILE ufs-mediatek-trace#include <trace/define_trace.h>
Signature · 8 lines
2.26.0.106.g9fadedd _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Hi Zhen,
Quoted 26 lines · Zhen Lei
When the kernel is compiled with allmodconfig, the following error is
reported:
In file included fromdrivers/scsi/ufs/ufs-mediatek-trace.h:36:0,
fromdrivers/scsi/ufs/ufs-mediatek.c:28:./include/trace/define_trace.h:95:42: fatal error: ./ufs-mediatek-trace.h: No such file or directory
#includeTRACE_INCLUDE(TRACE_INCLUDE_FILE)The comment in
include/trace/define_trace.hspecifies that:TRACE_INCLUDE_PATH: Note, the path is relative todefine_trace.h, not the file including it. Full path names for out of tree modules must be used.So without "CFLAGS_ufs-mediatek.o := -I$(src)", the current directory "." is "
include/trace/", the relative path ofufs-mediatek-trace.his "../../drivers/scsi/ufs/".Fixes ca1bb061d644 ("scsi: ufs-mediatek: Introduce event_notify implementation")Signed-off-by Zhen Lei <[email protected]>--- drivers/scsi/ufs/ufs-mediatek-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/ufs/ufs-mediatek-trace.h +0
-0
drivers/scsi/ufs/ufs-mediatek-trace.h TRACE_EVENT(ufs_mtk_event, · line 36
Quoted 7 lines
drivers/scsi/ufs/ufs-mediatek-trace.h +1
-1@@ -31,6 +31,6 @@ TRACE_EVENT(ufs_mtk_event,#undef TRACE_INCLUDE_PATH#undef TRACE_INCLUDE_FILE -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../drivers/scsi/ufs/ #define TRACE_INCLUDE_FILE ufs-mediatek-trace#include <trace/define_trace.h>
Thanks for this fix.
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Martin K. Petersen
AppliedZhen,
Quoted 3 lines
So without "CFLAGS_ufs-mediatek.o := -I$(src)", the current directory "." is "
include/trace/", the relative path ofufs-mediatek-trace.his "../../drivers/scsi/ufs/".
Applied to 5.11/scsi-staging, thanks!
Signature · 6 lines
Martin K. Petersen Oracle Linux Engineering _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek