login
Header Space

 
 

Re: [patch] video: build fix for drivers/media/video/mt9v022.c

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Guennadi Liakhovetski <g.liakhovetski@...>
Cc: <linux-kernel@...>, Mauro Carvalho Chehab <mchehab@...>, Jean Delvare <khali@...>
Date: Saturday, May 3, 2008 - 1:58 pm

* Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote:


No. If you look at the core kernel you wont see it sprinkled with things 
like:

 #ifdef CONFIG_LOCKDEP
 #include <linux/lockdep.h>
 #endif

why? Because we have put all such things into the include file 
themselves and do not want to sprinkle .c files with ugly #ifdefs. This 
is a basic cleanliness issue.

Furthermore, if anyone _else_ copy & pastes your driver, this bug wont 
hit him anymore.

so please keep that #include <linux/gpio.h>.

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch] video: build fix for drivers/media/video/mt9v022.c, Guennadi Liakhovetski, (Mon May 5, 10:17 am)
Re: [patch] video: build fix for drivers/media/video/mt9v022.c, Guennadi Liakhovetski, (Sat May 3, 1:02 pm)
Re: [patch] video: build fix for drivers/media/video/mt9v022.c, Ingo Molnar, (Sat May 3, 1:58 pm)
Re: [patch] video: build fix for drivers/media/video/mt9v022.c, Guennadi Liakhovetski, (Sat May 3, 2:15 pm)
speck-geostationary