radeonfb: prevent spurious recompilations
PATCH 1/1 radeonfb: prevent spurious recompilations
Hi Ben, all,
I'm doing frequent changes to the i2c header files, and noticed that the radeonfb driver was recompiled each time I do, although I did not include the I2C/DDC support. This is due to i2c header files being included when they are not needed. Here is a patch fixing the problem. Please consider applying it.
Thanks.
Prevent spurious recompilations of the radeonfb driver when I2C/DDC support is not included and i2c header files are modified.
drivers/video/aty/radeon_base.c | 1 - drivers/video/aty/radeonfb.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/aty/radeon_base.c +0 -1
@@ -69,7 +69,6 @@#include <linux/pci.h> #include <linux/vmalloc.h> #include <linux/device.h> -#include <linux/i2c.h> #include <asm/io.h> #include <asm/uaccess.h>
drivers/video/aty/radeonfb.h +2 -1
@@ -10,9 +10,10 @@#include <linux/fb.h> +#ifdef CONFIG_FB_RADEON_I2C #include <linux/i2c.h> -#include <linux/i2c-id.h> #include <linux/i2c-algo-bit.h> +#endif #include <asm/io.h>
Signature · 7 lines
Jean Delvare ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 7 lines · Jean Delvare
Hi Ben, all,
I'm doing frequent changes to the i2c header files, and noticed that the radeonfb driver was recompiled each time I do, although I did not include the I2C/DDC support. This is due to i2c header files being included when they are not needed. Here is a patch fixing the problem. Please consider applying it.
I generally quite dislike such #ifdef clutter ...
Ben.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Hi Ben,
Quoted 5 lines · On 2005-10-11 Jean Delvare wrote:
Quoted 5 lines
I'm doing frequent changes to the i2c header files, and noticed that the radeonfb driver was recompiled each time I do, although I did not include the I2C/DDC support. This is due to i2c header files being included when they are not needed. Here is a patch fixing the problem. Please consider applying it.
Quoted 1 line · Benjamin Herrenschmidt
I generally quite dislike such #ifdef clutter ...
#ifdef CONFIG_FB_RADEON_I2C is already used 12 times in the radeonfb driver, I don't think one more time will really make a difference.
Or do you have a different fix for my problem, that you would prefer?
Thanks,
--
Jean Delvare
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Quoted 3 lines
#ifdef
CONFIG_FB_RADEON_I2Cis already used 12 times in the radeonfb driver, I don't think one more time will really make a difference.
Yah, that sucks, I should fix that
Quoted 1 line
Or do you have a different fix for my problem, that you would prefer?
Nah, just submit that patch for now, I'll do a better fix later
Ben.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
Hi Ben,
Quoted 1 line · Benjamin Herrenschmidt
Nah, just submit that patch for now, I'll do a better fix later
Submit to whom? I thought you were the right person (and the linux-fbdev-devel list the right place) to submit it to.
Thanks,
--
Jean Delvare
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl