diff mbox series

[U-Boot,1/1] disk: efi: GUIDs should be const

Message ID 20190112102525.23010-1-xypron.glpk@gmx.de
State Accepted
Commit 7de24b27d2833b1dbc017289b4b262e96b42837a
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/1] disk: efi: GUIDs should be const | expand

Commit Message

Heinrich Schuchardt Jan. 12, 2019, 10:25 a.m. UTC
Make system_guid const.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 disk/part_efi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Jan. 16, 2019, 9:35 p.m. UTC | #1
On Sat, 12 Jan 2019 at 03:30, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Make system_guid const.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  disk/part_efi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Jan. 19, 2019, 2:52 a.m. UTC | #2
On Sat, Jan 12, 2019 at 11:25:25AM +0100, Heinrich Schuchardt wrote:

> Make system_guid const.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/disk/part_efi.c b/disk/part_efi.c
index d6bb53e6b5..239455b816 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -66,7 +66,7 @@  static char *print_efiname(gpt_entry *pte)
 	return name;
 }
 
-static efi_guid_t system_guid = PARTITION_SYSTEM_GUID;
+static const efi_guid_t system_guid = PARTITION_SYSTEM_GUID;
 
 static inline int is_bootable(gpt_entry *p)
 {