Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2366752imm; Thu, 20 Sep 2018 12:00:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZB2ZfiPlkS5qse6D/yE7goVJ1ibpRRRAVb82r3//2VICH1gayx2IzTU/5vY5uCNmQlMYfx X-Received: by 2002:a63:7d48:: with SMTP id m8-v6mr38804000pgn.0.1537470023002; Thu, 20 Sep 2018 12:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537470022; cv=none; d=google.com; s=arc-20160816; b=0YgdunEirdKgI51rbKsG7NrfU/s7JkP87+oON3omyFhzrtzf+AR3rfeiYPI1bz2KeM p3AgqKrizFa8gPr/5OuAaKMoXE28dzdhzV/np9dcMEKZNnm+PnyuB2Qe2xZdapaLPl4H mFtVoou7kNGZBSZkjZaFjEpG3DkDot/D9ah60D5Pu96YjZIqkKWrENmuoW6IPWl0zfcH rE9aMjr6cp0LuRA75MD6RP+fVyeJLlhoKucIM+7fZE8bOAiVOVNeILlydZ3tP1GOOnD3 8Y7AqyC3EzBmcbfdF4F60Rk9oQ8H4Fmq7jVz11aVnd/w15vYdHhSqigmrJfpaicXGJIv SXLg== 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:dkim-signature:from; bh=zSC6BQW4NjciVxSVQArEYqUNn+NBfHu1VQ6Oucw872M=; b=eWXNMj2jRLH9FW/bayUms1osxCPahza2jtvxLdKwTYeuLFbDLI9z+9XJDerQZ5ehNw s9ETmRx9zpnnKtgWSk+XXWwgXQu9DouQWXv3BVgV12VVrQhprxuxEQxrp4ZyZL/0f0GF rwS/elBMO0yDtquRONZdrd8Z3NtHgqRbZsLcFbmO2N+lKF8DaqWOH0GApTqRbp3PGcjC zwt0SBj3u4tPJcItcqGcIduw5OjpWSaMjdAIG01yY76rNlsS5YqZNMol6JaKt2Mms1Rl seP4jrPd9cQ6UfWhKtfjFVGFC8s+Q0lZNZeFln2NVAByIZhMArZCqmmmK38Of0zFMW5/ MrxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=RrvuHAdQ; 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 i7-v6si26635938pfe.334.2018.09.20.12.00.07; Thu, 20 Sep 2018 12:00:22 -0700 (PDT) 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; dkim=fail header.i=@weissschuh.net header.s=mail header.b=RrvuHAdQ; 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 S2388365AbeIUAoJ (ORCPT + 99 others); Thu, 20 Sep 2018 20:44:09 -0400 Received: from ned.t-8ch.de ([212.47.237.191]:55120 "EHLO ned.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbeIUAoJ (ORCPT ); Thu, 20 Sep 2018 20:44:09 -0400 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1537469950; bh=0o/45yM+Eb14/1daEP+Aq3odELgSpHRK/o4tBf07UlE=; h=From:To:Cc:Subject:Date:From; b=RrvuHAdQIm3lrXRYh3vnQ1V9FjMPT9J6FA1vh5NumjVegrcpxXchf01/sZ/p5CokD m1+iLo8w+mkUoWt+3C+E4CpBaXyBBOHpa/sf/QcmcC3UAQ4ZWPIy6nDFu+o87Fzd1A Hr72PXeN/Ag3ot7RrtjseUggk39eafDgBYXGdKeQ= To: Gao Xiang , Chao Yu , Greg Kroah-Hartman , linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH] staging: erofs: fix undeclared symbols Date: Thu, 20 Sep 2018 20:58:56 +0200 Message-Id: <20180920185856.14322-1-linux@weissschuh.net> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move all internal symbols to the internal header file and add a missing "static" declaration. This fixes the sparse warnings like the following: drivers/staging/erofs/unzip_lz4.c:230:5: warning: symbol 'z_erofs_unzip_lz4' was not declared. Should it be static? Signed-off-by: Thomas Weißschuh --- drivers/staging/erofs/data.c | 5 ----- drivers/staging/erofs/internal.h | 14 ++++++++++++++ drivers/staging/erofs/super.c | 5 ----- drivers/staging/erofs/unzip_vle.c | 2 +- drivers/staging/erofs/unzip_vle_lz4.c | 2 -- drivers/staging/erofs/utils.c | 2 -- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/erofs/data.c b/drivers/staging/erofs/data.c index ac263a180253..9bfcc549bbf0 100644 --- a/drivers/staging/erofs/data.c +++ b/drivers/staging/erofs/data.c @@ -137,11 +137,6 @@ static int erofs_map_blocks_flatmode(struct inode *inode, return 0; } -#ifdef CONFIG_EROFS_FS_ZIP -extern int z_erofs_map_blocks_iter(struct inode *, - struct erofs_map_blocks *, struct page **, int); -#endif - int erofs_map_blocks_iter(struct inode *inode, struct erofs_map_blocks *map, struct page **mpage_ret, int flags) diff --git a/drivers/staging/erofs/internal.h b/drivers/staging/erofs/internal.h index 367b39fe46e5..d4c4c87bcd35 100644 --- a/drivers/staging/erofs/internal.h +++ b/drivers/staging/erofs/internal.h @@ -547,6 +547,20 @@ extern unsigned long erofs_shrink_count(struct shrinker *shrink, struct shrink_control *sc); extern unsigned long erofs_shrink_scan(struct shrinker *shrink, struct shrink_control *sc); +extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp); + +#ifdef CONFIG_EROFS_FS_ZIP +/* super.c */ +extern int z_erofs_init_zip_subsystem(void); +extern void z_erofs_exit_zip_subsystem(void); + +/* unzip_vle.c */ +extern int z_erofs_map_blocks_iter(struct inode *, + struct erofs_map_blocks *, struct page **, int); + +/* unzip_lz4.c */ +extern int z_erofs_unzip_lz4(void *in, void *out, size_t inlen, size_t outlen); +#endif #ifndef lru_to_page #define lru_to_page(head) (list_entry((head)->prev, struct page, lru)) diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index 2df9768edac9..c41d92e0cb3c 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -521,11 +521,6 @@ static struct file_system_type erofs_fs_type = { }; MODULE_ALIAS_FS("erofs"); -#ifdef CONFIG_EROFS_FS_ZIP -extern int z_erofs_init_zip_subsystem(void); -extern void z_erofs_exit_zip_subsystem(void); -#endif - static int __init erofs_module_init(void) { int err; diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c index 8721f0a41d15..a0d6c620051f 100644 --- a/drivers/staging/erofs/unzip_vle.c +++ b/drivers/staging/erofs/unzip_vle.c @@ -517,7 +517,7 @@ static void __z_erofs_vle_work_release(struct z_erofs_vle_workgroup *grp, erofs_workgroup_put(&grp->obj); } -void z_erofs_vle_work_release(struct z_erofs_vle_work *work) +static void z_erofs_vle_work_release(struct z_erofs_vle_work *work) { struct z_erofs_vle_workgroup *grp = z_erofs_vle_work_workgroup(work, true); diff --git a/drivers/staging/erofs/unzip_vle_lz4.c b/drivers/staging/erofs/unzip_vle_lz4.c index f5b665f15be5..e30e6e2ef05b 100644 --- a/drivers/staging/erofs/unzip_vle_lz4.c +++ b/drivers/staging/erofs/unzip_vle_lz4.c @@ -99,8 +99,6 @@ int z_erofs_vle_plain_copy(struct page **compressed_pages, return 0; } -extern int z_erofs_unzip_lz4(void *in, void *out, size_t inlen, size_t outlen); - int z_erofs_vle_unzip_fast_percpu(struct page **compressed_pages, unsigned clusterpages, struct page **pages, diff --git a/drivers/staging/erofs/utils.c b/drivers/staging/erofs/utils.c index 595cf90af9bb..26b9f97f258a 100644 --- a/drivers/staging/erofs/utils.c +++ b/drivers/staging/erofs/utils.c @@ -99,8 +99,6 @@ int erofs_register_workgroup(struct super_block *sb, return err; } -extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp); - int erofs_workgroup_put(struct erofs_workgroup *grp) { int count = atomic_dec_return(&grp->refcount); -- 2.19.0