deal with headers with the same file name
Opened this issue · 1 comments
dtcccc commented
We may want to include some headers to boundary mod_files with the same name.
e.g.,
include/linux/bpf.h and include/uapi/linux/bpf.h
kernel/trace/bpf_trace.h and include/linux/bpf_trace.h
and they will conflict in mod/ folder.
How to deal with these kind of problems?
dtcccc commented
Could we mikdir mod/include so that the header files under include/ can appear in mod/include/linux/xxx.h (or mod/include/uapi/linux/xxx.h)
- copy include/linux/bpf.h to mod/include/linux/bpf.h and replace #include<linux/bpf.h> with #include "include/linux/bpf.h"
or - build soft link from include/linux/bpf.h to mod/include/linux/bpf.h, and no need to replace any code