[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2ae298ca-016a-8867-52dd-86d99b9e0f3b@infradead.org>
Date: Sat, 16 May 2020 08:51:58 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Dmitry Osipenko <digetx@...il.com>, Jens Axboe <axboe@...nel.dk>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Michał Mirosław <mirq-linux@...e.qmqm.pl>,
David Heidelberg <david@...t.cz>,
Peter Geis <pgwipeout@...il.com>,
Stephen Warren <swarren@...dotorg.org>,
Nicolas Chauvet <kwizart@...il.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Billy Laws <blaws05@...il.com>,
Nils Östlund <nils@...tan.com>,
Christoph Hellwig <hch@...radead.org>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Davidlohr Bueso <dave@...olabs.net>
Cc: linux-tegra@...r.kernel.org, linux-block@...r.kernel.org,
Andrey Danin <danindrey@...l.ru>,
Gilles Grandou <gilles@...ndou.net>,
Ryan Grachek <ryan@...ted.us>, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org, Steve McIntyre <steve@...val.com>,
linux-efi <linux-efi@...r.kernel.org>
Subject: Re: [PATCH v5 4/6] partitions/efi: Support GPT entry lookup at a
non-standard location
On 5/16/20 8:36 AM, Dmitry Osipenko wrote:
> diff --git a/block/partitions/efi.c b/block/partitions/efi.c
> index b64bfdd4326c..3af4660bc11f 100644
> --- a/block/partitions/efi.c
> +++ b/block/partitions/efi.c
> @@ -621,6 +621,14 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt,
> if (!good_agpt && force_gpt)
> good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes);
>
> + /* The force_gpt_sector is used by NVIDIA Tegra partition parser in
> + * order to convey a non-standard location of the GPT entry for lookup.
> + * By default force_gpt_sector is set to 0 and has no effect.
> + */
Please fix the multi-line comment format as described in
Documentation/process/coding-style.rst.
> + if (!good_agpt && force_gpt && state->force_gpt_sector)
> + good_agpt = is_gpt_valid(state, state->force_gpt_sector,
> + &agpt, &aptes);
> +
> /* The obviously unsuccessful case */
> if (!good_pgpt && !good_agpt)
> goto fail;
thanks.
--
~Randy
Powered by blists - more mailing lists