summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-08-03 22:24:08 +0100
committerLeah Rowe <leah@libreboot.org>2026-08-03 22:24:08 +0100
commitd19a0241a1798bd83fb0e237866e5a89f9220d0b (patch)
treeb155bd78181860dfd8fed992803dd95f122a8410 /config
parent2908904a2ff2040c9a3a5b58555e8d00ec8a6c24 (diff)
coreboot/fam15h: fix build error (__unused)
see patch. just some gcc chicanery. nothing to see here. move along now. yes. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config')
-rw-r--r--config/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/config/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch b/config/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch
new file mode 100644
index 00000000..f6a2e643
--- /dev/null
+++ b/config/coreboot/fam15h/patches/0019-fix-gcc-error-with-__unused.patch
@@ -0,0 +1,52 @@
+From 330177da40df12813d6e45c9cdb6285dcbff8b59 Mon Sep 17 00:00:00 2001
+From: Leah Rowe <leah@libreboot.org>
+Date: Mon, 3 Aug 2026 22:22:39 +0100
+Subject: [PATCH 1/1] fix gcc error with __unused
+
+just discard it explicitly.
+
+really now, this is better. it's what i do.
+
+(void)foo;
+
+then gcc won't blow up. fixes building on my debian machine.
+
+Signed-off-by: Leah Rowe <leah@libreboot.org>
+---
+ src/commonlib/region.c | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/src/commonlib/region.c b/src/commonlib/region.c
+index 4a7e285747..b016600da9 100644
+--- a/src/commonlib/region.c
++++ b/src/commonlib/region.c
+@@ -229,18 +229,23 @@ void xlate_region_device_rw_init(struct xlate_region_device *xdev,
+ }
+
+ static void *mdev_mmap(const struct region_device *rd, size_t offset,
+- size_t size __unused)
++ size_t size)
+ {
+ const struct mem_region_device *mdev;
+
++ (void)size;
++
+ mdev = container_of(rd, __typeof__(*mdev), rdev);
+
+ return &mdev->base[offset];
+ }
+
+-static int mdev_munmap(const struct region_device *rd __unused,
+- void *mapping __unused)
++static int mdev_munmap(const struct region_device *rd,
++ void *mapping)
+ {
++ (void)mapping;
++ (void)rd;
++
+ return 0;
+ }
+
+--
+2.47.3
+