Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1031870imp; Thu, 21 Feb 2019 17:00:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IZg+fp+/2mk6iL9xqem16W92A3CEyKltvCJn97ncrEt0LPrJqSy1ZhEl54sljAMZULSgbMU X-Received: by 2002:a17:902:b097:: with SMTP id p23mr1449887plr.36.1550797206366; Thu, 21 Feb 2019 17:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550797206; cv=none; d=google.com; s=arc-20160816; b=hDpfT9IPgKjcvfk6GRZ8lNBwV7ccHvHGWgEBHCueHy3zC8RsFbTuT+bSxydjkX0MR8 CdMieRgz1rn8tagVf5+PvsZ2yaxCWhx1f9HShxv1/P2hpCsJhvjN4RP90NuGbN2uzybJ n3jLUFaYkJrFsX5/JIN1kmNm+yJsSC/8A6w0FvZc1jmpl46R7cNbauN985+VBzFJPPkp ZWI6PKfmZEr0hWbzluL8qDdsd0dbTZWmjTOK4A9nM4HwWVZ2pgURpzOvqpsIkn9uXIPD q2ZZT9Jt4GRzc8t/E2Xs+7SnTFzd91FVnH6bsnGEi/oVGaDBO9vifetNwDzcuKwtmhcR CnBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=YyjuzuJQVPPYqPu8Nw/pNXPG1V3XsmmE0Mp1uYBfde4=; b=TQ5fkzBxHmXPPZPSyadl/yjujAXNfwSV5Xt47BkrQW6aZoo2wj1YDtUeZxcxDt1ojZ KC4ZAwEl4TNLaFWrvg832KNrxhvev3Tr+NhpRHq7c80yeiWXVoHYYW9aB41hMj28/Gg/ aaOeMgR9w5beFds967Hfe7hVqIsPWj29wsCp5/isarVnqppigy393TCh1AmNu+Pr0zgs XnQVH8pJKVvUICmsld57HhU2bYwV+GsXoXc8XTPGO2cP730Xprl5FbhsRLVytzuafnzd du5M+I7k/J3E7+aAYcfYKGrG8CWFYhXx9y88GD1s2sha7twIKlth8DLXzJBt/5Nh2eT1 /DaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uewgRXC/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j132si1138pfc.84.2019.02.21.16.59.50; Thu, 21 Feb 2019 17:00:06 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="uewgRXC/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbfBVA55 (ORCPT + 99 others); Thu, 21 Feb 2019 19:57:57 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:38122 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbfBVA55 (ORCPT ); Thu, 21 Feb 2019 19:57:57 -0500 Received: by mail-yw1-f68.google.com with SMTP id o184so219895ywo.5 for ; Thu, 21 Feb 2019 16:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YyjuzuJQVPPYqPu8Nw/pNXPG1V3XsmmE0Mp1uYBfde4=; b=uewgRXC/Dd/dOocZotGHmzwbAuTdWcMyl6lo+TXJo7rqzujxQw5JnzZ21ayjH3v7YD c42BvrPFL5zZPMGS6Df/IqiFQVXBhFeEdSs1YL+7zOPqHDVPQDUQiNNHbuxZi63AX8NG 7wzhylok75QeSbpOUyh+xGFj/ktmaGvdDyI76JfbAiNE1+FjT10UrNnaAThFjrA6QBcI XCkMkA8lIZI3VbqbktZX7N14vYoK6lwmESKVsPTLUFjoU+Nkwams9GuJhOEnyr/UdVxQ H321gN6kISNK2U/llVnc3R/nC8J1mhmSGMgSwZeR7yqpFcnkllPfywCsyCaacWF8TW1q 0MOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=YyjuzuJQVPPYqPu8Nw/pNXPG1V3XsmmE0Mp1uYBfde4=; b=Ar9UQAjdUE1FE8GXNPqZ74oe6wwjoc6oMtZ68bGESx1heLRspCDIlZm6R5TLFGcXJR ZyhZo6rqEFietLlH3DLpRFxBON8f3awdl5Xfl+XvTecO/xkOa3yT9/2E13VKN2Cg5jZT CLvPo5cPi3lTGS89JdHkQ0SPVZhVHiC3RpCRk6OgQjd04m77L7U+jiSuVhwqii0X2Ggk DpNvgW3M3doHXhKnzH1fE94fGxrPCNJW7kUtmPLy0hPakRWz8+pDRYc8VypvhtD1fiTb wHozI1uwj0PBERWiTNSl2B+NQDiemNm6QuWjYWuiDEI0YgZ2uECIoSo3mJfb9/ZsM8hF CPpw== X-Gm-Message-State: AHQUAuahKCSJpfgvm2tTBJPlwLUl4suEgfnMa6E+2tYPCKp7OQmSajPn n0MKAGkHH+tKcAV3TYfnWeQ= X-Received: by 2002:a81:74d6:: with SMTP id p205mr1235905ywc.116.1550797076425; Thu, 21 Feb 2019 16:57:56 -0800 (PST) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id f203sm305993ywf.105.2019.02.21.16.57.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 16:57:56 -0800 (PST) Date: Thu, 21 Feb 2019 19:57:54 -0500 From: YU Bo To: Gao Xiang Cc: yuchao0@huawei.com, gregkh@linuxfoundation.org, yuzibode@126.com, linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Miao Xie , "fangwei (I)" Subject: Re: [PATCH] staging/erofs: fix sparse's warnings on undeclared symbols in erofs Message-ID: <20190222005753.eibd4zj62askcuad@yubo-2> Mail-Followup-To: Gao Xiang , yuchao0@huawei.com, gregkh@linuxfoundation.org, yuzibode@126.com, linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Miao Xie , "fangwei (I)" References: <20190221142845.13604-1-tsu.yubo@gmail.com> <05254fc6-6bd7-7c30-cfcc-2ddff4ac13b6@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <05254fc6-6bd7-7c30-cfcc-2ddff4ac13b6@huawei.com> User-Agent: NeoMutt/20180512-62-03f98a Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Feb 21, 2019 at 10:35:01PM +0800, Gao Xiang wrote: >Hi Bo, > >On 2019/2/21 22:28, Bo YU wrote: >> From: Bo Yu >> >> Fix sparse warnings: >> >> drivers/staging/erofs/utils.c:134:6: warning: symbol >> 'erofs_try_to_release_workgroup' was not declared. Should it be static? >> >> Fixes: 51232df5e4b26("staging: erofs: fix race when the managed cache is enabled") >> Cc: Gao Xiang >> Cc: Chao Yu >> CC: Greg Kroah-Hartman >> Signed-off-by: Bo Yu >> --- >> drivers/staging/erofs/utils.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/staging/erofs/utils.c b/drivers/staging/erofs/utils.c >> index b535898ca753..33cd5ad55cb8 100644 >> --- a/drivers/staging/erofs/utils.c >> +++ b/drivers/staging/erofs/utils.c >> @@ -131,7 +131,7 @@ static void erofs_workgroup_unfreeze_final(struct erofs_workgroup *grp) >> __erofs_workgroup_free(grp); >> } >> >> -bool erofs_try_to_release_workgroup(struct erofs_sb_info *sbi, >> +static bool erofs_try_to_release_workgroup(struct erofs_sb_info *sbi, >> struct erofs_workgroup *grp, >> bool cleanup) >> { >> > >Have you looked the latest kernel code? Emm...yeah.But i pulled linus tree not staging tree :( Sorry for the noise. >It seems erofs_try_to_release_workgroup is already be claimed as static... > >See: >https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/erofs/utils.c?h=staging-next#n148 > >Thanks, >Gao Xiang >