Skip to contentSkip to conversation

Try to compile nv_backlight.c gets an compilation error!

DISCUSSION Dimitris Orfanos 2 participants 2 messages Nov 3, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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?

#2 lore raw
In reply to a message not in the archive
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.c but 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.h file 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 ***