From owner-linux-mm-bugs@nl.linux.org Tue Sep  4 06:59:14 2001
Received: (root@humbolt.nl.linux.org) by humbolt.nl.linux.org
	id <S16212AbRIDE7I>; Tue, 4 Sep 2001 06:59:08 +0200
Received: from distro.conectiva.com.br ([200.250.58.149]:60424 "EHLO
	distro.conectiva.com.br") by humbolt.nl.linux.org with ESMTP
	id <S16174AbRIDE6u>; Tue, 4 Sep 2001 06:58:50 +0200
Received: (from nobody@localhost)
	by distro.conectiva.com.br (8.11.6/8.11.6) id f844pmG07178;
	Tue, 4 Sep 2001 01:51:48 -0300
Date:	Tue, 4 Sep 2001 01:51:48 -0300
Message-Id: <200109040451.f844pmG07178@distro.conectiva.com.br>
From:	bugzilla-daemon@distro.conectiva.com.br
To:	linux-mm-bugs@nl.linux.org
Subject: [Bug 4294] New:  - =?ISO-8859-1?Q?M=F3dulo?= ov511 do kernel com defeito
Sender:	owner-linux-mm-bugs@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-bugs@nl.linux.org
Return-Path: <owner-linux-mm-bugs@nl.linux.org>
X-Envelope-To: <"| /bin/marchive -a -m -f /home/majordomo/public_html/linux-mm-bugs/folders/linux-mm-bugs"> (uid 0)
X-Orcpt: rfc822;linux-mm-bugs-list

http://bugzilla.conectiva.com.br/show_bug.cgi?id=4294

           Summary: Módulo ov511 do kernel com defeito
           Product: Linux kernel MM
           Version: 2.5 (beta)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: linux mm
        AssignedTo: linux-mm-bugs@nl.linux.org
        ReportedBy: carlos_arroyo@uol.com.br


Quando eu fui instalar o kernel 2.4.5 não foi possível a compilação do módulo
ov511 que serve para as câmeras de vídeo. Apareceu uma mensagem de erro
reclamando sobre uma variável indefinida (version) em ov511.

Eu editei o arquivo fonte e inclui a seguinte linha, posicionada na linha 34 do
arquivo (ou seja, logo no início):

    33  /* Hacked by Carlos <chaplin40@yahoo.com.br> */
    34  static const char version[] = "1.28";

A numeração que aparece aqui é o número da linha e não faz parte do arquivo!

Após a colocação dessa linha com a declaração da variável, compilei os módulos
do kernel e o kernel sem problemas. O módulo também funcionou adequadamente.

Não sei se a versão do kernel lançado pela Conectiva tem o mesmo problema, de
qualquer forma fica aqui minha observação.
-
Linux-mm-bugs:  bugzilla list for the Linux-MM subsystem
Archive:        http://mail.nl.linux.org/linux-mm-bugs/
Web site:       http://linux-mm.org/
Development:    linux-mm@kvack.org

From owner-linux-mm-bugs@nl.linux.org Tue Sep  4 07:09:18 2001
Received: (root@humbolt.nl.linux.org) by humbolt.nl.linux.org
	id <S16210AbRIDFJG>; Tue, 4 Sep 2001 07:09:06 +0200
Received: from distro.conectiva.com.br ([200.250.58.149]:61192 "EHLO
	distro.conectiva.com.br") by humbolt.nl.linux.org with ESMTP
	id <S16174AbRIDFIt>; Tue, 4 Sep 2001 07:08:49 +0200
Received: (from nobody@localhost)
	by distro.conectiva.com.br (8.11.6/8.11.6) id f844x8V07244;
	Tue, 4 Sep 2001 01:59:08 -0300
Date:	Tue, 4 Sep 2001 01:59:08 -0300
Message-Id: <200109040459.f844x8V07244@distro.conectiva.com.br>
From:	bugzilla-daemon@distro.conectiva.com.br
To:	linux-mm-bugs@nl.linux.org
Subject: [Bug 4294]  - =?ISO-8859-1?Q?M=F3dulo?= ov511 do kernel com defeito
Sender:	owner-linux-mm-bugs@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-bugs@nl.linux.org
Return-Path: <owner-linux-mm-bugs@nl.linux.org>
X-Envelope-To: <"| /bin/marchive -a -m -f /home/majordomo/public_html/linux-mm-bugs/folders/linux-mm-bugs"> (uid 0)
X-Orcpt: rfc822;linux-mm-bugs-list

http://bugzilla.conectiva.com.br/show_bug.cgi?id=4294





------- Additional Comments From carlos_arroyo@uol.com.br  2001-09-04 01:59 -------
Abaixo estão as primeiras linhas do arquivo:
/usr/src/linux-2.4.5/drivers/usb/ov511.c

Se você tem a fonte do kernel 2.4.5 você pode encontar esse arquivo completo.
Aqui coloquei apenas as primeiras linhas para mostrar o que eu fiz para corrigir
o meu problema em particular. Minha correção está logo abaixo da linha:

/* Hacked by Carlos <chaplin40@yahoo.com.br> */






---- Início ------
/*
 * OmniVision OV511 Camera-to-USB Bridge Driver
 *
 * Copyright (c) 1999-2000 Mark W. McClelland
 * Many improvements by Bret Wallach <bwallac1@san.rr.com>
 * Color fixes by by Orion Sky Lawlor <olawlor@acm.org> (2/26/2000)
 * Snapshot code by Kevin Moore
 * OV7620 fixes by Charl P. Botha <cpbotha@ieee.org>
 * Changes by Claudio Matsuoka <claudio@conectiva.com>
 *
 * Based on the Linux CPiA driver written by Peter Pregler,
 * Scott J. Bertin and Johannes Erdfelt.
 *
 * Please see the file: linux/Documentation/usb/ov511.txt
 * and the website at:  http://alpha.dyndns.org/ov511
 * for more info.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/* Hacked by Carlos <chaplin40@yahoo.com.br> */
static const char version[] = "1.28";


#define __NO_VERSION__

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/ctype.h>
#include <linux/pagemap.h>
#include <linux/usb.h>
#include <asm/io.h>
#include <asm/semaphore.h>
#include <linux/wrapper.h>

#include "ov511.h"

/*
 * Version Information
 */
#define DRIVER_VERSION "v1.28"
#define DRIVER_AUTHOR "Mark McClelland <mwm@i.am> & Bret Wallach & Orion Sky
Lawlor <olawlor@acm.org> & Kevin Moore & Charl P. Botha <cpbotha@ieee.org> &
Claudio Matsuoka <claudio@conectiva.com>"
#define DRIVER_DESC "OV511 USB Camera Driver"

#define OV511_I2C_RETRIES 3

------ O arquivo original tem mais -------
-
Linux-mm-bugs:  bugzilla list for the Linux-MM subsystem
Archive:        http://mail.nl.linux.org/linux-mm-bugs/
Web site:       http://linux-mm.org/
Development:    linux-mm@kvack.org

