From 2dc452001c3301af96e5d3750f8b4e9d83273cd8 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Sat, 31 Jan 2004 13:04:45 +1100 Subject: [PATCH] [XFS] Remove no-longer-needed debug symbol exports. --- fs/xfs/linux/xfs_buf.c | 11 ----- fs/xfs/linux/xfs_globals.c | 86 ++------------------------------------ fs/xfs/quota/xfs_qm.c | 1 - fs/xfs/support/ktrace.c | 3 -- 4 files changed, 3 insertions(+), 98 deletions(-) diff --git a/fs/xfs/linux/xfs_buf.c b/fs/xfs/linux/xfs_buf.c index c4fba9f269c8e..6fe563ca046a9 100644 --- a/fs/xfs/linux/xfs_buf.c +++ b/fs/xfs/linux/xfs_buf.c @@ -45,7 +45,6 @@ * */ -#include #include #include #include @@ -167,7 +166,6 @@ pagebuf_trace( NULL, NULL, NULL, NULL, NULL); } ktrace_t *pagebuf_trace_buf; -EXPORT_SYMBOL(pagebuf_trace_buf); #define PAGEBUF_TRACE_SIZE 4096 #define PB_TRACE(pb, id, data) \ pagebuf_trace(pb, id, (void *)data, (void *)__builtin_return_address(0)) @@ -2058,12 +2056,3 @@ pagebuf_terminate(void) remove_proc_entry("fs/pagebuf", NULL); #endif } - - -/* - * Module management (for kernel debugger module) - */ -EXPORT_SYMBOL(pagebuf_offset); -#ifdef DEBUG -EXPORT_SYMBOL(pbd_delwrite_queue); -#endif diff --git a/fs/xfs/linux/xfs_globals.c b/fs/xfs/linux/xfs_globals.c index 5f17264fe4d92..9267e539fd13f 100644 --- a/fs/xfs/linux/xfs_globals.c +++ b/fs/xfs/linux/xfs_globals.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. + * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as @@ -36,57 +36,8 @@ */ #include "xfs.h" - -#include "xfs_fs.h" -#include "xfs_buf.h" -#include "xfs_inum.h" -#include "xfs_log.h" -#include "xfs_clnt.h" -#include "xfs_trans.h" -#include "xfs_sb.h" -#include "xfs_ag.h" -#include "xfs_dir.h" -#include "xfs_dir2.h" -#include "xfs_imap.h" -#include "xfs_alloc.h" -#include "xfs_dmapi.h" -#include "xfs_quota.h" -#include "xfs_mount.h" -#include "xfs_alloc_btree.h" -#include "xfs_bmap_btree.h" -#include "xfs_ialloc_btree.h" -#include "xfs_btree.h" -#include "xfs_ialloc.h" -#include "xfs_attr_sf.h" -#include "xfs_dir_sf.h" -#include "xfs_dir2_sf.h" -#include "xfs_dinode.h" -#include "xfs_inode.h" -#include "xfs_bmap.h" -#include "xfs_bit.h" -#include "xfs_rtalloc.h" -#include "xfs_error.h" -#include "xfs_itable.h" -#include "xfs_rw.h" -#include "xfs_da_btree.h" -#include "xfs_dir_leaf.h" -#include "xfs_dir2_data.h" -#include "xfs_dir2_leaf.h" -#include "xfs_dir2_block.h" -#include "xfs_dir2_node.h" -#include "xfs_dir2_trace.h" -#include "xfs_acl.h" -#include "xfs_cap.h" -#include "xfs_mac.h" -#include "xfs_attr.h" -#include "xfs_attr_leaf.h" -#include "xfs_inode_item.h" -#include "xfs_buf_item.h" -#include "xfs_extfree_item.h" -#include "xfs_log_priv.h" -#include "xfs_trans_priv.h" -#include "xfs_trans_space.h" -#include "xfs_utils.h" +#include "xfs_cred.h" +#include "xfs_sysctl.h" /* * System memory size - used to scale certain data structures in XFS. @@ -117,34 +68,3 @@ xfs_param_t xfs_params = { */ cred_t sys_cred_val, *sys_cred = &sys_cred_val; -/* - * Export symbols used for XFS debugging - */ -EXPORT_SYMBOL(xfs_next_bit); -EXPORT_SYMBOL(xfs_contig_bits); -EXPORT_SYMBOL(xfs_bmbt_get_all); -#if ARCH_CONVERT != ARCH_NOCONVERT -EXPORT_SYMBOL(xfs_bmbt_disk_get_all); -#endif - -/* - * Export symbols used for XFS tracing - */ -#ifdef XFS_ALLOC_TRACE -EXPORT_SYMBOL(xfs_alloc_trace_buf); -#endif -#ifdef XFS_BMAP_TRACE -EXPORT_SYMBOL(xfs_bmap_trace_buf); -#endif -#ifdef XFS_BMBT_TRACE -EXPORT_SYMBOL(xfs_bmbt_trace_buf); -#endif -#ifdef XFS_ATTR_TRACE -EXPORT_SYMBOL(xfs_attr_trace_buf); -#endif -#ifdef XFS_DIR2_TRACE -EXPORT_SYMBOL(xfs_dir2_trace_buf); -#endif -#ifdef XFS_DIR_TRACE -EXPORT_SYMBOL(xfs_dir_trace_buf); -#endif diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c index 0f853a505b814..9633b155dcf4e 100644 --- a/fs/xfs/quota/xfs_qm.c +++ b/fs/xfs/quota/xfs_qm.c @@ -78,7 +78,6 @@ */ mutex_t xfs_Gqm_lock; struct xfs_qm *xfs_Gqm; -EXPORT_SYMBOL(xfs_Gqm); /* used by xfsidbg */ kmem_zone_t *qm_dqzone; kmem_zone_t *qm_dqtrxzone; diff --git a/fs/xfs/support/ktrace.c b/fs/xfs/support/ktrace.c index e776812da8bcd..0190ad2f86d3e 100644 --- a/fs/xfs/support/ktrace.c +++ b/fs/xfs/support/ktrace.c @@ -30,7 +30,6 @@ * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ */ -#include #include #include @@ -273,7 +272,6 @@ ktrace_first(ktrace_t *ktp, ktrace_snap_t *ktsp) } return ktep; } -EXPORT_SYMBOL(ktrace_first); /* * ktrace_next() @@ -308,7 +306,6 @@ ktrace_next( return ktep; } -EXPORT_SYMBOL(ktrace_next); /* * ktrace_skip() -- 2.53.0