[PATCH] bios: pciirq: constify read-only function argument
Colin King
colin.king at canonical.com
Mon Apr 12 09:35:57 UTC 2021
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];
--
2.30.2
More information about the fwts-devel
mailing list