mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Samuelson <peter@cadcamlab.org>
To: mkloppstech@freenet.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: test12-pre5 does not compile
Date: Tue, 5 Dec 2000 17:25:38 -0600	[thread overview]
Message-ID: <20001205172538.I6567@cadcamlab.org> (raw)
In-Reply-To: <200012052311.AAA06477@john.epistle>
In-Reply-To: <200012052311.AAA06477@john.epistle>; from mkloppstech@freenet.de on Wed, Dec 06, 2000 at 12:11:23AM +0100

[mkloppstech@freenet.de]
> dummy.c: In function `dummy_init_module':
> dummy.c:103: invalid type argument of `->'

Known bug.  They say the fix is in Linus's patch queue.

--- include/linux/module.h~	Tue Dec  5 00:53:23 2000
+++ include/linux/module.h	Tue Dec  5 17:24:47 2000
@@ -345,7 +345,7 @@
 #endif /* MODULE */
 
 #ifdef CONFIG_MODULES
-#define SET_MODULE_OWNER(some_struct) do { some_struct->owner = THIS_MODULE; } while (0)
+#define SET_MODULE_OWNER(some_struct) do { (some_struct)->owner = THIS_MODULE; } while (0)
 #else
 #define SET_MODULE_OWNER(some_struct) do { } while (0)
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2000-12-05 23:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-05 23:11 mkloppstech
2000-12-05 23:25 ` Peter Samuelson [this message]

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=20001205172538.I6567@cadcamlab.org \
    --to=peter@cadcamlab.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkloppstech@freenet.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®