From db2c8dfecb5086ceb78c59f2108d51ca3129d9c1 Mon Sep 17 00:00:00 2001
From: Nico Huber <nico.h@gmx.de>
Date: Mon, 6 Apr 2020 23:02:12 +0200
Subject: assert.h: Simplify dead_code()

It turns out the linker's error message already includes the line
number of the dead_code() invocation. If we don't include the line
number in the identifier for our undefined reference, we don't need
individual identifiers at all and can work with a single, global
declaration.

Change-Id: Ib63868ce3114c3f839867a3bfb1b03bdb6facf16
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40240
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
---
 src/security/vboot/misc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/security')

diff --git a/src/security/vboot/misc.h b/src/security/vboot/misc.h
index 22cc75052c..fd422b2ff7 100644
--- a/src/security/vboot/misc.h
+++ b/src/security/vboot/misc.h
@@ -53,7 +53,7 @@ static inline int verification_should_run(void)
 	else if (CONFIG(VBOOT_STARTS_IN_BOOTBLOCK))
 		return ENV_BOOTBLOCK;
 	else
-		dead_code(_in_vboot_misc_h);
+		dead_code();
 }
 
 static inline int verstage_should_load(void)
@@ -82,7 +82,7 @@ static inline int vboot_logic_executed(void)
 		/* Post-RAM stages are "after the romstage" */
 		return !ENV_ROMSTAGE_OR_BEFORE;
 	} else {
-		dead_code(_in_vboot_misc_h);
+		dead_code();
 	}
 }
 
-- 
cgit v1.2.3