Received: by 2002:a4a:3008:0:0:0:0:0 with SMTP id q8-v6csp3639904oof; Mon, 10 Sep 2018 18:35:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbDCDnlMS2U4k+LFNBJxa0E24760MQatjL6FfEaV3/SMpqgEMzRGrj+dJq5VSNnH1njbyPR X-Received: by 2002:a63:b914:: with SMTP id z20-v6mr25525054pge.396.1536629728421; Mon, 10 Sep 2018 18:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536629728; cv=none; d=google.com; s=arc-20160816; b=05sTpTdEVhyLGFcB4oMAZ3JgUb0cS6sNexJX7E3SmoBC9d730dsd1z3Ye82yro1vCI VCjpEQru5je0YqRJ5w0G3XzXlyhOjKOSwFhCfpmiFqksajXCvitjWVE3XijHxKaoEISN U45fvwYbVkNCMwfFgrtBZKtAgIe6TcmGaeL1W+K0xpjQXhoIk5ZUM2gXtElxRbQpR04k eVj0bz/nmQ+iGuPOYaF/jrHZUZqbfR9IFnZrnLjUU65iRRQrw/px9ilLJ7o81qJnAhsy 2uW/6u9YHE+ZMpy2NxtpTz7RPc0mEaMDGH1OT0UiVCJxPerWMz5drCwsNsyHM4PCgm4g oqWQ== 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:dkim-signature; bh=QALZvSipCeUGIppvNWy6b6Ey4qwbe+sxCVcMBd+/v/c=; b=P8VdwtRHdQXSe68brdBggJ/dSwLEIUzw4kaZspKvO8mzpoBTQD9AQFd3EkTkTTL91d 37yzs+Ut2j30H0B/R4rI/1zI7APXMOTUoJIi2xWPb5T8D64oo+wwI/Thlkp13WSrzNdX yASsLstSMuioEdPaXnUXmzaMOJo3g2jHMC+S2d0ZbV4VzjJp9F4FBQwmX3UmEVFihZ+F uxWiatxxOFd+2NE7mrJ9Bn/lCsK6h9+xktTwqX8RIv4eArSvk6/kqb9kKsWLS2Eo/D/R PvlSQGbX8a2zU5in9X0H+997M6hGvlMmrJ4Y+5KDdTKLrY2wBwuwSTjj2AKnZfdlcWyM euPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=eMAUKi32; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si19389664pgt.655.2018.09.10.18.35.10; Mon, 10 Sep 2018 18:35:28 -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=@wdc.com header.s=dkim.wdc.com header.b=eMAUKi32; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbeIKGbv (ORCPT + 99 others); Tue, 11 Sep 2018 02:31:51 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:61239 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbeIKGbv (ORCPT ); Tue, 11 Sep 2018 02:31:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1536629705; x=1568165705; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=waF1HyBAH6Mk535gQBIXxmVaigK6DDvR3biGKMiZ2gg=; b=eMAUKi327YSvLs1dr69qWvMmK7sgTPwQ3qW3ncPLLnCUuTPjRAA8G1SU BAs1bzHVnpi/QTRbaQAX/MUxZJFdsoWif00VGzZi9ERqQZsmNUNki28tN LWONPr5jP+mQ7s/yuAx8T/fPoPwCjJUBWHUxmiOs8N4Ma2uyAQeulzfBg qNnfWQIjR4VMU6WN6bFcO4EvRDJ90r9Shi3hBo/4Ifg4G+rOzVUULJhnO m2LYo2JlLCgqrCb6u5gf7Un+Mr01OXZvX+BUvKXnVu7G5PswglWRIQ3WW vuU3eMioSaARpalYXO7nb/oJoCu7Eg4Sty2rLrux71VTEeG2t/7CBhk93 A==; X-IronPort-AV: E=Sophos;i="5.53,358,1531756800"; d="scan'208";a="91082084" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 11 Sep 2018 09:35:05 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 10 Sep 2018 18:21:29 -0700 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.196.159.148]) ([10.196.159.148]) by uls-op-cesaip02.wdc.com with ESMTP; 10 Sep 2018 18:35:03 -0700 Subject: Re: [PATCH v3 02/12] RISC-V: Filter ISA and MMU values in cpuinfo To: Christoph Hellwig Cc: "palmer@sifive.com" , "linux-riscv@lists.infradead.org" , "anup@brainfault.org" , "mark.rutland@arm.com" , Damien Le Moal , "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" References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> <1536221135-182613-3-git-send-email-atish.patra@wdc.com> <20180910112418.GB12979@infradead.org> From: Atish Patra Message-ID: <4633e2a9-868c-40bb-a6b3-366842c93f0a@wdc.com> Date: Mon, 10 Sep 2018 18:35:03 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180910112418.GB12979@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/18 4:24 AM, Christoph Hellwig wrote: > 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 > Fixed. Regards, Atish