2005-03-15 14:02:11

by Mikael Pettersson

[permalink] [raw]
Subject: [PATCH][2.6.11]

Fix one array-of-incomplete-type error from gcc4 in bttvp.h.

/Mikael

--- linux-2.6.11/drivers/media/video/bttvp.h.~1~ 2005-03-02 19:24:16.000000000 +0100
+++ linux-2.6.11/drivers/media/video/bttvp.h 2005-03-15 12:47:57.000000000 +0100
@@ -230,7 +230,6 @@ extern int fini_bttv_i2c(struct bttv *bt
/* our devices */
#define BTTV_MAX 16
extern unsigned int bttv_num;
-extern struct bttv bttvs[BTTV_MAX];

#define BTTV_MAX_FBUF 0x208000
#define VBIBUF_SIZE (2048*VBI_MAXLINES*2)
@@ -378,6 +377,8 @@ struct bttv {
struct bttv_fh init;
};

+extern struct bttv bttvs[BTTV_MAX];
+
/* private ioctls */
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
#define BTTV_VBISIZE _IOR('v' , BASE_VIDIOCPRIVATE+8, int)