Some warnings at tdfxfb.c

2001-05-27 Thread David =?ISO-8859-1?Q?G=F3mez


This is on kernel 2.4.5. It's look like a long time has passed since this
driver was modified. Haven't tested if works, but things like using char
*name in tdfxb_init without initializing needs some fix. Is enough to do a
kmalloc to get some free space?

gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE   -c -o tdfxfb.o
tdfxfb.c
tdfxfb.c: In function `tdfxfb_init':
tdfxfb.c:1895: warning: `name' might be used uninitialized in this
function
tdfxfb.c: In function `tdfxfb_setcolreg':
tdfxfb.c:2215: warning: unused variable `rgbcol'
tdfxfb.c: At top level:
tdfxfb.c:1038: warning: `tdfx_cfb8_putc' defined but not used
tdfxfb.c:1067: warning: `tdfx_cfb8_putcs' defined but not used
tdfxfb.c:1097: warning: `tdfx_cfb8_clear' defined but not used



David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Some warnings at tdfxfb.c

2001-05-27 Thread David =?ISO-8859-1?Q?G=F3mez


This is on kernel 2.4.5. It's look like a long time has passed since this
driver was modified. Haven't tested if works, but things like using char
*name in tdfxb_init without initializing needs some fix. Is enough to do a
kmalloc to get some free space?

gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE   -c -o tdfxfb.o
tdfxfb.c
tdfxfb.c: In function `tdfxfb_init':
tdfxfb.c:1895: warning: `name' might be used uninitialized in this
function
tdfxfb.c: In function `tdfxfb_setcolreg':
tdfxfb.c:2215: warning: unused variable `rgbcol'
tdfxfb.c: At top level:
tdfxfb.c:1038: warning: `tdfx_cfb8_putc' defined but not used
tdfxfb.c:1067: warning: `tdfx_cfb8_putcs' defined but not used
tdfxfb.c:1097: warning: `tdfx_cfb8_clear' defined but not used



David Gómez

The question of whether computers can think is just like the question of
 whether submarines can swim. -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



ov511 driver doesn't compile

2001-05-26 Thread David =?ISO-8859-1?Q?G=F3mez


On kernel 2.4.5, the ov511 usb driver shows a failure at compile
time. const version is not defined.

gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE   -c -o ov511.o ov511.c
ov511.c: In function `ov511_read_proc':
ov511.c:340: `version' undeclared (first use in this function)
ov511.c:340: (Each undeclared identifier is reported only once
ov511.c:340: for each function it appears in.)
make[2]: *** [ov511.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.5/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.5/drivers'
make: *** [_mod_drivers] Error 2




David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



ov511 driver doesn't compile

2001-05-26 Thread David =?ISO-8859-1?Q?G=F3mez


On kernel 2.4.5, the ov511 usb driver shows a failure at compile
time. const version is not defined.

gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE   -c -o ov511.o ov511.c
ov511.c: In function `ov511_read_proc':
ov511.c:340: `version' undeclared (first use in this function)
ov511.c:340: (Each undeclared identifier is reported only once
ov511.c:340: for each function it appears in.)
make[2]: *** [ov511.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.5/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.5/drivers'
make: *** [_mod_drivers] Error 2




David Gómez

The question of whether computers can think is just like the question of
 whether submarines can swim. -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: looking for books

2001-04-27 Thread David =?ISO-8859-1?Q?G=F3mez

On Fri, 27 Apr 2001, Xiong Zhao wrote:

> hello.currently,i need to know the details about linux kernel,things
> like how fork and pthread are implemented,how clone actually work and
> so on.where can i get materials on these topics?
> thanx

Take a look on the new book from O'Reilly, "Understanding the Linux
kernel"

> 
> 
> james
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 



David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: looking for books

2001-04-27 Thread David =?ISO-8859-1?Q?G=F3mez

On Fri, 27 Apr 2001, Xiong Zhao wrote:

 hello.currently,i need to know the details about linux kernel,things
 like how fork and pthread are implemented,how clone actually work and
 so on.where can i get materials on these topics?
 thanx

Take a look on the new book from O'Reilly, Understanding the Linux
kernel

 
 
 james
 
 -
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to [EMAIL PROTECTED]
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
 



David Gómez

The question of whether computers can think is just like the question of
 whether submarines can swim. -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: [OFFTOPIC] Re: [PATCH] Single user linux

2001-04-24 Thread David =?ISO-8859-1?Q?G=F3mez

On Tue, 24 Apr 2001, Tomas Telensky wrote:

> 
> But, what I should say to the network security, is that AFAIK in the most
> of linux distributions the standard daemons (httpd, sendmail) are run as
> root! Having multi-user system or not! Why? For only listening to a port
> <1024? Is there any elegant solution?
> 

httpd as root ? that's what i call a clueless network admin.
sendmail has an OBSOLETE design. Use a good MTA like qmail. Exim or
smail are ok, but they're still "sendmailish".


David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: [OFFTOPIC] Re: [PATCH] Single user linux

2001-04-24 Thread David =?ISO-8859-1?Q?G=F3mez

On Tue, 24 Apr 2001, Tomas Telensky wrote:

 
 But, what I should say to the network security, is that AFAIK in the most
 of linux distributions the standard daemons (httpd, sendmail) are run as
 root! Having multi-user system or not! Why? For only listening to a port
 1024? Is there any elegant solution?
 

httpd as root ? that's what i call a clueless network admin.
sendmail has an OBSOLETE design. Use a good MTA like qmail. Exim or
smail are ok, but they're still sendmailish.


David Gómez

The question of whether computers can think is just like the question of
 whether submarines can swim. -- Edsger W. Dijkstra


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/