Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2049530pxb; Mon, 22 Feb 2021 19:06:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7/IR43jlVD+lfIxToCBec1MuPTUlVueafwfiiQ/dqNlGYFbmJkpjtxmvoAF9eywwrbVt6 X-Received: by 2002:a17:906:3883:: with SMTP id q3mr23611530ejd.160.1614049585788; Mon, 22 Feb 2021 19:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614049585; cv=none; d=google.com; s=arc-20160816; b=YewRQiAjMlJIBS4Gk/AjzZwdCFCDIzxobb5ydUCO3xjwjf79/oJjWSnbomxL2JQD9h swapqAutBtqChpBHvB0HekYSGzOA+Fzgrn4hQOyuFiiQyYK6kTpbqqPC6AxCIxlmP9JE M/K7EvolW937z2dYYt3FJzgU5iOZIQa1QeoPxx4S+AUB+S+HmxIL8aYXgLrSALAYI+LB rOnN5RwEPekPZmp+DEJ9ZP3z92X6MeUR8v5w29ss+dPd97LhCdKR2m2SqT9pNTCkkxeE fvyR2HcfuZBvtUI69GrK8h4+A7fsnKTDxMV/hByL2ZAjHH6i/jJpyKBolu9l/zk5xuLi PPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JEuYJuQRqJcKGWuFA6L1ex4F1e2C+KcEnHJZhT9FdZA=; b=rFKnqV06Wz2GRUkOU/dHUd66McaUzjFQ6uI+FzyoNgW4EpWDSJKfPHES8NoBV/59cx 6KEYVJchJZZ+gVcydUqbirMcvFjM8x/Ku35fscNE4EUuSU5vlkdkRPgP/nOEYX5w3BLY OlFileycPe9e3H6E//i9HiNN+h0g6NZMWSvP6jegdHr1kiIhQHSFsPObHlqxruTQ/BVu q9aoxcJlT/kXlwPh1xKPp+Y3TtmC5uVNzqbEUNw7THy/8IqHHvVKZgd73gu1Gy3/yjNd ETgd85HBbCEKXqcqrTewW7jD3mWaE8sclusljMuhbKinprJTeg/CXon/o6Ru/DRwA7EK +hTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=kjYopEl2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si13665827edi.376.2021.02.22.19.06.02; Mon, 22 Feb 2021 19:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=kjYopEl2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbhBWCc0 (ORCPT + 99 others); Mon, 22 Feb 2021 21:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbhBWCcZ (ORCPT ); Mon, 22 Feb 2021 21:32:25 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFE9C061574 for ; Mon, 22 Feb 2021 18:31:44 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id y202so15551085iof.1 for ; Mon, 22 Feb 2021 18:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JEuYJuQRqJcKGWuFA6L1ex4F1e2C+KcEnHJZhT9FdZA=; b=kjYopEl2v1bGXaZ3fcTZl8ehpMYQyp4AdStpVTDecP7qg8SCWEtfp1W+/SIfxaZ5qC UO6tj7bkHxdq43Jq8ovn4lZsH8SFez5lGU6KQGLSo3kywx0r0UJw3L8ttr+lzVhqAluK fHGTnotTk15c4WiWuQZ/TraPWVR5jL8Iv5Tjc= 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=JEuYJuQRqJcKGWuFA6L1ex4F1e2C+KcEnHJZhT9FdZA=; b=d6GJwVYlJ8+kGqEAAKA1/CVB7/2GLZ6qgJz4GHumdStWB344FsMvvSL0buBmL+WvqL /J/88s55XETJG2+8xKvCsASYjijo/eGyjT4ufJWzCz7llomyM9pq1idcwooSKaa1OKF+ ybUVKONsJvHtSLjJ1/mDUv+FaOnuesug361XPGjMW3QjuCqEBxSHcbfTTOykfHKWYNwy 8V3sSR844eoRsXMBxfdRBr9N5ILlytQmUtC1HKAwdQlFLdBm27ymwx6Jn3bn5Dc+w8Ld UUTmx51NRxl84y4joWz3BJV0MgFVZne0EhnDlfMyCgjaB8CECekkOrsJcqyg0EzXgkhz T73w== X-Gm-Message-State: AOAM533XdocaUU0Oiem9naGUbI4LCQAel10tX1XE56rEzFKW8Si37fe9 lOCOekqSYFAKeHzLhe1svcmjsOs3kvDVE1z6cya6 X-Received: by 2002:a05:6602:3283:: with SMTP id d3mr17836814ioz.53.1614047504319; Mon, 22 Feb 2021 18:31:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Atish Patra Date: Mon, 22 Feb 2021 18:31:33 -0800 Message-ID: Subject: Re: [PATCH] RISC-V: Add a non-void return for sbi v02 functions To: Palmer Dabbelt Cc: Guenter Roeck , Atish Patra , Kefeng Wang , Albert Ou , Anup Patel , "linux-kernel@vger.kernel.org List" , Paul Walmsley , linux-riscv Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 5:52 PM Palmer Dabbelt wrote: > > On Mon, 22 Feb 2021 14:38:28 PST (-0800), atishp@atishpatra.org wrote: > > On Mon, Feb 22, 2021 at 12:23 PM Guenter Roeck wrote: > >> > >> On Wed, Feb 03, 2021 at 09:26:43PM -0800, Atish Patra wrote: > >> > SBI v0.2 functions can return an error code from SBI implementation. > >> > We are already processing the SBI error code and coverts it to the Linux > >> > error code. > >> > > >> > Propagate to the error code to the caller as well. As of now, kvm is the > >> > only user of these error codes. > >> > > >> > Signed-off-by: Atish Patra > >> > --- > >> ... > >> > #else /* CONFIG_RISCV_SBI */ > >> > -static inline void sbi_remote_fence_i(const unsigned long *hart_mask) {} > >> > +static inline int sbi_remote_fence_i(const unsigned long *hart_mask) {} > >> > >> Error log: > >> In file included from arch/riscv/kernel/setup.c:29: > >> arch/riscv/include/asm/sbi.h: In function 'sbi_remote_fence_i': > >> arch/riscv/include/asm/sbi.h:150:1: error: no return statement in function returning non-void > >> > > > > Sorry for the oversight. The return statement is missing. > > > > @Palmer Dabbelt : Can you fix it in for-next or should I send a v2 ? > > I just fixed it up. Thanks! -- Regards, Atish