Re: [PATCH v5 5/6] partitions/tegra: Support enforced GPT scanning

From: Randy Dunlap
Date: Sat May 16 2020 - 11:52:50 EST


On 5/16/20 8:36 AM, Dmitry Osipenko wrote:
> diff --git a/block/partitions/efi.c b/block/partitions/efi.c
> index 3af4660bc11f..4eb4496fbb1b 100644
> --- a/block/partitions/efi.c
> +++ b/block/partitions/efi.c
> @@ -98,6 +98,12 @@ static int force_gpt;
> static int __init
> force_gpt_fn(char *str)
> {
> + /* This check allows to parse "gpt gpt_sector=" properly since
> + * "gpt" overlaps with "gpt_sector", see tegra_gpt_sector_fn().
> + */

same here.

> + if (force_gpt)
> + return 0;
> +
> force_gpt = 1;
> return 1;
> }


--
~Randy