From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11725C2BA1B for ; Sun, 5 Apr 2020 14:37:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBAC020672 for ; Sun, 5 Apr 2020 14:37:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="unlIsqha"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YBUX/QBp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBAC020672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To: Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UHN0S4zcuSIZtTM9i2ZMDZn8NuC8WBR+knYnvHF4CPM=; b=unlIsqhavWAWzCziZ65PtNkzB UArvjSppBd9VVSTzJ/CAgoaRN909tY+xx9K+D4rFoVLC2I49gBmiP+lmgEaHUevlinplGy+/uJ3Fe xJUpXoV89H+urhh7vL/w0uxodrZvzBir+oloMRhYVs4fyiBkR+8BCtCTI7w8dObG7AADhxn+XYIpx XbufYxYAAssjre8o00H/tukSvsbxIsNFtPNWK6c21NanPDx92urH8yMSkvWK2OfkSF+rzl0FteDgV bhPuu3qDGbeNWdzlJtru2YFq0iIUewmG/hfQJijtSX/3yvP/TvkT8QnQI9/L7mddh8uA+C7hZMqhe GXH8e7uKQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jL6Oq-0004KP-8Y; Sun, 05 Apr 2020 14:37:24 +0000 Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jL6On-0004G4-Gm for linux-riscv@lists.infradead.org; Sun, 05 Apr 2020 14:37:22 +0000 Received: by mail-yb1-xb42.google.com with SMTP id g6so7253186ybh.12 for ; Sun, 05 Apr 2020 07:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UHN0S4zcuSIZtTM9i2ZMDZn8NuC8WBR+knYnvHF4CPM=; b=YBUX/QBpHavrPbx08qSfbhWxlD//0632rVP7PPw+5ooUiObSkyqF42fevVfH8iZ3n2 CrqexY6AnrVhplA0PyXUkNKbqpCzAIIL2E5IrgGp9Jco/lEQDB7WxrI7+kEQe/Tk0Mgy Wz/DMp/cZU1wQE/zC/20w5pVpHwLadIB+hkxrflJxGq3WAys9evCy49hW6QIqQuVPY1X cBmr3Mc+vCqfOyXu1ZWrKZpOhuccIk63oMN4tBoWKJQMCwLSK1136hn2Bb5ennLFyxHB 4ZFQ5Di6aYLYe2U+EMAy8Z6w+JJxrzGmfGNMAAgED7cqj2Ye7Odk0Gr/7hcKyCyJGO5a gSXg== 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=UHN0S4zcuSIZtTM9i2ZMDZn8NuC8WBR+knYnvHF4CPM=; b=c2qVOvL/WtcErxscaHJhbBk9YAtpze/zsx4QEYn0RO+irCQk+90n1hJfvPJQuuHkGa ENTRlafZE5ADgjlIk69fOH9lMEs2a3Ga5+MSLG2Y9Y3GTDa7UULEpsiybdbTv8gG8G9c 5eAn046n1ZccFAqiWGEnm9pKhvJOjkIZNEGB/Rup3HuTfB0a6SX0LrRldRD+RTEhZcx0 yGGpcjE40+71WjleR61rQciqq+ESelW9USJYBa2ZlOIwZ0tgULC6ne6NTCy+/+j437+E FQpS0f2TrXz2Z3tfTaIvOgyDdkcujhVscULHAFcJm2D+o3WuG1M1R/p54kYEBoXD0YSZ o+VQ== X-Gm-Message-State: AGi0PuYu8M9EVtIncRxw/lh7ghHO6+JIgarTe8pTZxdGg/7nHC9Me4xF KjnNDeFwa09S7z7z12KbpbSY2oxjlCUmrjo5YNc= X-Google-Smtp-Source: APiQypLhSCJzKzKa7GMp1kDQo0x/zD19XBoiLY5yjYmiAf4WNIi99hXylQklXOC+n/1Ys5XG56AMYyMRXVNuZf1VH38= X-Received: by 2002:a25:ae8c:: with SMTP id b12mr26352809ybj.392.1586097440870; Sun, 05 Apr 2020 07:37:20 -0700 (PDT) MIME-Version: 1.0 References: <20200318011144.91532-1-atish.patra@wdc.com> <20200318011144.91532-9-atish.patra@wdc.com> In-Reply-To: <20200318011144.91532-9-atish.patra@wdc.com> From: Bin Meng Date: Sun, 5 Apr 2020 22:37:10 +0800 Message-ID: Subject: Re: [PATCH v11 08/11] RISC-V: Export SBI error to linux error mapping function To: Atish Patra Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200405_073721_562822_5ABAC4D5 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Albert Ou , Zong Li , Nick Hu , Anup Patel , Anup Patel , linux-kernel , Mike Rapoport , Vincent Chen , Palmer Dabbelt , Gary Guo , Paul Walmsley , Greentime Hu , linux-riscv , Thomas Gleixner , Mao Han Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Mar 18, 2020 at 9:12 AM Atish Patra wrote: > > All SBI related extensions will not be implemented in sbi.c to avoid > bloating. Thus, sbi_err_map_linux_errno() will be used in other files > implementing that specific extension. > > Export the function so that it can be used later. > > Signed-off-by: Atish Patra > Reviewed-by: Anup Patel > --- > arch/riscv/include/asm/sbi.h | 2 ++ > arch/riscv/kernel/sbi.c | 3 ++- > 2 files changed, 4 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng