Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp593965pxk; Wed, 16 Sep 2020 11:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiz0QfPMfJ2gu59o+FqZ4Z0TR873ihB10whi6xVV22zkS6w+O/vxy/JBjAJJfG5q1i/oGe X-Received: by 2002:a50:eb0a:: with SMTP id y10mr14336833edp.89.1600281683929; Wed, 16 Sep 2020 11:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600281683; cv=none; d=google.com; s=arc-20160816; b=Ck9ER5aV+Qgqk8rTo+ehd+k8nkin/Bc+tcfVmLqvhtfHHngTL4R+O/jHQ5VtxXY7l1 jM3WEq3MrPfsUxCHorRUT7wKHGFZEiyPZe/MGduk5/TJmbD+ogTSU7aZR1E3L44zyMPv 088GDWe62xB1ggiLOyTEZvtitFsCcPDZRplEzzUosPcl2jz/rDso9gXEtGeMbRT9RK43 IimvtCnIqY4Cu2zid292uK2HXdX5NTQYB8i25YHee3KGizG2wCJqywdVkSUFHlrCmX4h JHqKPItKIKALaeHule5x1ae9xIu9Tr3EoyVGeWvMf2p3LIEbrjk1933U3W73nBcHELTd HNjw== 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=L/DYYrdvIoE7wT2OqhbhTOOQxD7gf6WtEwRtgO6kGJM=; b=ktenUquk0Sn60YzGSxOlwBzxYkFuh56N71jb7/f5FzCuSRttnP4m4bFuiBoahLEYC8 DDK6QHGZIbraRjdNMgtt/Yrbo9X2czObWRL7tg+H4ruoKwX7FX/XEYIBoAKFxRNccIDo 06eNabYzDR4DX1PKIl9bWlAgM+uSlZw7cfe/IQlc4f4LHgb5EEKDiFjFXNa9BwASEPb5 Lf90Yom1V6g829PhZQ4czvw2cXBg0KV6kVPaEKY89n+KIOv1BQZfaTXokr9IJd1zFlnx nDFwW7T9UuorCBXKzcItPRX4nNV8Qr7xVgO+R9Cni68Uog4AhxJpcjnOa0Pqzhq0CRjJ vjsQ== 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 u20si11507374ejt.14.2020.09.16.11.41.01; Wed, 16 Sep 2020 11:41:23 -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 S1727761AbgIPSkR (ORCPT + 99 others); Wed, 16 Sep 2020 14:40:17 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46040 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728011AbgIPS2z (ORCPT ); Wed, 16 Sep 2020 14:28:55 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A4C93E28EEF5A1627C87; Wed, 16 Sep 2020 22:26:16 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 22:26:06 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] btrfs: Make btrfs_sysfs_add_fs_devices static Date: Wed, 16 Sep 2020 22:26:04 +0800 Message-ID: <20200916142604.37744-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.174.179.108] 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/btrfs/sysfs.c:1386:5: warning: symbol 'btrfs_sysfs_add_fs_devices' was not declared. Should it be static? Signed-off-by: YueHaibing --- fs/btrfs/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index e7b0e10685d9..279d9262b676 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -1383,7 +1383,7 @@ int btrfs_sysfs_add_device(struct btrfs_device *device) return ret; } -int btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) +static int btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) { int ret; struct btrfs_device *device; -- 2.17.1