Skip to content

Commit

Permalink
include/*: add needed dependent header includes
Browse files Browse the repository at this point in the history
Some headers lack explicit includes for #defines / types they use. Add
these to avoid these implicit include dependencies.

Signed-off-by: Mathias Krause <[email protected]>
  • Loading branch information
minipli-oss authored and 82marbag committed Oct 15, 2021
1 parent f4cfc77 commit 8530b2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/arch/x86/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@
#define X86_EX_SEL_TLB_IDT2 0x11

#ifndef __ASSEMBLY__
#include <stdbool.h>
#include <stdint.h>

union x86_ex_error_code {
uint32_t error_code;
struct __packed {
Expand Down
3 changes: 2 additions & 1 deletion include/cmdline.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define KTF_CMDLINE_H

#ifndef __ASSEMBLY__
#include <compiler.h>

#define PARAM_MAX_LENGTH 32

Expand All @@ -52,4 +53,4 @@ struct __packed ktf_param {

#endif /* __ASSEMBLY__ */

#endif /* KTF_CMDLINE_H */
#endif /* KTF_CMDLINE_H */
2 changes: 2 additions & 0 deletions include/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#define GHZ(x) (MHZ(x) * 1000)

#ifndef __ASSEMBLY__
#include <inttypes.h>

typedef uint64_t off_t;
#define _ptr(val) ((void *) (unsigned long) (val))
#define _ul(val) ((unsigned long) (val))
Expand Down

0 comments on commit 8530b2d

Please sign in to comment.