[patch] 2.6.4-mjb1: ivtv non-modular compile broken
From: Adrian Bunk
Date: Sun Mar 14 2004 - 17:24:27 EST
On Sun, Mar 14, 2004 at 10:31:29AM -0800, Martin J. Bligh wrote:
>...
> New:
>...
> ~ ivtv Kevin Thayer / Steven Fuerst
> Driver for ivtv (includes Hauppauge PVR 250 / 350)
> Written by Kevin Thayer, ported to 2.6 by Steven Fuerst
> New version 0.1.9
>...
I got the following compile error:
<-- snip -->
...
CC drivers/media/video/ivtv-driver.o
In file included from drivers/media/video/ivtv.h:14,
from drivers/media/video/ivtv-driver.c:10:
include/linux/module.h:489: variable `__this_module' has initializer but
incomplete type
...
make[3]: *** [drivers/media/video/ivtv-driver.o] Error 1
<-- snip -->
The patch below fixes the braindead #define MODULE.
Additionally, it changes a PCI dependency from an error to a Kconfig
dependency.
cu
Adrian
--- linux-2.6.4-mjb1/drivers/media/video/ivtv.h.old 2004-03-14 23:11:04.000000000 +0100
+++ linux-2.6.4-mjb1/drivers/media/video/ivtv.h 2004-03-14 23:11:41.000000000 +0100
@@ -7,9 +7,6 @@
* License: GPL
* http://www.sourceforge.net/projects/ivtv/
*/
-#ifndef MODULE
- #define MODULE
-#endif
#include <linux/module.h>
#include <linux/init.h>
@@ -38,10 +35,6 @@
#include <linux/byteorder/swab.h>
#include <media/tuner.h>
-#ifndef CONFIG_PCI
-# error "This driver requires kernel PCI support."
-#endif
-
#define IVTV_ENCODER_OFFSET 0x00000000
#define IVTV_ENCODER_SIZE 0x01000000
--- linux-2.6.4-mjb1/drivers/media/video/Kconfig.old 2004-03-14 23:12:07.000000000 +0100
+++ linux-2.6.4-mjb1/drivers/media/video/Kconfig 2004-03-14 23:12:53.000000000 +0100
@@ -35,7 +35,7 @@
config VIDEO_IVTV_FB
tristate "IVTV Video For Linux Framebuffer"
- depends on VIDEO_IVTV && FB
+ depends on VIDEO_IVTV && FB && PCI
---help---
Support for Hauppauge WinTv PVR 350 boards TV Out via framebuffer.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/