public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation
@ 2000-12-11 22:59 Adam J. Richter
  2000-12-12  1:05 ` Keith Owens
  2000-12-12  1:13 ` Mohammad A. Haque
  0 siblings, 2 replies; 6+ messages in thread
From: Adam J. Richter @ 2000-12-11 22:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

[-- 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__)
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-12 21:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-11 22:59 PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation Adam J. Richter
2000-12-12  1:05 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox