mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
02fcfac0ad
commit
fb9da1ef43
2 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue