From: Paweł Sikora Date: Tue, 6 Jul 2004 21:14:50 +0000 (+0000) Subject: - workaround for conflict types. X-Git-Tag: auto/ac/kernel-2_6_7-1_19_1~9 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=182e9e55e4cac32e72a4256c66162571105d9c5e;p=packages%2Fkernel.git - workaround for conflict types. ('drivers/media/common/saa7146_video.c:3: error: conflicting types for `memory' include/asm-m68k/setup.h:365: error: previous declaration of `memory'). waiting for A.Morton response... Changed files: 2.6.7-ppc-saa7146-workaround.patch -> 1.1.2.1 --- diff --git a/2.6.7-ppc-saa7146-workaround.patch b/2.6.7-ppc-saa7146-workaround.patch new file mode 100644 index 00000000..0428f874 --- /dev/null +++ b/2.6.7-ppc-saa7146-workaround.patch @@ -0,0 +1,28 @@ +--- linux-2.6.7/drivers/media/common/saa7146_video.c.orig 2004-06-16 07:19:37.000000000 +0200 ++++ linux-2.6.7/drivers/media/common/saa7146_video.c 2004-07-06 23:10:55.768840056 +0200 +@@ -1,9 +1,9 @@ + #include + +-static int memory = 32; ++static int capmemory = 32; + +-MODULE_PARM(memory,"i"); +-MODULE_PARM_DESC(memory, "maximum memory usage for capture buffers (default: 32Mb)"); ++MODULE_PARM(capmemory,"i"); ++MODULE_PARM_DESC(capmemory, "maximum memory usage for capture buffers (default: 32Mb)"); + + #define IS_CAPTURE_ACTIVE(fh) \ + (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh)) +@@ -1331,9 +1331,9 @@ + + *size = fh->video_fmt.sizeimage; + +- /* check if we exceed the "memory" parameter */ +- if( (*count * *size) > (memory*1048576) ) { +- *count = (memory*1048576) / *size; ++ /* check if we exceed the "capmemory" parameter */ ++ if( (*count * *size) > (capmemory*1048576) ) { ++ *count = (capmemory*1048576) / *size; + } + + DEB_CAP(("%d buffers, %d bytes each.\n",*count,*size));