diff options
| author | Anup Patel <[email protected]> | 2024-09-21 21:46:15 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-10-25 23:00:04 +0530 |
| commit | 65d4e9be95294c04a9a6b1be9215e9d571aba479 (patch) | |
| tree | 0fb8264ad64069fd6c45b2c96396250dd86bd0a1 | |
| parent | 2d517fce9bd783f06a92d957a688890c894240cd (diff) | |
include: sbi: Remove cyclic include in sbi_domain_context.h
The sbi_domain_context.h includes sbi_domain.h and the sbi_domain.h
also includes sbi_domain_context.h. Remove this cyclic include in
sbi_domain_context.h.
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
| -rw-r--r-- | include/sbi/sbi_domain_context.h | 3 | ||||
| -rw-r--r-- | lib/sbi/sbi_domain_context.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sbi/sbi_domain_context.h b/include/sbi/sbi_domain_context.h index a92f338b..1f5a4f56 100644 --- a/include/sbi/sbi_domain_context.h +++ b/include/sbi/sbi_domain_context.h @@ -9,7 +9,8 @@ #include <sbi/sbi_types.h> #include <sbi/sbi_trap.h> -#include <sbi/sbi_domain.h> + +struct sbi_domain; /** Context representation for a hart within a domain */ struct sbi_context { diff --git a/lib/sbi/sbi_domain_context.c b/lib/sbi/sbi_domain_context.c index bafb6c3e..7cad4656 100644 --- a/lib/sbi/sbi_domain_context.c +++ b/lib/sbi/sbi_domain_context.c @@ -13,6 +13,7 @@ #include <sbi/sbi_heap.h> #include <sbi/sbi_scratch.h> #include <sbi/sbi_string.h> +#include <sbi/sbi_domain.h> #include <sbi/sbi_domain_context.h> /** |
