2000-12-04 17:05:07

by Horst H. von Brand

[permalink] [raw]
Subject: 2.4.0.12.4: drivers/net/dummy.c fails compile

SPARC64, Red Hat 6.2 + local updates


dummy.c: In function `dummy_init_module':
dummy.c:103: invalid type argument of `->'

A patch follows:

--- linux-2.4.0-test/drivers/net/dummy.c~ Mon Dec 4 09:03:05 2000
+++ linux-2.4.0-test/drivers/net/dummy.c Mon Dec 4 13:27:23 2000
@@ -100,7 +100,7 @@
int err;

dev_dummy.init = dummy_init;
- SET_MODULE_OWNER(&dev_dummy);
+ SET_MODULE_OWNER((&dev_dummy));

/* Find a name for this unit */
err=dev_alloc_name(&dev_dummy,"dummy%d");
--
Dr. Horst H. von Brand mailto:[email protected]
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513


2000-12-04 17:24:04

by Jeff Garzik

[permalink] [raw]
Subject: Re: 2.4.0.12.4: drivers/net/dummy.c fails compile

On Mon, 4 Dec 2000, Horst von Brand wrote:
> SPARC64, Red Hat 6.2 + local updates

A better patch has already been posted, and is present in the
2.4.0-test11-ac series. module.h needs to be modified to protect the
argument of SET_MODULE_OWNER.

Jeff