Messages in this thread Patch in this message | | | Date | Tue, 9 Nov 2004 01:53:27 +0100 | From | Adrian Bunk <> | Subject | [3/11] zoran_driver.c: make zoran_num_formats static |
| |
zoran_num_formats was referenced from two other files as extern, but was used in none of them.
diffstat output: drivers/media/video/zoran_card.c | 1 - drivers/media/video/zoran_device.c | 1 - drivers/media/video/zoran_driver.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_card.c.old 2004-11-07 17:12:33.000000000 +0100 +++ linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_card.c 2004-11-07 17:12:38.000000000 +0100 @@ -58,7 +58,6 @@ #define I2C_NAME(x) (x)->name extern const struct zoran_format zoran_formats[]; -extern const int zoran_num_formats; static int card[BUZ_MAX] = { -1, -1, -1, -1 }; module_param_array(card, int, NULL, 0); --- linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_device.c.old 2004-11-07 17:11:20.000000000 +0100 +++ linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_device.c 2004-11-07 17:12:25.000000000 +0100 @@ -57,7 +57,6 @@ ZR36057_ISR_JPEGRepIRQ ) extern const struct zoran_format zoran_formats[]; -extern const int zoran_num_formats; extern int *zr_debug; --- linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_driver.c.old 2004-11-07 17:12:46.000000000 +0100 +++ linux-2.6.10-rc1-mm3-full/drivers/media/video/zoran_driver.c 2004-11-07 17:12:55.000000000 +0100 @@ -176,7 +176,7 @@ ZORAN_FORMAT_COMPRESSED, } }; -const int zoran_num_formats = +static const int zoran_num_formats = (sizeof(zoran_formats) / sizeof(struct zoran_format)); // RJ: Test only - want to test BUZ_USE_HIMEM even when CONFIG_BIGPHYS_AREA is defined - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |