Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1749959ybg; Sat, 19 Oct 2019 01:41:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLwRPAbNHgB3tlQywG71ERyDPIwz4ogAPm203bDvCs63u5UkCspL5KThAk5fff8pHaCLvo X-Received: by 2002:a50:bac2:: with SMTP id x60mr13967322ede.96.1571474484012; Sat, 19 Oct 2019 01:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474484; cv=none; d=google.com; s=arc-20160816; b=mIjDdt1WJSQWcJLVwE+2DMZKrjn0xJgoiONpBy2uXtklrOODzayP98TqQuVmy0/64F Cl+NdEKK5wKe1YeSRf+q1Rd1sT+dfjUcu1WJoaHYoL2NvAcagRV549NJbB076rjlmoLZ hawIHM1DQE3+Vt5YFa6ZKVd0xOhaAJkUoQKPbMM7zwf5BwtYxzX0FFZVBq0x77Uqx+VW vROlxo2hBCVbNtkB6Vai47mZJ9O3SdIRViGAFEmL3qooGvKFSHfrrlDpNSEJapOK3sCS WJJU92zq4RsHOZKMTl9Fdpi82R7n8OQcO1tDkKjwZND32Bz91QhMExznoxP6JZOIKtYp ObcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=io/O687m/W7ci1wPYS/GrUNDqtDYiSuUJyc8a5G6h4Q=; b=BwTOnGfJmEIRAT2CvhbBcMeEzBGgOFWjwasFZ0BFFQSWCrxmjDinoWa0u3moQ1fqY2 HCWqa3IPvUDaksPN5wJzVhfr78UU5n/mF4Zl5VJG5g+SU/Kn55VkZsn29ekuBcraRrhR ATB38MINEd6znqeAy8Z43/xqmf+iAPxrMnor2i6plsoBU35qDrDGs8+e+mD9swG79loE w+wX4lam+Eb9sf4Aet0aIjONW2/3M65ajJJ3D4RikY5imPPZT2rj8LdRywUO50xwRQAT /Zo1iclIgBS8/l/GnkjLOz6XyLsJu+fXnkjqFT4CtnTXez6EUfvDgbaprShv/07AMaOe mumg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si5118230edc.78.2019.10.19.01.41.01; Sat, 19 Oct 2019 01:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436681AbfJRQU6 (ORCPT + 99 others); Fri, 18 Oct 2019 12:20:58 -0400 Received: from [217.140.110.172] ([217.140.110.172]:44984 "EHLO foss.arm.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S2389074AbfJRQU6 (ORCPT ); Fri, 18 Oct 2019 12:20:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 98337C8F; Fri, 18 Oct 2019 09:20:35 -0700 (PDT) Received: from [10.1.194.43] (e112269-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B9163F718; Fri, 18 Oct 2019 09:20:32 -0700 (PDT) Subject: Re: [PATCH v12 07/22] riscv: mm: Add p?d_leaf() definitions To: Christoph Hellwig Cc: Mark Rutland , Peter Zijlstra , Catalin Marinas , Dave Hansen , linux-mm@kvack.org, Albert Ou , "H. Peter Anvin" , linux-riscv@lists.infradead.org, Will Deacon , "Liang, Kan" , Alexandre Ghiti , x86@kernel.org, Ingo Molnar , Palmer Dabbelt , Arnd Bergmann , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Borislav Petkov , Andy Lutomirski , Paul Walmsley , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , linux-kernel@vger.kernel.org, James Morse , Andrew Morton References: <20191018101248.33727-1-steven.price@arm.com> <20191018101248.33727-8-steven.price@arm.com> <20191018155743.GG25386@infradead.org> From: Steven Price Message-ID: Date: Fri, 18 Oct 2019 17:20:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191018155743.GG25386@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/10/2019 16:57, Christoph Hellwig wrote: >> + return pud_present(pud) >> + && (pud_val(pud) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); >> +} > > The operators always need to go before the line break, not after it > per linux coding style. There are a few more spots like this, so please > audit the whole series for it. Fair enough. In this case I was just copying the example in pte_huge() that already existed - but you're right this isn't the kernel coding style. Thanks, Steve