From: "Adam J. Richter" <adam@yggdrasil.com>
To: linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.com
Subject: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation
Date: Mon, 11 Dec 2000 14:59:01 -0800 [thread overview]
Message-ID: <20001211145901.A8047@baldur.yggdrasil.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
linux-2.4.0test12pre8/include/linux/module.h contains some
kernel-specific declarations that now reference struct list_head, which
which is only defined when __KERNEL__ is set. This causes sysklogd
and probably any other user level program that needs to include
<linux/module.h> to fail to compile.
The following patch brackets the (unused) offending declarations
in #ifdef __KERNEL__...#endif.
--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
[-- Attachment #2: modules.diff --]
[-- Type: text/plain, Size: 722 bytes --]
Index: linux/include/linux/module.h
===================================================================
RCS file: /usr/src.repository/repository/linux/include/linux/module.h,v
retrieving revision 1.2
diff -u -r1.2 module.h
--- linux/include/linux/module.h 2000/12/04 11:57:16 1.2
+++ linux/include/linux/module.h 2000/12/11 22:54:20
@@ -168,6 +168,7 @@
* Keith Owens <kaos@ocs.com.au> 28 Oct 2000.
*/
+#ifdef __KERNEL__
#define HAVE_INTER_MODULE
extern void inter_module_register(const char *, struct module *, const void *);
extern void inter_module_unregister(const char *);
@@ -183,6 +184,7 @@
};
extern int try_inc_mod_count(struct module *mod);
+#endif
#if defined(MODULE) && !defined(__GENKSYMS__)
next reply other threads:[~2000-12-11 23:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-11 22:59 Adam J. Richter [this message]
2000-12-12 1:05 ` PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation Keith Owens
2000-12-12 1:15 ` Cort Dougan
2000-12-12 1:13 ` Mohammad A. Haque
2000-12-12 1:53 ` Peter Samuelson
2000-12-12 20:38 ` Frank van Maarseveen
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=20001211145901.A8047@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).