Skip to content

Commit 5213dc7

Browse files
Zhen Leimartinkpetersen
authored andcommitted
scsi: ufs-mediatek: Use correct path to fix compile 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/". Link: https://lore.kernel.org/r/[email protected] Fixes: ca1bb06 ("scsi: ufs-mediatek: Introduce event_notify implementation") Reviewed-by: Stanley Chu <[email protected]> Signed-off-by: Zhen Lei <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 8b3c803 commit 5213dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufs-mediatek-trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ TRACE_EVENT(ufs_mtk_event,
3131

3232
#undef TRACE_INCLUDE_PATH
3333
#undef TRACE_INCLUDE_FILE
34-
#define TRACE_INCLUDE_PATH .
34+
#define TRACE_INCLUDE_PATH ../../drivers/scsi/ufs/
3535
#define TRACE_INCLUDE_FILE ufs-mediatek-trace
3636
#include <trace/define_trace.h>

0 commit comments

Comments
 (0)