summaryrefslogtreecommitdiffstats
path: root/sys/dev/kbd
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-15 21:35:01 +0000
committerphk <phk@FreeBSD.org>2002-10-15 21:35:01 +0000
commitb7ae862a6d4958d75e92bbf27b59eef5eb7ed3d1 (patch)
tree65ae260a53d098c1e0379e3850a34b113353f1a7 /sys/dev/kbd
parent45684fd1854bac5defd1158981c98a6fe22fb5a7 (diff)
downloadFreeBSD-src-b7ae862a6d4958d75e92bbf27b59eef5eb7ed3d1.zip
FreeBSD-src-b7ae862a6d4958d75e92bbf27b59eef5eb7ed3d1.tar.gz
Include "opt_kbd.h" since certain structures size depend on the value
of KBDIO_DEBUG which may be defined in the kernel config (as it is in NOTES). This kind of bug is a _really_ horribly thing as we end up with one bit of code thinking a particular structure is 136 bytes and another that it is only 112 bytes. Ideally all places would remember to #include the right "opt_foo.h" file, but I think in practice file containing the variable sized struct should #include it explicitly as a precaution. Detected by: FlexeLint
Diffstat (limited to 'sys/dev/kbd')
-rw-r--r--sys/dev/kbd/atkbdcreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/kbd/atkbdcreg.h b/sys/dev/kbd/atkbdcreg.h
index 92fcfc1..f2ec844 100644
--- a/sys/dev/kbd/atkbdcreg.h
+++ b/sys/dev/kbd/atkbdcreg.h
@@ -34,6 +34,8 @@
#ifndef _DEV_KBD_ATKBDCREG_H_
#define _DEV_KBD_ATKBDCREG_H_
+#include "opt_kbd.h" /* Structures depend on the value if KBDIO_DEBUG */
+
/* constants */
/* I/O ports */
OpenPOWER on IntegriCloud