Try to compile nv_backlight.c gets an compilation error!
Hello,
I try to use the checkpatch.pl script on drivers/nvidia/nv_backlight.c but before this I tried to compile the code with make nv_backlight.o I get the following error:
nv_backlight.c:12:29: fatal error: linux/backlight.h: No such file or directory
compilation terminated.
The backlight.h file does not exist. What to do?
A message that is not in the archive (sent off-list or not yet received): 201011031249.15609.sirtimid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 6 lines · On Wed, 3 Nov 2010 12:49:15 +0200 Dimitris Orfanos wrote:
Hello,
I try to use the checkpatch.pl script on
drivers/nvidia/nv_backlight.cbut before this I tried to compile the code with make nv_backlight.o I get the following error:
Quoted 6 lines
nv_backlight.c:12:29: fatal error:
linux/backlight.h: No such file or directory
compilation terminated.The
backlight.hfile does not exist. What to do?
--
The file include/linux/backlight.h does indeed exist in my kernel trees.
What kernel version are you using? Could it be corrupted?
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***