From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A02C433E1 for ; Sat, 16 May 2020 15:52:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF6F9207D4 for ; Sat, 16 May 2020 15:52:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HTEtd/o1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbgEPPwn (ORCPT ); Sat, 16 May 2020 11:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbgEPPwn (ORCPT ); Sat, 16 May 2020 11:52:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288EBC061A0C; Sat, 16 May 2020 08:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=0jodEySlCm4LlCAkt1IFjMwE1bcEpTs7CKocuMqqKIs=; b=HTEtd/o1jYXt5tFWLMg3yw5VTB jafi4+mq4NVtr2t5FgBZtbDN5gMvS7f18rO7CiXw8ksdpBEA8axSP53RxjuMuZ0/NDw2ZR7CkzPtp YK0XLHljpcF6lJwsx9yEbuxo24GhKdEmqw01wYKDXYKAiIfAje7AAm4HHvoE7zIpCQd2D9TAHkCu9 JSiBMoi36/U1KFIzi3C3Kytzm4eDJwR8tg5VzNAzgbPLS1zvZTSIXRkMgRr/nb+5eIfd5WT0P01HW nwpFLongpfCvr1fkn6kTAqa6WThkbifpl69GyOtJapkYKyNr40r/vYkndGY7lmYB+6q2LwMjdYeuV 8VglOWTw==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZz7C-0001Dr-UZ; Sat, 16 May 2020 15:52:42 +0000 Subject: Re: [PATCH v5 5/6] partitions/tegra: Support enforced GPT scanning To: Dmitry Osipenko , Jens Axboe , Thierry Reding , Jonathan Hunter , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , David Heidelberg , Peter Geis , Stephen Warren , Nicolas Chauvet , Ulf Hansson , Adrian Hunter , Billy Laws , =?UTF-8?Q?Nils_=c3=96stlund?= , Christoph Hellwig , Ard Biesheuvel , Davidlohr Bueso Cc: linux-tegra@vger.kernel.org, linux-block@vger.kernel.org, Andrey Danin , Gilles Grandou , Ryan Grachek , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Steve McIntyre , linux-efi References: <20200516153644.13748-1-digetx@gmail.com> <20200516153644.13748-6-digetx@gmail.com> From: Randy Dunlap Message-ID: <6d86e17f-6431-e9eb-6613-e8d6e889e079@infradead.org> Date: Sat, 16 May 2020 08:52:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200516153644.13748-6-digetx@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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