ACK: [PATCH] acpi: dmar: constify a pointer argument in acpi_parse_dev_scope
ivanhu
ivan.hu at canonical.com
Thu Sep 23 03:42:17 UTC 2021
On 9/22/21 6:15 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> One of the pointer arguments can be const, clean up a cppcheck
> style warning.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/acpi/dmar/dmar.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c
> index 5b06c8c7..91721229 100644
> --- a/src/acpi/dmar/dmar.c
> +++ b/src/acpi/dmar/dmar.c
> @@ -190,7 +190,7 @@ error:
> }
>
> static int acpi_parse_dev_scope(fwts_framework *fw,
> - uint8_t *start, uint8_t *end, const uint16_t seg)
> + uint8_t *start, const uint8_t *end, const uint16_t seg)
> {
> while (start < end) {
> struct acpi_dev_scope *scope = (struct acpi_dev_scope *)start;
>
Acked-by: Ivan Hu <ivan.hu at canonical.com>
More information about the fwts-devel
mailing list