ACK: [PATCH] bios: pciirq: constify read-only function argument
Alex Hung
alex.hung at canonical.com
Mon Apr 12 19:22:56 UTC 2021
On 2021-04-12 3:35 a.m., Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Constify a read-only function argument
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/bios/pciirq/pciirq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/bios/pciirq/pciirq.c b/src/bios/pciirq/pciirq.c
> index 05f6b30f..c21a237a 100644
> --- a/src/bios/pciirq/pciirq.c
> +++ b/src/bios/pciirq/pciirq.c
> @@ -59,7 +59,7 @@ typedef struct {
> slot_entry slots[0];
> } __attribute__ ((packed)) pci_irq_routing_table;
>
> -static const char *pciirq_reserved(uint8_t *data)
> +static const char *pciirq_reserved(const uint8_t *data)
> {
> static char buf[1+ (RESERVED_SIZE * 5)];
> char tmp[6];
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list