From b297e58bc801529d38dda3d6f53e3c33fd259193 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 29 Jan 2026 09:07:22 +0200 Subject: [PATCH] bdk: add missing header guards --- bdk/mem/heap.c | 2 +- bdk/mem/smmu.h | 9 +++++++-- bdk/soc/bpmp.h | 2 +- bdk/utils/dirlist.h | 5 +++++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/bdk/mem/heap.c b/bdk/mem/heap.c index 430cf22f..33c4c4bb 100644 --- a/bdk/mem/heap.c +++ b/bdk/mem/heap.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2018 naehrwert - * Copyright (c) 2018-2025 CTCaer + * Copyright (c) 2018-2026 CTCaer * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, diff --git a/bdk/mem/smmu.h b/bdk/mem/smmu.h index 243089be..9952457b 100644 --- a/bdk/mem/smmu.h +++ b/bdk/mem/smmu.h @@ -15,10 +15,13 @@ * along with this program. If not, see . */ -#include - #include +#ifndef _SMMU_H_ +#define _SMMU_H_ + +#include + #define MC_SMMU_AVPC_ASID 0x23C #define MC_SMMU_TSEC_ASID 0x294 @@ -70,3 +73,5 @@ void smmu_deinit_domain(u32 dev_base, u32 asid); void smmu_domain_bypass(u32 dev_base, bool bypass); void smmu_map(void *ptb, u32 iova, u64 iopa, u32 pages, u32 attr); void smmu_map_huge(void *ptb, u32 iova, u64 iopa, u32 regions, u32 attr); + +#endif diff --git a/bdk/soc/bpmp.h b/bdk/soc/bpmp.h index cffec232..1864538e 100644 --- a/bdk/soc/bpmp.h +++ b/bdk/soc/bpmp.h @@ -51,7 +51,7 @@ typedef enum BPMP_CLK_SUPER_BOOST, // 576MHz 41% - 144MHz APB. BPMP_CLK_HYPER_BOOST, // 589MHz 44% - 147MHz APB. //BPMP_CLK_DEV_BOOST, // 608MHz 49% - 152MHz APB. - BPMP_CLK_NUM + BPMP_CLK_NUM } bpmp_freq_t; typedef enum diff --git a/bdk/utils/dirlist.h b/bdk/utils/dirlist.h index cf702469..daec60a5 100644 --- a/bdk/utils/dirlist.h +++ b/bdk/utils/dirlist.h @@ -16,6 +16,9 @@ #include +#ifndef _DIRLIST_H_ +#define _DIRLIST_H_ + #define DIR_MAX_ENTRIES 64 #define DIR_SHOW_HIDDEN BIT(0) @@ -29,3 +32,5 @@ typedef struct _dirlist_t } dirlist_t; dirlist_t *dirlist(const char *directory, const char *pattern, u32 flags); + +#endif