Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2727031ybl; Sun, 2 Feb 2020 05:22:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyjjo1WP7iahIdjQx5axsbXde2VB9goxp2w978FD9/sgRn1qM6TVQxPBunGuynrpdGMGfUa X-Received: by 2002:a05:6808:244:: with SMTP id m4mr11965427oie.125.1580649764008; Sun, 02 Feb 2020 05:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580649764; cv=none; d=google.com; s=arc-20160816; b=Mlf8AkQf1RQGaolNBI7rfvz+PetXQ8cFgAWNivp2w0xj0jLeFlCweTBwpoNigXUVtY EO9Oo9WJQhczdfDFeHXcaggdx2Gj9TFf6/Bh6tZPdwpSV7GiHb+0wUlT02XZeVKabToq dou4lnLEsZywtiJsG5VX7Pvq2rr7XhzN9LSffKEJwd2lHgKyHZ1PTlqpH2a8FMdRmjqb MZTtoiuiCy0Yq1l0E2PNbDA+cPQ42vmxSALortAi8R6Bq8s6UTNulwB/qZE0X+OLIhij WBPeQn60ynPoTcVHnJghYM3c39d0sTtyJt4kP8n9w+UJnDlnCsbDY35WAuNKE/BpV4Za E8vw== 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:mime-version :message-id:date:subject:cc:to:from; bh=t4xtfc4FmcN3OuIbaMtlXtlDTwOpwKNB5ofKb1IJNhk=; b=SH0mAsPAZVq3Pl5kJQeZrzxlDl7K0Ai5ybztSf59rGtJeo9gT5wpL2sZN7iLvVhNRh dvymMNE2Oj7W/7Kz5Dt7C2yFtPtyeniZGLI3qZkntllOJ3WTOiknpdd1mBMUqU6QRhMt gDjJNac86PaeDbilhdKqtYoQ4qrM4cxZfhnlWmid/ikdRohHyYWqiOnPasW7x7KOwDva EAj5mifSBv/FA0vLdtEuEiaPA5XGvH9HLSnLpYtVV2fLSWDMKr2QkYVXSBRK/wPXqXIU K4UXvuPudfg7D/jsXER+3rfR8DBZ+olk7Ft8kdo0n4kVuKtJ+6/ZyQ6MYLC1SM/4KbXo 6xqQ== 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 b6si1102407oie.181.2020.02.02.05.22.31; Sun, 02 Feb 2020 05:22:43 -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 S1726912AbgBBNVe (ORCPT + 99 others); Sun, 2 Feb 2020 08:21:34 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9680 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726342AbgBBNVe (ORCPT ); Sun, 2 Feb 2020 08:21:34 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1CD0019DDCFA158EFFD1; Sun, 2 Feb 2020 21:21:30 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sun, 2 Feb 2020 21:21:21 +0800 From: Chen Zhou To: CC: , , , Subject: [PATCH -next] fs_parse: make fs_param_bad_value() static Date: Sun, 2 Feb 2020 21:15:46 +0800 Message-ID: <20200202131546.30174-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: fs/fs_parser.c:192:5: warning: symbol 'fs_param_bad_value' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- 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 fdc047b..904e91f 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