* [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
* Re: [PATCH] partitions: efi: Constify force_gpt
2018-10-27 0:17 [PATCH] partitions: efi: Constify force_gpt Andrey Smirnov
@ 2018-10-29 7:45 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-10-29 7:45 UTC (permalink / raw)
To: Andrey Smirnov; +Cc: barebox
On Fri, Oct 26, 2018 at 05:17:48PM -0700, Andrey Smirnov wrote:
> 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(-)
Applied, thanks
Sascha
>
> 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
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
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