Don't include <sys/ioctl.h> in the kernel. Stage 10 (final). Warn if
<sys/ioctl.h> is included in the kernel. It still compiles. This set of changes reduces the number of dependencies in LINT/.depend from about 31000 to about 30000. This should make LINT kernels compile a whole 1% faster. Further reductions to less than 20000 dependencies can easily be made. E.g., 20 headers of nested spam from <sys/param.h> for 500 object files gives 10000 dependencies; less than half of these are real.
This commit is contained in:
parent
cd37a88fe1
commit
ce4a84ab15
@ -36,12 +36,16 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)ioctl.h 8.6 (Berkeley) 3/28/94
|
* @(#)ioctl.h 8.6 (Berkeley) 3/28/94
|
||||||
* $Id$
|
* $Id: ioctl.h,v 1.6 1997/02/22 09:45:22 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SYS_IOCTL_H_
|
#ifndef _SYS_IOCTL_H_
|
||||||
#define _SYS_IOCTL_H_
|
#define _SYS_IOCTL_H_
|
||||||
|
|
||||||
|
#ifdef KERNEL
|
||||||
|
#warning "Don't #include ioctl.h in the kernel. Include xxxio.h instead."
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/ttycom.h>
|
#include <sys/ttycom.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user