From: Thomas Schlichter <schlicht@uni-mannheim.de>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Error during compile of 2.5.69-mm8
Date: Sat, 24 May 2003 16:36:59 +0200 [thread overview]
Message-ID: <200305241637.07395.schlicht@uni-mannheim.de> (raw)
In-Reply-To: <20030522.213217.27796203.davem@redhat.com>
[-- Attachment #1.1: body text --]
[-- Type: text/plain, Size: 960 bytes --]
On Friday, 23 May 2003 06:32, David S. Miller wrote:
> From: Thomas Schlichter <schlicht@uni-mannheim.de>
> Date: Fri, 23 May 2003 05:38:38 +0200
>
> OK, done...
>
> I already did it myself and sent the changes to Linus, he should pick
> them up by tomorrow.
Well it seems you missed one file that my patch would have cought. So here is
a seperate diff to fix drivers/usb/media/pwc-if.c, too.
I also attached a patch that fixes the SET_MODULE_OWNER thing for net/ipv4/ by
using static initializers instead of performing the assignment at runtime.
This should be no problem here, as SET_MODULE_OWNER was called from static
init functions once. I also made 'esp4_init' static to be safe. This function
is not called from anywhere else in the whole kernel tree. (That's whar grep
says)
Both patches should cleanly apply to current bk.
For me it compiles and runs without any problems...
Best regards
Thomas Schlichter
[-- Attachment #1.2: missed_wrong_SET_MODULE_OWNER.diff --]
[-- Type: text/x-diff, Size: 366 bytes --]
--- linux-2.5.69-bk/drivers/usb/media/pwc-if.c.orig Sat May 24 16:12:40 2003
+++ linux-2.5.69-bk/drivers/usb/media/pwc-if.c Sat May 24 16:13:43 2003
@@ -1804,7 +1804,7 @@
}
memcpy(vdev, &pwc_template, sizeof(pwc_template));
strcpy(vdev->name, name);
- SET_MODULE_OWNER(vdev);
+ vdev->owner = THIS_MODULE;
pdev->vdev = vdev;
vdev->priv = pdev;
[-- Attachment #1.3: better_wrong_SET_MODULE_OWNER.diff --]
[-- Type: text/x-diff, Size: 1685 bytes --]
--- linux-2.5.69-bk/net/ipv4/esp.c.orig Sat May 24 16:14:29 2003
+++ linux-2.5.69-bk/net/ipv4/esp.c Sat May 24 16:13:43 2003
@@ -567,7 +567,7 @@
.no_policy = 1,
};
-int __init esp4_init(void)
+static int __init esp4_init(void)
{
struct xfrm_decap_state decap;
@@ -578,7 +578,6 @@
decap_data_too_small();
}
- esp_type.owner = THIS_MODULE;
if (xfrm_register_type(&esp_type, AF_INET) < 0) {
printk(KERN_INFO "ip esp init: can't add xfrm type\n");
return -EAGAIN;
--- linux-2.5.69-bk/net/ipv4/ipcomp.c.orig Sat May 24 16:15:04 2003
+++ linux-2.5.69-bk/net/ipv4/ipcomp.c Sat May 24 16:13:43 2003
@@ -385,6 +385,7 @@
static struct xfrm_type ipcomp_type =
{
.description = "IPCOMP4",
+ .owner = THIS_MODULE,
.proto = IPPROTO_COMP,
.init_state = ipcomp_init_state,
.destructor = ipcomp_destroy,
@@ -400,7 +401,6 @@
static int __init ipcomp4_init(void)
{
- ipcomp_type.owner = THIS_MODULE;
if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) {
printk(KERN_INFO "ipcomp init: can't add xfrm type\n");
return -EAGAIN;
--- linux-2.5.69-bk/net/ipv4/xfrm4_tunnel.c.orig Sat May 24 16:15:34 2003
+++ linux-2.5.69-bk/net/ipv4/xfrm4_tunnel.c Sat May 24 16:13:43 2003
@@ -215,6 +215,7 @@
static struct xfrm_type ipip_type = {
.description = "IPIP",
+ .owner = THIS_MODULE,
.proto = IPPROTO_IPIP,
.init_state = ipip_init_state,
.destructor = ipip_destroy,
@@ -229,7 +230,6 @@
static int __init ipip_init(void)
{
- ipip_type.owner = THIS_MODULE;
if (xfrm_register_type(&ipip_type, AF_INET) < 0) {
printk(KERN_INFO "ipip init: can't add xfrm type\n");
return -EAGAIN;
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2003-05-24 14:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200305230327.57985.schlicht@uni-mannheim.de>
[not found] ` <200305230538.38946.schlicht@uni-mannheim.de>
[not found] ` <20030522.213217.27796203.davem@redhat.com>
2003-05-24 14:36 ` Thomas Schlichter [this message]
2003-05-26 2:18 ` Error during compile of 2.5.69-mm8 David S. Miller
2003-05-26 6:35 ` Thomas Schlichter
2003-05-26 7:04 ` David S. Miller
2003-05-22 13:54 Mads Christensen
2003-05-22 15:29 ` Mads Christensen
2003-05-22 23:10 ` Thomas Schlichter
[not found] ` <20030522160218.57b828db.akpm@digeo.com>
2003-05-22 23:05 ` David S. Miller
2003-05-22 23:28 ` Thomas Schlichter
2003-05-22 23:29 ` David S. Miller
2003-05-22 23:47 ` Thomas Schlichter
2003-05-22 23:48 ` David S. Miller
2003-05-23 0:13 ` Thomas Schlichter
2003-05-23 0:23 ` David S. Miller
2003-05-23 1:06 ` Thomas Schlichter
2003-05-23 1:16 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305241637.07395.schlicht@uni-mannheim.de \
--to=schlicht@uni-mannheim.de \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.