mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] partitions: efi: Constify force_gpt
@ 2018-10-27  0:17 Andrey Smirnov
  2018-10-29  7:45 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Smirnov @ 2018-10-27  0:17 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

No one is modifying 'force_gpt', so constify it to reflect that fact.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 common/partitions/efi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 64de4cb32..c3ec4f246 100644
--- a/common/partitions/efi.c
+++ b/common/partitions/efi.c
@@ -23,7 +23,7 @@
 #include "efi.h"
 #include "parser.h"
 
-static int force_gpt = IS_ENABLED(CONFIG_PARTITION_DISK_EFI_GPT_NO_FORCE);
+static const int force_gpt = IS_ENABLED(CONFIG_PARTITION_DISK_EFI_GPT_NO_FORCE);
 
 /**
  * efi_crc32() - EFI version of crc32 function
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-29  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27  0:17 [PATCH] partitions: efi: Constify force_gpt Andrey Smirnov
2018-10-29  7:45 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox