Subject: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: None <gnats-bugs@gnats.netbsd.org>
From: Stefan Grefen <grefen@hprc.tandem.com>
List: netbsd-bugs
Date: 04/29/1998 14:07:52
>Number: 5377
>Category: kern
>Synopsis: sys/system.h inludes lib/libkern/libkern.h for LKM too
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Apr 29 05:20:01 1998
>Last-Modified:
>Originator: Stefan Grefen
>Organization:
Stefan Grefen Tandem Computers Europe Inc.
grefen@hprc.tandem.com High Performance Research Center
--- Hacking's just another word for nothing left to kludge. ---
>Release: NetBSD-current as of today
>Environment:
System: NetBSD hrriss 1.3B NetBSD 1.3B (HRRISS) #7: Wed Feb 11 18:47:17 GMT 1998 grefen@hrriss:/usr/src/sys/arch/i386/compile/HRRISS i386
>Description:
Including sys/system.h outside the kernel tree with
_KERNEL defined tries to include lib/libkern/libkern.h and
fails.
>How-To-Repeat:
Compile any LKM outside of kernel tree. sys/lkm.h needs sys/system.h.
>Fix:
*** /sys/sys/systm.h.org Wed Apr 29 15:05:38 1998
--- /sys/sys/systm.h Wed Apr 29 15:07:09 1998
***************
*** 290,296 ****
void kmstartup __P((void));
#endif
! #ifdef _KERNEL
#include <lib/libkern/libkern.h>
#endif
--- 290,296 ----
void kmstartup __P((void));
#endif
! #if defined(_KERNEL) && !defined(_LKM)
#include <lib/libkern/libkern.h>
#endif
>Audit-Trail:
>Unformatted: