Some kernel compilation issues.
Vxer-Lee opened this issue · 2 comments
Vxer-Lee commented
Hello:
I want to add some demo for reading and writing files in mymod.c, such as filp_open and kernel_read_file. I used the./build/build.sh file in your document and found an error: "ERROR: modpost: "kernel_read_file" [../google-modules/mymod/mymod.ko] undefined!" 。
I don't have any driver development decompression, thank you!
polygraphene commented
Try to add this if didn't.
#include <linux/kernel_read_file.h>
Vxer-Lee commented
Thank you very much!