Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2639505imm; Mon, 10 Sep 2018 04:25:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaAu/iEgYvGZQ1Id9ERtolUn+uIGs9zWRrWAai1PjB0yK79DXTFZ2SfQZG2E+8/Sk5Zm2EO X-Received: by 2002:a63:8f17:: with SMTP id n23-v6mr22252321pgd.131.1536578742140; Mon, 10 Sep 2018 04:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536578742; cv=none; d=google.com; s=arc-20160816; b=qWPDf3sc93ptRa0ROGzR5KNikL4Nj3RGWDFyni//JkmsK8jenhSZT0wZSKyRxyrK0N x7/6Uyqo7u9mUQo3AmPbPjLzRlh+DMae8bWPqnIxN/B987LdnRQ/VdhVASacCtlLm1tg ok2PJVKONLZrcRCWysMrUrjnkKld/gWJmIofpAUylvZ57Md5E5Ualtx+wzFWOg0l5UO9 a5Or4d7CqYQXbb65WKjIF/wPZ871y/R2JI/F++XOc3UxrF5rWkhT0NUuF0DvJDWTCj9B YpZ3QowdZ2+wSqizdiLJ0Rok9LxuvOfIUsgG/oo/hJPwpXIQcYlz8YKN61IH0DIs3XKc qT/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kNSXTFLImm9CvpS2QaMQvLQezNd1uOjtkhblAeLeVnk=; b=R7BPSO01i+dK7sqntx2y30Vnh8uUqZA2OxdL2JKWhknkARn3+GXpNYm56PvSHYuqEM aY1Sg+IzsHwajqcJa5yTq67ccfLojuQKRTapUXyT7gy7WCdTDuCTxbDg3WZQE6qVm6gG 4Qyi8nzAtgZ7RtFQQdmokRDCQYkA47aejBmMaFNf2dzx4zq361d1ouYLMDOXkh8KjF91 kzOiqQRue6iO5DwLvElGfGLMWrpynik+tR1byzY74aECfpv17J+NkMbFU0rHax8WL24V rdymDwiL0AOqqC7+vJuNDsBIKWtNU0LBTvepCIc0aklAzdOx3MqV1O2tIakOTdCNSx55 owkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=naZfNIon; 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 u10-v6si19101458plm.393.2018.09.10.04.25.27; Mon, 10 Sep 2018 04:25:42 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=naZfNIon; 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 S1728051AbeIJQSB (ORCPT + 99 others); Mon, 10 Sep 2018 12:18:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53336 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbeIJQSB (ORCPT ); Mon, 10 Sep 2018 12:18:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kNSXTFLImm9CvpS2QaMQvLQezNd1uOjtkhblAeLeVnk=; b=naZfNIonv8D/QqCzEwrRvmxW5 IycmZ1lXlSTxMawaDnAP4WJ/v8+uW5SZ/Xvh3Uij/XnWlgKqGoWfpZ8/4vGAaKB3UMb7qfLxybxET m+NFHmC9cHvAqS8SdWqG55EfJ0ccN+nCwgixzNox6OR1QjIq9zJe5+I4BobCqqzjaenysXwe8SCcw knin1Q6DmSMjwKEX2WiOowf23u5PWFuT1xxnshsvl5wgrvNusdIYq3lsEpCF3aLOt7vaWYUDIZWnZ t8tnyzWO/hGr5XDsnDT+ZIsgs8kIVrUqwv3GtF0V7XHDkTjX0SGQUWvZrRRxBz3jQoaA4JJvkX3cJ nIREh0BvA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzKIk-0005W6-FR; Mon, 10 Sep 2018 11:24:18 +0000 Date: Mon, 10 Sep 2018 04:24:18 -0700 From: Christoph Hellwig To: Atish Patra Cc: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org, mark.rutland@arm.com, Damien.LeMoal@wdc.com, jason@lakedaemon.net, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, dmitriy@oss-tech.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, catalin.marinas@arm.com, tglx@linutronix.de Subject: Re: [PATCH v3 02/12] RISC-V: Filter ISA and MMU values in cpuinfo Message-ID: <20180910112418.GB12979@infradead.org> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-3-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536221135-182613-3-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 01:05:25AM -0700, Atish Patra wrote: > +#elif defined(CONFIG_64BIT) > + if ((strcmp(mmu_type, "riscv,sv39") != 0) > + && (strcmp(mmu_type, "riscv,sv48") != 0)) > + return; This should be: if (strcmp(mmu_type, "riscv,sv39") != 0 && strcmp(mmu_type, "riscv,sv48") != 0) return; Otherwise looks good: Reviewed-by: Christoph Hellwig