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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux