From 9a86bd3113d119380779cc2178b18128fe14d0bf Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Mon, 6 May 2024 13:46:42 +1000 Subject: [PATCH] dos: mark myusec_delay static If not static, this causes a compile-time error because it doesn't have a prototype. TEST=meson setup --cross-file meson_cross/i586_djgpp_dos.txt; ninja Change-Id: I1a43d89b9aabea7dab302350b1abf6bf613a3449 Signed-off-by: Peter Marheine Reviewed-on: https://review.coreboot.org/c/flashrom/+/82213 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk --- udelay_dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udelay_dos.c b/udelay_dos.c index 4a29f73d4..61493fcd9 100644 --- a/udelay_dos.c +++ b/udelay_dos.c @@ -28,7 +28,7 @@ /* loops per microsecond */ static unsigned long micro = 1; -__attribute__ ((noinline)) void myusec_delay(unsigned int usecs) +__attribute__ ((noinline)) static void myusec_delay(unsigned int usecs) { unsigned long i; for (i = 0; i < usecs * micro; i++) {