diff options
| author | Samuel Holland <[email protected]> | 2024-07-30 21:58:47 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-08-24 13:02:33 +0530 |
| commit | d561418f22f28b1eaedd5a51c338099c359743cf (patch) | |
| tree | 5a6ea657c08cd39281273e664a9dae9ddef04d46 /lib/utils | |
| parent | 039e810437d3fbf96505454cce17c8f90e51996d (diff) | |
lib: utils/ipi: Constify FDT pointers in parsing functions
Indicate that none of these functions modify the devicetree by
constifying the parameter type.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/ipi/fdt_ipi.c | 2 | ||||
| -rw-r--r-- | lib/utils/ipi/fdt_ipi_mswi.c | 2 | ||||
| -rw-r--r-- | lib/utils/ipi/fdt_ipi_plicsw.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/ipi/fdt_ipi.c b/lib/utils/ipi/fdt_ipi.c index 0b75093e..959cf57d 100644 --- a/lib/utils/ipi/fdt_ipi.c +++ b/lib/utils/ipi/fdt_ipi.c @@ -36,7 +36,7 @@ static int fdt_ipi_cold_init(void) int pos, noff, rc; struct fdt_ipi *drv; const struct fdt_match *match; - void *fdt = fdt_get_address(); + const void *fdt = fdt_get_address(); for (pos = 0; pos < fdt_ipi_drivers_size; pos++) { drv = fdt_ipi_drivers[pos]; diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c index a709abe1..c78dead1 100644 --- a/lib/utils/ipi/fdt_ipi_mswi.c +++ b/lib/utils/ipi/fdt_ipi_mswi.c @@ -13,7 +13,7 @@ #include <sbi_utils/ipi/fdt_ipi.h> #include <sbi_utils/ipi/aclint_mswi.h> -static int ipi_mswi_cold_init(void *fdt, int nodeoff, +static int ipi_mswi_cold_init(const void *fdt, int nodeoff, const struct fdt_match *match) { int rc; diff --git a/lib/utils/ipi/fdt_ipi_plicsw.c b/lib/utils/ipi/fdt_ipi_plicsw.c index bf29bfc1..32885745 100644 --- a/lib/utils/ipi/fdt_ipi_plicsw.c +++ b/lib/utils/ipi/fdt_ipi_plicsw.c @@ -17,8 +17,8 @@ extern struct plicsw_data plicsw; -int fdt_plicsw_cold_ipi_init(void *fdt, int nodeoff, - const struct fdt_match *match) +int fdt_plicsw_cold_ipi_init(const void *fdt, int nodeoff, + const struct fdt_match *match) { int rc; |
