Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp546703imp; Thu, 21 Feb 2019 06:37:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IafpPVmu+R5zWYxuNtAtokWeCBc7N0SyHT4xxM+Ts3Rp1LErcR8z0qDx3oxz//d/jTwtj0z X-Received: by 2002:a62:1303:: with SMTP id b3mr42048211pfj.147.1550759820238; Thu, 21 Feb 2019 06:37:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550759820; cv=none; d=google.com; s=arc-20160816; b=FXMcdtW53iRtD4wzbYHpfnU6IHBGu92fSsTPXwONmmFWYz/QrDHhKUdJXlb6QDt1YC UWlahJA7l6g6+Qebgw6xpYWFo/iB2pmz3wT4fuHE3Ip74WkqNN8r2DtSIZocR8al0moW c7HKCp6MHIjwEMFUHm3T6aqveN8pIsRAqvOhnbBwpwNAj9putf6GprgQIDVFC37egeix G/aw3hIxrjGd4fXSTNJ0IbSNIbtP/8sWaJ25paUruRHRJzyNOD1T2qggcHwPqbbwl3Bs PBocI2s6JqJIdx5TpRIognwP52RqVLfEWXCoQjx+hP5iWFzq46yfw5ag4R+ZB26oLPqf Q+Kg== 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:references:cc:to :subject; bh=dAimtLnboJju142PTuGRzcmyKW10UiQ4eaQygPJx+uc=; b=zzgCkYPP9Za3MDWx0oQ6EIj2WcWYyHyK25zkqYbo3ZD4bZJl6Gq6LFZNEipEULSKyI 02CnqxawLPjhxR8PR56TRaHRPRnffYz0OIwqMixvRjx3bOYuqlA0ypnelmjFkbJuNPbe T9VPFpovfdB+2fDfA51oPPqsV/qoyWw0AT05nd5XEZyazi+64EKAMk58YM55/FJlbPIK tIdVMK11hUfsyq8aGwBHLgpJfTb1eNGsgfL+Y2RacC7CQgH1D71nYDp6JkWt1GNARphz DW1Pq4hfhumws+57xIAgw4zJNWp0LSJp2klROJoS1GK01yf4ckPwQ5mmHxFECLkhx4Wn Ogcw== 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 h3si21706815pfd.250.2019.02.21.06.36.44; Thu, 21 Feb 2019 06:37:00 -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 S1726621AbfBUOfo (ORCPT + 99 others); Thu, 21 Feb 2019 09:35:44 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:38270 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbfBUOfo (ORCPT ); Thu, 21 Feb 2019 09:35:44 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8AD26E3B38525745CAED; Thu, 21 Feb 2019 22:35:40 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.212) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 22:35:34 +0800 Subject: Re: [PATCH] staging/erofs: fix sparse's warnings on undeclared symbols in erofs To: Bo YU CC: , , , , , , Miao Xie , "fangwei (I)" References: <20190221142845.13604-1-tsu.yubo@gmail.com> From: Gao Xiang Message-ID: <05254fc6-6bd7-7c30-cfcc-2ddff4ac13b6@huawei.com> Date: Thu, 21 Feb 2019 22:35:01 +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: <20190221142845.13604-1-tsu.yubo@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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? 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