Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1536096yba; Thu, 25 Apr 2019 01:12:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPKWb31EkKwwMlIEO/+o/8TZ9V4MxH/Ime4qKY4Cp24qHsjKrnI4VojmGrgg8I8x3cKfF2 X-Received: by 2002:a63:5110:: with SMTP id f16mr16785127pgb.107.1556179923338; Thu, 25 Apr 2019 01:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556179923; cv=none; d=google.com; s=arc-20160816; b=oVEpzma8r6DTaXdk5scfxqKX7e4XLwlj0doCijHW/hV1VGKAivFN8zrmdSRqwizNBw d1ITkP4Hs7MNTf2jBNoZVOQwLMYSZC+0neKi3ScOsgcRtwsIpSqIAesfmQFFQ1UeXc2z 3adSMjLWmWiVlqtRg8R/kpDReX7moCIBPEXkJCQfKaIXdE+nobRRE4ghR4P3s6WmKlOX 4V0BNbBe0Ch5yY3usYhqygNwzPU8DgBNzTwrmXWRWKi5POixe5flhwvk6xxsPqaB/32C EvIa8OBi+VqEAL5nvEN3dcqwpFwgevJ/V5zuqRWIe7RrlNKm1W5s7wI0jfigv2V394gh OWsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=b5ZliQNL3dHlGlonyzY7/r/CLr+V6C8KSnOz63CTxII=; b=TE1ZdLpLNg5B3KK0e7II1zLBstb5wv9bhOOnCBwK0w3zy2KdmchrZXoT+t6Nn38IOW 0LSzDAifWlSfjrKYWEh5pPctROCGflSlaZnagf7mao13AN0kJTlnt/yD7H61auVQF+JH O4iYBDuFsVYo9G7IRjoQrU4Ig10MBx7Y3uStybQZzQkLA0qNgsEbsd3eP1Ipok90/FsU mrgcZBFRiPIBixT/AuMOzc+yaNYzyhlQmmKov9xRWogD0k9N0+A3dWw8wrnDkpD0jD7g yleRGV065SwF1BgnsRBL/Z92J0kKf6GRGXlXbB+v0ecqXFE1Zy0aa4h6nLCK1zhXwBXQ +f6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=eKhdo0U7; 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 d138si23563311pfd.178.2019.04.25.01.11.47; Thu, 25 Apr 2019 01:12:03 -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=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=eKhdo0U7; 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 S1728921AbfDYFE3 (ORCPT + 99 others); Thu, 25 Apr 2019 01:04:29 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43275 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727707AbfDYFE3 (ORCPT ); Thu, 25 Apr 2019 01:04:29 -0400 Received: by mail-wr1-f68.google.com with SMTP id a12so5047550wrq.10 for ; Wed, 24 Apr 2019 22:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b5ZliQNL3dHlGlonyzY7/r/CLr+V6C8KSnOz63CTxII=; b=eKhdo0U7s5plIJ+LRJ1d9Lll7ykJncW5GJs5IJWk7tTVQ+OWSKARiKQ8fyi5Hfx+8Q BkaKhcBBYU27CcHHoVQADYBovQByoA9mFs9LiJYGjK2Y+avu8mCsXa3FRp4q4E7ZG8r8 wfcr/ZE7ACuH3eGXkfjjCs2twKKHRiqfD12AGBBwFseMO5wkr07H0k9ZDXA/63yOsC43 tn8PeR8XmKkCCT/FiF3OAP82qkmI/Pmvll8k4AETGJhiXaPS47cZeZV8XXGuqEGHWiBz ZruDcGsRam5K2eUG73F+wSKxxDduqMQD0B5fUEh238PdTnNqwdDMCzVrNB1JNM9BFwC0 Y/xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b5ZliQNL3dHlGlonyzY7/r/CLr+V6C8KSnOz63CTxII=; b=Xi+tEDMmElJf1DeT3q371qUoGnxRDAccwVuim7ikRiSU3nVFDVR58pauHzFu0RBNeC V0NoNjVIeGdWgfBmRmoelRw3MnXrLHWava//YwcXcBt31NuFfTikm+91Yst56BHa9sk9 RQmlKkANiCtQ28UWAAlc8OZjh5jDL9HeczokI9YmDmafcbB0odY9umO/Qw+u2r/1SXxP nr9AgZt/hm3hOTgr2sd9xfvoP5dnD1xQlu4MzQQKnK4TW6UTn25hSSidiDPgyCJS/ci+ aVGYtBQpqG0jPPh2kU0RLDpMqKYJTl2/uEpQ//UyWFGWSumpjrvSewp5MxkTMppczIUf l/og== X-Gm-Message-State: APjAAAUiPdtBGRnkwpdhUF3gWdHl6rsKEVn0jHm2ilIrJza1lLRzHSlm WCbtmlSjr3wuDBOYQgX58Nk2pmwHzF+ruxxdsjXMUg== X-Received: by 2002:a5d:5108:: with SMTP id s8mr21951551wrt.99.1556168667185; Wed, 24 Apr 2019 22:04:27 -0700 (PDT) MIME-Version: 1.0 References: <20190415093648.7525-1-anup.patel@wdc.com> <20190415093648.7525-3-anup.patel@wdc.com> <20190424062947.GB10400@infradead.org> <20190424150135.GA19543@infradead.org> In-Reply-To: <20190424150135.GA19543@infradead.org> From: Anup Patel Date: Thu, 25 Apr 2019 10:34:16 +0530 Message-ID: Subject: Re: [PATCH v3 2/3] RISC-V: Add interrupt related SCAUSE defines in asm/csr.h To: Christoph Hellwig Cc: Palmer Dabbelt , Anup Patel , "linux-kernel@vger.kernel.org" , Atish Patra , Albert Ou , Paul Walmsley , "linux-riscv@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 8:31 PM Christoph Hellwig wrote: > > On Wed, Apr 24, 2019 at 12:15:45PM +0530, Anup Patel wrote: > > We need these defines for programming HIDELEG CSR in KVM kernel module > > so it will be used at multiple places. > > > > > > > > http://git.infradead.org/users/hch/misc.git/commitdiff/1221f5c32345ebe7ea2c1cd6e8a01ad4b422aaba > > > > You can certainly use these defines in your nommu commit by using > > "#ifdef CONFIG_M_MODE" in switch case of do_IRQ(). > > Or just keep them in the current format even when you move them, as > that allows everything to work with a single ifdef at their point > of declaration.. Sure, will do. I will send v4 soon. Regards, Anup