HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/vboot/+/33675
Change subject: vboot: Move 'static' to the beginning of declaration ......................................................................
vboot: Move 'static' to the beginning of declaration
Signed-off-by: Elyes HAOUAS ehaouas@noos.fr Change-Id: Ia05289a2eafb55be760ecce5fc2bce69eead0aa3 --- M cgpt/cgpt_common.c M firmware/2lib/2misc.c M firmware/lib/cgptlib/cgptlib_internal.c 3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/vboot refs/changes/75/33675/1
diff --git a/cgpt/cgpt_common.c b/cgpt/cgpt_common.c index c129d92..b4cd041 100644 --- a/cgpt/cgpt_common.c +++ b/cgpt/cgpt_common.c @@ -675,7 +675,7 @@ const Guid guid_efi = GPT_ENT_TYPE_EFI; const Guid guid_unused = GPT_ENT_TYPE_UNUSED;
-const static struct { +static const struct { const Guid *type; char *name; char *description; diff --git a/firmware/2lib/2misc.c b/firmware/2lib/2misc.c index 8b6a19f..ecea5ec 100644 --- a/firmware/2lib/2misc.c +++ b/firmware/2lib/2misc.c @@ -15,7 +15,7 @@ #include "2rsa.h"
int vb2_validate_gbb_signature(uint8_t *sig) { - const static uint8_t sig_xor[VB2_GBB_SIGNATURE_SIZE] = + static const uint8_t sig_xor[VB2_GBB_SIGNATURE_SIZE] = VB2_GBB_XOR_SIGNATURE; int i; for (i = 0; i < VB2_GBB_SIGNATURE_SIZE; i++) { diff --git a/firmware/lib/cgptlib/cgptlib_internal.c b/firmware/lib/cgptlib/cgptlib_internal.c index 77a0de2..e74ab89 100644 --- a/firmware/lib/cgptlib/cgptlib_internal.c +++ b/firmware/lib/cgptlib/cgptlib_internal.c @@ -12,7 +12,7 @@ #include "gpt_misc.h" #include "utility.h"
-const static int MIN_SECTOR_SIZE = 512; +static const int MIN_SECTOR_SIZE = 512;
size_t CalculateEntriesSectors(GptHeader* h, uint32_t sector_bytes) {