Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1307474ybg; Fri, 18 Oct 2019 15:36:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHf9vsJC8UztHuHluXD3tMzgeyQNoaDn7qc3+zmTimuX0rSUrPcCPUoX0viC246pCj/CJm X-Received: by 2002:a17:906:298f:: with SMTP id x15mr11061960eje.50.1571438201298; Fri, 18 Oct 2019 15:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571438201; cv=none; d=google.com; s=arc-20160816; b=mRe78EZohjWvvZKeSD4KILzhJkzfXcH+kDJORVZNzbVQYYXsXQBe++iIolxnKquWVd mq9feT/b1l1OWyOV5C6zpbz2ZHdMdRXeXBw5DEHZaR1Tzxltn1OiUFwoFy7qUKW4d3Sa R0iWDOARmjEa4UyDYx2AtohjYrjoY+MKM6AwYlwgf59saOXEnCRY7EC0/A+wYnrXu41C 5JVaj7ZpkO9G9tves5yNuFhIWbscogBoJanX1CPwAA68+mn1QtXbpzqN2ZDmDX1doRF+ v0vsN+kdcAzu90joHhmB/Rn92jY9ELJdEp2uU33fuF11KzoFQXVUTlo4DSC2suBxDUC1 DrkA== 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=4IN8nkOuZaw4qMQqgoM+lr6oMWm+8vooDBY/2Fj6u8A=; b=Zywdkq83br2S7mCXcgJ/f0vzLPlzFRcGQDVWo+noARi+XDzfaWORCJT72D01ycrgPp deTVbCxRuE/xWoca60iwZvfoh4Fpx8KAo9v0umlYZNaoQNfafXBa6sUtv2TG5fJexBSA Rd8T8uQWTREN5Jk255Y0RFVwR8htzs6T2ZodIwIP0GaMXWliqTNeH7u1d46Acx/QJfrj 3wAOQB3DOf4SE7QqHCNBxlOHsxRBRsH2mxpPtVXmL9ekSPARnOjKNNHFYNc5RfD7KEZQ I/OaEhYaToWRPrMrZHXQy/Fh7emC8VoYu7rm1mZaE/5TZqkVVA1NlWqXvI2xX2kH5Iky 1kEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=cm6uu8Lp; 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 s9si4374308eju.298.2019.10.18.15.36.18; Fri, 18 Oct 2019 15:36:41 -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=cm6uu8Lp; 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 S2407547AbfJRFUU (ORCPT + 99 others); Fri, 18 Oct 2019 01:20:20 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36992 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbfJRFUT (ORCPT ); Fri, 18 Oct 2019 01:20:19 -0400 Received: by mail-wr1-f66.google.com with SMTP id p14so4737600wro.4 for ; Thu, 17 Oct 2019 22:20:18 -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=4IN8nkOuZaw4qMQqgoM+lr6oMWm+8vooDBY/2Fj6u8A=; b=cm6uu8LpVpbMuL7DTMw6/Q94OH+JJ/d/EbywAS5toHgB/ZqGU2lf3f/Y7MvvSD8lq0 zNa9dTRgHlPFKlPi86zmTIIkzEww9tHfPahEgiexjHmiad5TCjHzyaOZqtatTvUT+Hpd 3gK91DBP38CMpuk5/U6gqYK7VIe9sq2MO2Iu5sNIR1MhEQOVzhbghc+gB1RZPw8AFrqx imhGyqmHueePDv38KOcLpANTNfPnCBMsQY3LwE8BQktBZ9vBz/ffbZuew4YQAZ5/+IG3 trx2cV7+nnnj9WZC90wmQxPUY+Xz3PEerkymbiEcJxxiop6/tPvpOhwfFgKfL54zUZzk ig2w== 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=4IN8nkOuZaw4qMQqgoM+lr6oMWm+8vooDBY/2Fj6u8A=; b=ubJClb8NuJHd5C7r0kVLBuN4HwmTqYBecSsCOve8Fd0oiT74A6ovwJKpoAvmi5/nqv kMtKowlLN2aWlOdgbpdYwEvhiJGrSHHXmUCRDFi/1RJjjTLnW9SBnA3A+IW4H1vCZ+Le 5RJp0h4kDFd2yHReAlp8gxUO0jhz8In5qsT0ybzRahg6qR3bfOBZ0O08iuoXekJjNQRe shvWtMlxkCJhEimWNAZInfVfQ3nvxvzAT81cx575UrPBHbWj7kpF6jdwjqPmjwQuJdP4 NCR2O3VKJqxrTjkJzSDo93Mx5dJOJjHxFyQPepQLJwqe2cxuDOl23S6lb20YIF/Ter9a SQnQ== X-Gm-Message-State: APjAAAUCaInQfdRKYMU+N1xvkG2Q4jMrdjyQR69NMCi1r4nE2c1ju2Nq HyXz6bH9p+fx8/u1P6o+1ZhjMEf0WNcABc0cUQdjUxvSTUg= X-Received: by 2002:adf:f145:: with SMTP id y5mr5400621wro.330.1571367191529; Thu, 17 Oct 2019 19:53:11 -0700 (PDT) MIME-Version: 1.0 References: <20191017173743.5430-1-hch@lst.de> <20191017173743.5430-6-hch@lst.de> In-Reply-To: <20191017173743.5430-6-hch@lst.de> From: Anup Patel Date: Fri, 18 Oct 2019 08:23:00 +0530 Message-ID: Subject: Re: [PATCH 05/15] riscv: poison SBI calls for M-mode To: Christoph Hellwig Cc: Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv , "linux-kernel@vger.kernel.org List" 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 Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > There is no SBI when we run in M-mode, so fail the compile for any code > trying to use SBI calls. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/sbi.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h > index 21134b3ef404..b167af3e7470 100644 > --- a/arch/riscv/include/asm/sbi.h > +++ b/arch/riscv/include/asm/sbi.h > @@ -8,6 +8,7 @@ > > #include > > +#ifdef CONFIG_RISCV_SBI > #define SBI_SET_TIMER 0 > #define SBI_CONSOLE_PUTCHAR 1 > #define SBI_CONSOLE_GETCHAR 2 > @@ -93,5 +94,5 @@ static inline void sbi_remote_sfence_vma_asid(const unsigned long *hart_mask, > { > SBI_CALL_4(SBI_REMOTE_SFENCE_VMA_ASID, hart_mask, start, size, asid); > } > - > -#endif > +#endif /* CONFIG_RISCV_SBI */ > +#endif /* _ASM_RISCV_SBI_H */ > -- > 2.20.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv LGTM. Reviewed-by: Anup Patel Regards, Anup