Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2952091pxk; Mon, 28 Sep 2020 04:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR3BmJgbcZfoHtsOZbRkTro5U0L95w0EnQxRhs6Ke4r52td0JsJwJk7EUE7jOQeTHMhH33 X-Received: by 2002:a17:906:a101:: with SMTP id t1mr1201520ejy.203.1601293818769; Mon, 28 Sep 2020 04:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601293818; cv=none; d=google.com; s=arc-20160816; b=ZUdW5L5KvoRdff9q43zFBRN/SREZPGZ8cIQr3e6ZL0gEU9ca0I1ONzm08CWcsu/qPQ WjpN4Ui+BKLj9KPC8tnAiZp5a2cPo1yaQmLe9sE7ZZr1Ea2T93Dt/DyXE0GWnBY2WmbA s1LdJEg5ym+YTtNKtB1rhUdWe1fGR8FYPistNJTeRhPSQOdHUIlY6ztraMQh30bNaTcP l1IXbWoHLfiXqNWCQkniXTInctuWY31R2utFi6EIDWSWxg3Kz25i06xWpVIHuO4+YK/r KGkEUXP062mOx8IUt+fxpr9m6RAyB51mfqQ8bB0MH8gHS7E8SiDwwgkpnzdq4z8yNKjW PD1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bHCQbnPiScv8oIRs/Ztloe0lSDxSvC9H95BEaTJAjDs=; b=sbV3OLLboaYygGF4VYDuyTMQPCmRWA/8odlOC3lbp5FeO/1Kxu/gwHQxPMzprgE4Ww 8PndNSD4hSX81ta/543b+S4EovlCcptHmXEVgD+vfDf2RcUiIgPcktM+7frbH60zBG2m ScxnP+/sSTnJFoKCUPAuUjgrZ1LvShCgbcBl86lqY4vaw9fw5cNFY+je/b3fqM1VSRgK rizVgTxCT081826oas9KqNrrJfoiIV2b31csiqXDIkRNJaN8kElNjwCQOmp5Cx5IE3H+ WCouwg/Lbt1O3BCCjoijvwlO0/SAAw7omVhmzR0WBIHo7Nmg5xTItxpEoVQBmFWCpuA+ Wd2g== ARC-Authentication-Results: i=1; mx.google.com; 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 d6si445450ejm.636.2020.09.28.04.49.56; Mon, 28 Sep 2020 04:50:18 -0700 (PDT) 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; 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 S1726652AbgI1LrE (ORCPT + 99 others); Mon, 28 Sep 2020 07:47:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14309 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726420AbgI1LrD (ORCPT ); Mon, 28 Sep 2020 07:47:03 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 982E99327A6E6E9AE8F7; Mon, 28 Sep 2020 19:47:01 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 28 Sep 2020 19:46:52 +0800 From: Luo Jiaxing To: CC: , , , Subject: [PATCH -next] fs_parse: mark fs_param_bad_value() as static Date: Mon, 28 Sep 2020 19:44:23 +0800 Message-ID: <1601293463-25763-1-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We found the following warning when build kernel with W=1: fs/fs_parser.c:192:5: warning: no previous prototype for ‘fs_param_bad_value’ [-Wmissing-prototypes] int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) ^ CC drivers/usb/gadget/udc/snps_udc_core.o And no header file define a prototype for this function, so we should mark it as static. Signed-off-by: Luo Jiaxing --- fs/fs_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs_parser.c b/fs/fs_parser.c index ab53e42..68b0148 100644 --- a/fs/fs_parser.c +++ b/fs/fs_parser.c @@ -189,7 +189,7 @@ int fs_lookup_param(struct fs_context *fc, } EXPORT_SYMBOL(fs_lookup_param); -int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) +static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) { return inval_plog(log, "Bad value for '%s'", param->key); } -- 2.7.4