Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp415799ima; Thu, 31 Jan 2019 19:38:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IYs3nsnfdYocgcg05jW2a8cQDvMMBjH/09kPnpTQW9meFGe3VqN0DC+nzQ5JrnaIHOzucpD X-Received: by 2002:a63:f658:: with SMTP id u24mr662153pgj.267.1548992286270; Thu, 31 Jan 2019 19:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548992286; cv=none; d=google.com; s=arc-20160816; b=X452Z6sxPAM5RJ3z/Njmmu0D1sz4S1+BooI0oRqkqMjstDXAx/Jl9srPTcdZoSaZ8x q9EgE6o9U7s0L46KRADZ120M/nU4TvixIsfRpN1UVVkaWEk9EtqR5tosxCKRRt7ID4Yy 5Be+I4Jf4OalEeTIuRBCxGYgK2ICNkJDOnFbbOPz5cVgKCEyFQp2I/AaXjekQWbsoOcN kaI0Mfirox1q+wP2bKD+a59uxekpiXXISd/Z/ly3qXv/2yaU4fAsAMuGg+gDkm0MoF6/ JvWXqmx0toLRBLBQMWIPCAvJSnpoT18XCQXAgKZjxrHG5z66n/3zDysMEF1/6/DPKaoe qp8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=NZklMRFPQe3pNfuNIpJoxHUAo+bjS+LAF/uhm5Vm7qc=; b=Av5nUwVbxyrvy17xm+NKrbaD3hKac22u394VbDpNuHD9HtUOT0C8a5TAwrIG4pxNVO mqk0FURZA2lPJGBV4dd4bcjKV/30Q3ahBmrnqoA6lcxcSeOuHGMyCCq0562x71+ro61c Nk0DY2bZnwie26Y3skTcHGwVz2MPBQkLaxbaDqOeMg+iTr6Px+P5diDJ9oqdoruFhUyO zcWhrF6r/PnHEdJnmNguqIO2lZfMVh8oXFq6d7hGspfGmzG8FW7T4dAMGutgQwn89HuO yHF4tca0PW9WGocJnVA6UHpGG5iPiGmcqCm5ucEA1DYrSUIVcu4Bs2tu/v4h8YQ0NBfx fW5A== 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 h19si5978968pgg.274.2019.01.31.19.37.50; Thu, 31 Jan 2019 19:38: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; 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 S1728773AbfBADOi (ORCPT + 99 others); Thu, 31 Jan 2019 22:14:38 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52032 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725807AbfBADOh (ORCPT ); Thu, 31 Jan 2019 22:14:37 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B4B3DA3DB48F0398B51A; Fri, 1 Feb 2019 11:14:35 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Fri, 1 Feb 2019 11:14:26 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH -next] remoteproc: make rproc_check_carveout_da static Date: Fri, 1 Feb 2019 11:13:17 +0800 Message-ID: <20190201031317.18820-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following sparse warnings: drivers/remoteproc/remoteproc_core.c:279:5: warning: symbol 'rproc_check_carveout_da' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/remoteproc/remoteproc_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 54ec38f..5d4954d 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -276,8 +276,9 @@ rproc_find_carveout_by_name(struct rproc *rproc, const char *name, ...) * * Return: 0 if carveout match request else -ENOMEM */ -int rproc_check_carveout_da(struct rproc *rproc, struct rproc_mem_entry *mem, - u32 da, u32 len) +static int rproc_check_carveout_da(struct rproc *rproc, + struct rproc_mem_entry *mem, + u32 da, u32 len) { struct device *dev = &rproc->dev; int delta = 0; -- 2.7.0