3
votes

I am developing drivers for my embedded device that has linux kernel version 2.6.32. In driver code, I am including linux/modules.h but on compiling, It gives me error linux/bounds.h not found.

I have downloaded kernel source from linux git repository. I have checked path settings. They are ok.

I checked my kernel source, there is no bounds.h file. So why my driver is expecting that. Error is coming due to including modules.h.

1
Are you talking about this file? lxr.free-electrons.com/source/include/linux/module.h - Yaron
yes, but I can't find it in my source code. - saurabh agarwal
I did run find . -name "bounds.h" on root directory. No hit. - saurabh agarwal
Did you run make prepare? - Yaron
yeah, just got it. I did run make and its working. - saurabh agarwal

1 Answers

1
votes

First, I need to run make command, so that it can generate and link all necessary files.