Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp379099ybg; Tue, 22 Oct 2019 22:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5LiraqCp1+WYhuiu0qKoglWsvm+JFCqDvgXesn3kFPRYmSEUWIBTO//DBcMoC+LwK8e/m X-Received: by 2002:a17:906:a884:: with SMTP id ha4mr19830248ejb.192.1571809738291; Tue, 22 Oct 2019 22:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571809738; cv=none; d=google.com; s=arc-20160816; b=QsEXetEOMs4cQ0ywQqsSEhnBIi5tUgvGwfWChWL/Im6G3XLyHKx6VLiYfV/yXUgeIC mjohxQprQurQWQUK+29iwJSRwC8cAc4ubA5p/51nLuuTQl6d6YeJAWRVc0/21ca7FofE LR4ol9gEqEPWV6sdgwuRRspciew1ZRgVR9ucbki2I+YzSWWp7ecXdgHLrfk199F3THae DvMFaqw2Xkcbp0Zsc7yAVPM8EYmJmOCKNKc+FZbr4iunJpeNEw6Th01vFkyY3krZjKWK fzNnqsnUVt6G6Z/+eyl3VRFWWNI9RfET8fiGI1ou6MzGCu87jeiQaivLFqwWStm2gniB Lg1w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1ZfVmulmjsU3Cyo+ca3bv9XfNhytkiBUHJH7LMRWmLo=; b=YUO+JSU+5r12dH611PZ0mWAnEPNIozLvSCyv2fIsfN6OuoCAKD4TI/yGhARN9tnmT4 yvWCLv3CDv5dtV/q5+75lPHUOL9MdxTDn4Gnw+fazun2nZmJRGAGaOyKdpivJqpevrnw 280QyAYQF5wtpTIfjNV7ydBtbozykjtnGOfIrUuSjNxppGbOiSsgYQZ/BJpEcDFzdogh kZHU/IgYVcfwknONwOAH8GfktTW52hYQv9x8K52pxqGbWu05Jskugk4gtmy1fuzRl1uu 4L8kpUA7MHjI1GOynbjig+iLfAfxVVgkbEqBIMV9BcP4rDHu9OHPbPb6GGl562JvqE4Q tJeA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si13831270ede.196.2019.10.22.22.48.33; Tue, 22 Oct 2019 22:48:58 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389423AbfJWF2f (ORCPT + 99 others); Wed, 23 Oct 2019 01:28:35 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:44846 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389397AbfJWF2e (ORCPT ); Wed, 23 Oct 2019 01:28:34 -0400 Received: from mr2.cc.vt.edu (junk.cc.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x9N5SXoD020004 for ; Wed, 23 Oct 2019 01:28:33 -0400 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x9N5SStH005053 for ; Wed, 23 Oct 2019 01:28:33 -0400 Received: by mail-qk1-f198.google.com with SMTP id g65so19091794qkf.19 for ; Tue, 22 Oct 2019 22:28:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1ZfVmulmjsU3Cyo+ca3bv9XfNhytkiBUHJH7LMRWmLo=; b=nW1U3b1c5NWdFMWvIelOTvTr0N5qnygK/nwFZT/RFXs8YOEAG4kxPprM/OqVrUJdtN DP1UCgWrucjLlulu4NjD8sZGoVoBIhbRTazgI7r4ZJCA22Mnkx7y8g/+jnS2fIHi1z6o ZohWox7jrGkfQPr0Pp+q0sHVRMB6oTMYKVr8r+LJ6Gf5sQ2DIKjtHV0CW0Ik/Xfi6CXI 8VetFPlHphuiU0RTau2l7aYY+nbvRnB7EU7StmEN7rT5KjvvEd0JxBPA82OE0PhtKOTR CyLDRWhmZamhQMoL4kTzzXNmL6Gl6MScg8qorb9+0gMsRpBWdZbWmYlADBuAa99G/bpG VdfQ== X-Gm-Message-State: APjAAAX6IIiA8qCeoCm+r1GabMOlUvx9OMz9WjC0v7qC7iTqWUU01a9z /r/JS52X8/d+y7sH2H4nt138e9bDzImOBoOFIFnGt+rOhuBwuTDSBsZrfwpvUgblend31fOYjek IXFaR7AFOeEyAk4Pt0io/oLHGU+q1cZEEEwY= X-Received: by 2002:ac8:5556:: with SMTP id o22mr7357012qtr.217.1571808508495; Tue, 22 Oct 2019 22:28:28 -0700 (PDT) X-Received: by 2002:ac8:5556:: with SMTP id o22mr7357004qtr.217.1571808508213; Tue, 22 Oct 2019 22:28:28 -0700 (PDT) Received: from turing-police.lan ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id 14sm10397445qtb.54.2019.10.22.22.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 22:28:27 -0700 (PDT) From: Valdis Kletnieks X-Google-Original-From: Valdis Kletnieks To: Greg Kroah-Hartman , Valdis.Kletnieks@vt.edu Cc: Valdis Kletnieks , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] staging: exfat: Cleanup static entries in exfat.h Date: Wed, 23 Oct 2019 01:27:47 -0400 Message-Id: <20191023052752.693689-5-Valdis.Kletnieks@vt.edu> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191023052752.693689-1-Valdis.Kletnieks@vt.edu> References: <20191023052752.693689-1-Valdis.Kletnieks@vt.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Many of the static definitions that remain are not needed, as the function definition is already before the first use. Signed-off-by: Valdis Kletnieks --- drivers/staging/exfat/exfat.h | 53 ----------------------------------- 1 file changed, 53 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 9cd78b6417d0..dbd86a6cdc95 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -782,17 +782,9 @@ static void buf_sync(struct super_block *sb); /* fs management functions */ void fs_set_vol_flags(struct super_block *sb, u32 new_flag); -static void fs_error(struct super_block *sb); /* cluster management functions */ -static s32 clear_cluster(struct super_block *sb, u32 clu); -static s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc, - struct chain_t *p_chain); -static void exfat_free_cluster(struct super_block *sb, struct chain_t *p_chain, - s32 do_relse); -static u32 find_last_cluster(struct super_block *sb, struct chain_t *p_chain); s32 count_num_clusters(struct super_block *sb, struct chain_t *dir); -static s32 exfat_count_used_clusters(struct super_block *sb); void exfat_chain_cont_cluster(struct super_block *sb, u32 chain, s32 len); /* allocation bitmap management functions */ @@ -808,36 +800,12 @@ s32 load_upcase_table(struct super_block *sb); void free_upcase_table(struct super_block *sb); /* dir entry management functions */ -static u32 exfat_get_entry_type(struct dentry_t *p_entry); -static void exfat_set_entry_type(struct dentry_t *p_entry, u32 type); -static u32 exfat_get_entry_attr(struct dentry_t *p_entry); -static void exfat_set_entry_attr(struct dentry_t *p_entry, u32 attr); -static u8 exfat_get_entry_flag(struct dentry_t *p_entry); -static void exfat_set_entry_flag(struct dentry_t *p_entry, u8 flag); -static u32 exfat_get_entry_clu0(struct dentry_t *p_entry); -static void exfat_set_entry_clu0(struct dentry_t *p_entry, u32 start_clu); -static u64 exfat_get_entry_size(struct dentry_t *p_entry); -static void exfat_set_entry_size(struct dentry_t *p_entry, u64 size); struct timestamp_t *tm_current(struct timestamp_t *tm); -static void exfat_get_entry_time(struct dentry_t *p_entry, struct timestamp_t *tp, - u8 mode); -static void exfat_set_entry_time(struct dentry_t *p_entry, struct timestamp_t *tp, - u8 mode); -static s32 exfat_init_dir_entry(struct super_block *sb, struct chain_t *p_dir, - s32 entry, u32 type, u32 start_clu, u64 size); -static s32 exfat_init_ext_dir_entry(struct super_block *sb, struct chain_t *p_dir, - s32 entry, s32 num_entries, - struct uni_name_t *p_uniname, - struct dos_name_t *p_dosname); static void init_file_entry(struct file_dentry_t *ep, u32 type); static void init_strm_entry(struct strm_dentry_t *ep, u8 flags, u32 start_clu, u64 size); static void init_name_entry(struct name_dentry_t *ep, u16 *uniname); -static void exfat_delete_dir_entry(struct super_block *sb, struct chain_t *p_dir, - s32 entry, s32 order, s32 num_entries); -static s32 find_location(struct super_block *sb, struct chain_t *p_dir, s32 entry, - sector_t *sector, s32 *offset); struct dentry_t *get_entry_in_dir(struct super_block *sb, struct chain_t *p_dir, s32 entry, sector_t *sector); struct entry_set_cache_t *get_entry_set_in_dir(struct super_block *sb, @@ -846,18 +814,6 @@ struct entry_set_cache_t *get_entry_set_in_dir(struct super_block *sb, struct dentry_t **file_ep); void release_entry_set(struct entry_set_cache_t *es); static s32 write_whole_entry_set(struct super_block *sb, struct entry_set_cache_t *es); -static s32 write_partial_entries_in_entry_set(struct super_block *sb, - struct entry_set_cache_t *es, - struct dentry_t *ep, u32 count); -static s32 search_deleted_or_unused_entry(struct super_block *sb, - struct chain_t *p_dir, s32 num_entries); -static s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, - s32 num_entries); -static s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir, - struct uni_name_t *p_uniname, s32 num_entries, - struct dos_name_t *p_dosname, u32 type); -static s32 exfat_count_ext_entries(struct super_block *sb, struct chain_t *p_dir, - s32 entry, struct dentry_t *p_entry); s32 count_dos_name_entries(struct super_block *sb, struct chain_t *p_dir, u32 type); static void update_dir_checksum(struct super_block *sb, struct chain_t *p_dir, @@ -873,25 +829,16 @@ s32 get_num_entries_and_dos_name(struct super_block *sb, struct chain_t *p_dir, void get_uni_name_from_dos_entry(struct super_block *sb, struct dos_dentry_t *ep, struct uni_name_t *p_uniname, u8 mode); -static void fat_get_uni_name_from_ext_entry(struct super_block *sb, - struct chain_t *p_dir, s32 entry, - u16 *uniname); -static void exfat_get_uni_name_from_ext_entry(struct super_block *sb, - struct chain_t *p_dir, s32 entry, - u16 *uniname); static s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep, u16 *uniname, s32 order); static s32 fat_generate_dos_name(struct super_block *sb, struct chain_t *p_dir, struct dos_name_t *p_dosname); static void fat_attach_count_to_dos_name(u8 *dosname, s32 count); -static s32 fat_calc_num_entries(struct uni_name_t *p_uniname); -static s32 exfat_calc_num_entries(struct uni_name_t *p_uniname); u16 calc_checksum_2byte(void *data, s32 len, u16 chksum, s32 type); /* name resolution functions */ s32 resolve_path(struct inode *inode, char *path, struct chain_t *p_dir, struct uni_name_t *p_uniname); -static s32 resolve_name(u8 *name, u8 **arg); /* file operation functions */ s32 exfat_mount(struct super_block *sb, struct pbr_sector_t *p_pbr); -- 2.23.0