Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/29926
to look at the new patch set (#24).
Change subject: [Test] Remaining unused variables
......................................................................
[Test] Remaining unused variables
Change-Id: Ic3dde296ab4b84add8a8ab6a3bb5ecb65da2c158
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M Makefile.inc
M util/crossgcc/buildgcc
D util/crossgcc/patches/gcc-8.3.0_nds32_ite.patch
R util/crossgcc/patches/gcc-9.1.0_ada-musl_workaround.patch
R util/crossgcc/patches/gcc-9.1.0_gnat.patch
R util/crossgcc/patches/gcc-9.1.0_libgcc.patch
D util/crossgcc/sum/gcc-8.3.0.tar.xz.cksum
A util/crossgcc/sum/gcc-9.1.0.tar.xz.cksum
8 files changed, 5 insertions(+), 21,023 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/29926/24
--
To view, visit https://review.coreboot.org/c/coreboot/+/29926
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic3dde296ab4b84add8a8ab6a3bb5ecb65da2c158
Gerrit-Change-Number: 29926
Gerrit-PatchSet: 24
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Alan Green has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32798
Change subject: src/security/vboot/misc.h Fix clang fail to compile
......................................................................
src/security/vboot/misc.h Fix clang fail to compile
Clang does not recognize dead_code() as termination of execution. It
gives this message:
error: control reaches end of non-void function
[-Werror,-Wreturn-type]
The error was being encountered even without VBOOT enabled, because the
misc.h file is included from many places, including coreboot_table.c.
This change:
(a) provides dummy return values from the dead code paths to keep clang
happy.
(b) moves the final case of if-else-if statements out of else clause to
keep the linter happy.
Signed-off-by: Alan Green <avg(a)google.com>
Change-Id: I19e0c9ba36f0ea5110480521a5f9afa0112a3137
---
M src/security/vboot/misc.h
1 file changed, 6 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/32798/1
diff --git a/src/security/vboot/misc.h b/src/security/vboot/misc.h
index 23159c8..03bf663 100644
--- a/src/security/vboot/misc.h
+++ b/src/security/vboot/misc.h
@@ -78,7 +78,6 @@
* code should be called. They are implemented inline for better compile-time
* code elimination.
*/
-
static inline int verification_should_run(void)
{
if (CONFIG(VBOOT_SEPARATE_VERSTAGE))
@@ -87,8 +86,9 @@
return ENV_ROMSTAGE;
else if (CONFIG(VBOOT_STARTS_IN_BOOTBLOCK))
return ENV_BOOTBLOCK;
- else
- dead_code();
+
+ dead_code();
+ return 0;
}
static inline int verstage_should_load(void)
@@ -120,10 +120,10 @@
#else
return 1;
#endif
- } else {
- dead_code();
}
-}
+ dead_code();
+ return 0;
+}
#endif /* __VBOOT_MISC_H__ */
--
To view, visit https://review.coreboot.org/c/coreboot/+/32798
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I19e0c9ba36f0ea5110480521a5f9afa0112a3137
Gerrit-Change-Number: 32798
Gerrit-PatchSet: 1
Gerrit-Owner: Alan Green <avg(a)google.com>
Gerrit-MessageType: newchange
Hello Kyösti Mälkki, Angel Pons, build bot (Jenkins), Martin Roth, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/29926
to look at the new patch set (#23).
Change subject: [Test] Remaining unused variables
......................................................................
[Test] Remaining unused variables
Change-Id: Ic3dde296ab4b84add8a8ab6a3bb5ecb65da2c158
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M Makefile.inc
M util/crossgcc/buildgcc
D util/crossgcc/patches/gcc-8.3.0_ada-musl_workaround.patch
D util/crossgcc/patches/gcc-8.3.0_gnat.patch
D util/crossgcc/patches/gcc-8.3.0_libgcc.patch
D util/crossgcc/patches/gcc-8.3.0_nds32_ite.patch
D util/crossgcc/sum/gcc-8.3.0.tar.xz.cksum
7 files changed, 4 insertions(+), 21,214 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/29926/23
--
To view, visit https://review.coreboot.org/c/coreboot/+/29926
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic3dde296ab4b84add8a8ab6a3bb5ecb65da2c158
Gerrit-Change-Number: 29926
Gerrit-PatchSet: 23
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32881
Change subject: timestamp: Update TIMESTAMP_CACHE_IN_BSS to include ENV_POSTCAR
......................................................................
timestamp: Update TIMESTAMP_CACHE_IN_BSS to include ENV_POSTCAR
With CB:32726 ("lib/timestamp: Make timestamp_sync_cache_to_cbmem() in
postcar") timestamps are synced from cache to cbmem in postcar as
well. For postcar, the cache lives in BSS just like ramstage. This
change updates TIMESTAMP_CACHE_IN_BSS to include both ramstage and
postcar and uses this instead of ENV_RAMSTAGE to check for cache
location.
Ideally, it would be good to get rid of timestamp cache in postcar and
ramstage completely since early cbmem init is enabled by default in
coreboot and it is guaranteed that cbmem is recovered before
timestamps are added in ramstage or postcar. This change is being
pushed in as a temporary fix while I make the changes to remove
timestamp cache from romstage and postcar completely.
BUG=b:132939309
Change-Id: I2d82a96aba954df77c9386b7bd2e2ec0973881be
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M src/lib/timestamp.c
1 file changed, 7 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/32881/1
diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c
index 431bce2..38d0212 100644
--- a/src/lib/timestamp.c
+++ b/src/lib/timestamp.c
@@ -47,12 +47,15 @@
#define USE_TIMESTAMP_REGION 0
#endif
-/* The cache location will sit in BSS when in ramstage. */
-#define TIMESTAMP_CACHE_IN_BSS ENV_RAMSTAGE
+/* The cache location will sit in BSS when in ramstage/postcar. */
+#define TIMESTAMP_CACHE_IN_BSS (ENV_RAMSTAGE || ENV_POSTCAR)
#define HAS_CBMEM (ENV_ROMSTAGE || ENV_RAMSTAGE || ENV_POSTCAR)
-/* Storage of cache entries during ramstage prior to cbmem coming online. */
+/*
+ * Storage of cache entries during ramstage/postcar prior to cbmem coming
+ * online.
+ */
static struct timestamp_cache timestamp_cache;
enum {
@@ -220,7 +223,7 @@
/* Timestamps could have already been recovered.
* In those circumstances honor the cache which sits in BSS
* as it has already been initialized. */
- if (ENV_RAMSTAGE &&
+ if (TIMESTAMP_CACHE_IN_BSS &&
ts_cache->cache_state != TIMESTAMP_CACHE_UNINITIALIZED)
return;
--
To view, visit https://review.coreboot.org/c/coreboot/+/32881
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2d82a96aba954df77c9386b7bd2e2ec0973881be
Gerrit-Change-Number: 32881
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: newchange