Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1053395imp; Thu, 21 Feb 2019 17:31:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IbdJpA5lKB4hRSm6l0kG0mRvWT7/ZeyNzGVqBMYt2XJA5pWItu3EQ+dzgJQoutWgi/hueCW X-Received: by 2002:a63:ca:: with SMTP id 193mr1480782pga.288.1550799109171; Thu, 21 Feb 2019 17:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550799109; cv=none; d=google.com; s=arc-20160816; b=of9kTVGB+jnvi1f1lQmU4RvX53C+LN3BDydMw/XY9MQujsl6ePGJlAM4WeIeHwmB1+ z1K6RG5eNHyol7Fb+4wDKHKVvcNqYcHetFyfPTk1pGsN/bS1v0eEdSN2bImARbO+ZFFH lnylEMYJrAKN5i4Fk9Vt9vQY/YTxCPzB/4fYRml/5fiV6PLrAHZqM6SZGLdO7Rx0eu0x Nh/aoQu2vMt5FQn6zoJQSn+nezWr5tkZ583wNkdAMyQLZY1ObRb0wV5dnRZVCLh72x5m 97yX1MMPNHsAH1mN1UVHL/TZyTHZqXH1/yLhhYrpFy6zkDa6OKlTscRKl01Ale7qblyy cy8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=O9B4KH5yhXbZip+AhPjW8CE497H/s9J0JplDbKBqxqg=; b=qQrTgma4WzjQ0M4FZyQg8J1bHNmfVSsElvpe7am+KEGwgCjL700T/8PvnnOlcbFVMX nfvzPG91aOLxVKkKmP5Vzf0ksl1d6WTL2PP1MN4pKOQLz3uCREFj3QBYjd8cYk/MiqUv /dYaDVU8ltAcBDZ359g5xMm9fCmepQynkmGDS16zELmYzbf9xVtSsYjhUOxVhp1iFeZB Tynv1Ta8CMvjDuZrGhlvM2Q/pgyYwTFBcUrR1mgvQL5L2/8m97AX97goIJOdYS1aI3id WukRJx2jSDJ3Tt0qhm44SU60HsfURoLFpgeF2YAj526g0mVbMRCu3QWzb+ig+eywET8B qoEA== ARC-Authentication-Results: i=1; mx.google.com; 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 p9si51815pfe.167.2019.02.21.17.31.33; Thu, 21 Feb 2019 17:31:49 -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; 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 S1726335AbfBVB3X (ORCPT + 99 others); Thu, 21 Feb 2019 20:29:23 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:4246 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725869AbfBVB3W (ORCPT ); Thu, 21 Feb 2019 20:29:22 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B2B63B253EADBC8A8A83; Fri, 22 Feb 2019 09:29:20 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 22 Feb 2019 09:29:14 +0800 Subject: Re: [PATCH] staging/erofs: fix sparse's warnings on undeclared symbols in erofs To: References: <20190221142845.13604-1-tsu.yubo@gmail.com> <05254fc6-6bd7-7c30-cfcc-2ddff4ac13b6@huawei.com> <20190222005753.eibd4zj62askcuad@yubo-2> CC: , , , , , Miao Xie , "fangwei (I)" From: Gao Xiang Message-ID: Date: Fri, 22 Feb 2019 09:28:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190222005753.eibd4zj62askcuad@yubo-2> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.151.23.176] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/2/22 8:57, YU Bo wrote: > 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. That is ok. staging tree or linux-next includes the latest source code, you can check them out :) Thanks, Gao Xiang > >> 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 >>