From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH2F3-00039d-2i for barebox@lists.infradead.org; Mon, 29 Oct 2018 07:45:42 +0000 Date: Mon, 29 Oct 2018 08:45:29 +0100 From: Sascha Hauer Message-ID: <20181029074529.nkuerpz2b6ecc2ao@pengutronix.de> References: <20181027001748.26931-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20181027001748.26931-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] partitions: efi: Constify force_gpt To: Andrey Smirnov Cc: barebox@lists.infradead.org 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 > --- > 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