Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1039886ybc; Tue, 12 Nov 2019 13:15:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwDMfv558crATCDx/3ZFa6WlL5L+2BEAvX/Tqg9JBFFy7Bfo2J7xoa0EcLOwz27ErRNdEf9 X-Received: by 2002:a17:906:c789:: with SMTP id cw9mr30992217ejb.40.1573593340006; Tue, 12 Nov 2019 13:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573593340; cv=none; d=google.com; s=arc-20160816; b=lbWSn7uIurjqBC2VnGt86dlYZGyIcvZ2DZnfOOx7HMmwmlTVdh31YAaZBZ9YuQs/8d Q0i99CO/eJYw5wCkDGKxxPqBqJcIPRmPR2XVbapRJOYW+xfRw1s+OGCPirw4BAKny6q4 vktJywz9IRAMyoLRQm+GA8NJ4QDsnEkl10HGUXMxmaACKELmZDg5HnUd4Xyo7DioJhfT /B3LQuP8An5mA9m5kVTpTabAFnj+Brjsc2xFmWQELfKOkyALIescQOldJtmLaASkWeEJ Lnizoyr2boQjjajRI26px9hhhF+SsnSCgByxL/rgWQCyThcB0Tx+M+cRHsXDr4HoBwbx 8Gcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=G+XEM7NqA7duBgC178Q7ObGQk8ZeoGEeRJMM3ee4yAQ=; b=VmNsDi+PpPK4s30NtwRK30tisnopg69BQHEPJ+5Z+8WoU/k0RB/G7dQ49Fc6z7XWD4 tV1V1rh0y50pSuzhZzgPgTYmxE/um9vR+mOYtVnWAJ8uNOUnrsnKtvznTHT1DVGOVWle Hn/CVLUY82w5JtlVuFBoQLFqdvXFgcETxmr5zIrnZS8pT2iMuEnmXS9Pu9mSZbzaNWUf NbS3Lr0CCMBVJL5gbqxc7F2drkgvuDfP7ZU9EVjY1E9L9z/+dfuUV/sxc5EDLzfkX7UB W1NwtwxqDzNd3JnvKhgooPsbB+wuWnXHGuUtxZd18PaGwMEnqA7l8vrQVK+2desL/D+z kUWQ== 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 gh16si821985ejb.276.2019.11.12.13.15.14; Tue, 12 Nov 2019 13:15:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbfKLVNu (ORCPT + 99 others); Tue, 12 Nov 2019 16:13:50 -0500 Received: from outbound.smtp.vt.edu ([198.82.183.121]:44490 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727482AbfKLVNs (ORCPT ); Tue, 12 Nov 2019 16:13:48 -0500 Received: from mr2.cc.vt.edu (mr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:90:e077:bf22]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id xACLDlcB012803 for ; Tue, 12 Nov 2019 16:13:47 -0500 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id xACLDgHn026697 for ; Tue, 12 Nov 2019 16:13:47 -0500 Received: by mail-qv1-f69.google.com with SMTP id m12so9524887qvv.8 for ; Tue, 12 Nov 2019 13:13:47 -0800 (PST) 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=G+XEM7NqA7duBgC178Q7ObGQk8ZeoGEeRJMM3ee4yAQ=; b=rbNenstvx2/BkK5BwMnYGsYT33fTbRCRHRWgjfwBIZCGAGiZ91gu/rJ3jUN/QudwlU c8+BceNHL9hN0Uj0L0HR+A6lZTRU8zUBWuGQ5Km2DDo/LwZr+g7InKEQcF+NYdynKQ1K uQRrcxGFL8hPqvIjspC8cKnaD4UTcUcTb1YPYfuBpTo2cbmBIvDixPIATDLuIBIKWnS1 mFnuarCB9Op83gtCASpCqe4zTL3gG7UmGq8DXSqCIvVhBycalYasaMGsnEJWqPuISDUl +rd2ax+RzAwBSXKBW44+NSTthqmaWTdIU+y4x/e6blZ1aN/P2KG124tectpkNkvW8+xu hxCA== X-Gm-Message-State: APjAAAUC/pTu5BSK6hInBMJcoieBoug1VSMr4631xUTCaxCfGZPI3hRs IFCmwvwXsIzuOsJTTgGavG4PWA6NuvKmy1omqeIWdjZarnw1iM2POm40olS/BEqJP5qPWJd/V8y eebee0N+lBPt1TwO1ahnJRSloht8Lwj+IQu8= X-Received: by 2002:ac8:1494:: with SMTP id l20mr13675948qtj.356.1573593222067; Tue, 12 Nov 2019 13:13:42 -0800 (PST) X-Received: by 2002:ac8:1494:: with SMTP id l20mr13675845qtj.356.1573593220899; Tue, 12 Nov 2019 13:13:40 -0800 (PST) Received: from turing-police.lan ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id 130sm9674214qkd.33.2019.11.12.13.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 13:13:40 -0800 (PST) From: Valdis Kletnieks X-Google-Original-From: Valdis Kletnieks Cc: Valdis Kletnieks , Valdis Kletnieks , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/12] staging: exfat: Clean up the namespace pollution part 3 Date: Tue, 12 Nov 2019 16:12:33 -0500 Message-Id: <20191112211238.156490-8-Valdis.Kletnieks@vt.edu> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191112211238.156490-1-Valdis.Kletnieks@vt.edu> References: <20191112211238.156490-1-Valdis.Kletnieks@vt.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These functions are only used in the local file, make them static Signed-off-by: Valdis Kletnieks --- drivers/staging/exfat/exfat.h | 6 ------ drivers/staging/exfat/exfat_core.c | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 5044523ccb97..407dbb017c5f 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -758,8 +758,6 @@ void fs_set_vol_flags(struct super_block *sb, u32 new_flag); void fs_error(struct super_block *sb); /* cluster management functions */ -s32 clear_cluster(struct super_block *sb, u32 clu); -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); void exfat_chain_cont_cluster(struct super_block *sb, u32 chain, s32 len); @@ -782,8 +780,6 @@ void init_strm_entry(struct strm_dentry_t *ep, u8 flags, u32 start_clu, u64 size); void init_name_entry(struct name_dentry_t *ep, u16 *uniname); -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, @@ -797,8 +793,6 @@ s32 write_partial_entries_in_entry_set(struct super_block *sb, struct dentry_t *ep, u32 count); s32 search_deleted_or_unused_entry(struct super_block *sb, struct chain_t *p_dir, s32 num_entries); -s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, - s32 num_entries); s32 count_dos_name_entries(struct super_block *sb, struct chain_t *p_dir, u32 type); void update_dir_checksum(struct super_block *sb, struct chain_t *p_dir, diff --git a/drivers/staging/exfat/exfat_core.c b/drivers/staging/exfat/exfat_core.c index 5a01fc25f31d..3ea51d12c38d 100644 --- a/drivers/staging/exfat/exfat_core.c +++ b/drivers/staging/exfat/exfat_core.c @@ -125,7 +125,7 @@ void fs_error(struct super_block *sb) * Cluster Management Functions */ -s32 clear_cluster(struct super_block *sb, u32 clu) +static s32 clear_cluster(struct super_block *sb, u32 clu) { sector_t s, n; s32 ret = 0; @@ -294,7 +294,7 @@ static void exfat_free_cluster(struct super_block *sb, struct chain_t *p_chain, p_fs->used_clusters -= num_clusters; } -u32 find_last_cluster(struct super_block *sb, struct chain_t *p_chain) +static u32 find_last_cluster(struct super_block *sb, struct chain_t *p_chain) { u32 clu, next; struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); @@ -1186,7 +1186,7 @@ static s32 _walk_fat_chain(struct super_block *sb, struct chain_t *p_dir, return 0; } -s32 find_location(struct super_block *sb, struct chain_t *p_dir, s32 entry, +static s32 find_location(struct super_block *sb, struct chain_t *p_dir, s32 entry, sector_t *sector, s32 *offset) { s32 off, ret; @@ -1583,7 +1583,7 @@ s32 search_deleted_or_unused_entry(struct super_block *sb, return -1; } -s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, s32 num_entries) +static s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, s32 num_entries) { s32 ret, dentry; u32 last_clu; -- 2.24.0