From 11db1a551172f596d1d284e8496530f9ce24ac81 Mon Sep 17 00:00:00 2001 From: Keith Mannthey Date: Fri, 21 Jun 2013 13:28:45 -0700 Subject: [PATCH] LU-1347 style: removes obsolete EXPORT_SYMTAB macros v2 EXPORT_SYMTAB is obsolete after 2.4 kernel, this patch removes EXPORT_SYMTAB from the source code again. Signed-off-by: Keith Mannthey Change-Id: Idac9983d42b2c3e645def54628b6bc34d28aa3af Reviewed-on: http://review.whamcloud.com/6739 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Peng Tao Reviewed-by: Liu Xuezhao Reviewed-by: Andreas Dilger --- libcfs/libcfs/libcfs_cpu.c | 3 --- libcfs/libcfs/libcfs_lock.c | 3 --- libcfs/libcfs/libcfs_mem.c | 3 --- lnet/klnds/gnilnd/gnilnd.h | 3 --- lustre/lfsck/lfsck_bookmark.c | 3 --- lustre/lfsck/lfsck_engine.c | 3 --- lustre/lfsck/lfsck_lib.c | 3 --- lustre/lfsck/lfsck_namespace.c | 3 --- lustre/lod/lod_dev.c | 3 --- lustre/lod/lod_lov.c | 3 --- lustre/lod/lod_object.c | 3 --- lustre/mdt/mdt_hsm.c | 3 --- lustre/mdt/out_handler.c | 3 --- lustre/obdclass/llog_osd.c | 4 ---- lustre/obdclass/lprocfs_jobstats.c | 3 --- lustre/osd-ldiskfs/osd_scrub.c | 3 --- lustre/osd-zfs/osd_handler.c | 3 --- lustre/osd-zfs/osd_index.c | 3 --- lustre/osd-zfs/osd_io.c | 3 --- lustre/osd-zfs/osd_object.c | 3 --- lustre/osd-zfs/osd_oi.c | 3 --- lustre/osd-zfs/osd_xattr.c | 3 --- lustre/osp/lwp_dev.c | 3 --- lustre/osp/osp_dev.c | 3 --- lustre/osp/osp_md_object.c | 3 --- lustre/osp/osp_object.c | 3 --- lustre/osp/osp_precreate.c | 3 --- lustre/osp/osp_sync.c | 3 --- lustre/quota/lquota_disk.c | 4 ---- lustre/quota/lquota_entry.c | 4 ---- lustre/quota/lquota_lib.c | 4 ---- lustre/quota/qmt_dev.c | 4 ---- lustre/quota/qmt_entry.c | 4 ---- lustre/quota/qmt_handler.c | 4 ---- lustre/quota/qmt_lock.c | 4 ---- lustre/quota/qmt_pool.c | 4 ---- lustre/quota/qsd_config.c | 4 ---- lustre/quota/qsd_entry.c | 4 ---- lustre/quota/qsd_handler.c | 4 ---- lustre/quota/qsd_lib.c | 4 ---- lustre/quota/qsd_lock.c | 4 ---- lustre/quota/qsd_reint.c | 4 ---- lustre/quota/qsd_request.c | 4 ---- lustre/quota/qsd_writeback.c | 4 ---- 44 files changed, 149 deletions(-) diff --git a/libcfs/libcfs/libcfs_cpu.c b/libcfs/libcfs/libcfs_cpu.c index 00eb93f..775af69 100644 --- a/libcfs/libcfs/libcfs_cpu.c +++ b/libcfs/libcfs/libcfs_cpu.c @@ -33,9 +33,6 @@ * Author: liang@whamcloud.com */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LNET #include diff --git a/libcfs/libcfs/libcfs_lock.c b/libcfs/libcfs/libcfs_lock.c index 355e47f..8b54eb0 100644 --- a/libcfs/libcfs/libcfs_lock.c +++ b/libcfs/libcfs/libcfs_lock.c @@ -30,9 +30,6 @@ * Author: liang@whamcloud.com */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LNET #include diff --git a/libcfs/libcfs/libcfs_mem.c b/libcfs/libcfs/libcfs_mem.c index f1b234f..2d8672a 100644 --- a/libcfs/libcfs/libcfs_mem.c +++ b/libcfs/libcfs/libcfs_mem.c @@ -31,9 +31,6 @@ * Author: liang@whamcloud.com */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LNET #include diff --git a/lnet/klnds/gnilnd/gnilnd.h b/lnet/klnds/gnilnd/gnilnd.h index 6bfbd9a..012e50f 100644 --- a/lnet/klnds/gnilnd/gnilnd.h +++ b/lnet/klnds/gnilnd/gnilnd.h @@ -26,9 +26,6 @@ #ifndef _GNILND_GNILND_H_ #define _GNILND_GNILND_H_ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #include #include #include diff --git a/lustre/lfsck/lfsck_bookmark.c b/lustre/lfsck/lfsck_bookmark.c index 1f87bec..204caa8 100644 --- a/lustre/lfsck/lfsck_bookmark.c +++ b/lustre/lfsck/lfsck_bookmark.c @@ -28,9 +28,6 @@ * Author: Fan, Yong */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LFSCK #include diff --git a/lustre/lfsck/lfsck_engine.c b/lustre/lfsck/lfsck_engine.c index 592c27e..d6c7b77 100644 --- a/lustre/lfsck/lfsck_engine.c +++ b/lustre/lfsck/lfsck_engine.c @@ -28,9 +28,6 @@ * Author: Fan, Yong */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LFSCK #include diff --git a/lustre/lfsck/lfsck_lib.c b/lustre/lfsck/lfsck_lib.c index 5437f71..6e20069 100644 --- a/lustre/lfsck/lfsck_lib.c +++ b/lustre/lfsck/lfsck_lib.c @@ -28,9 +28,6 @@ * Author: Fan, Yong */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LFSCK #include diff --git a/lustre/lfsck/lfsck_namespace.c b/lustre/lfsck/lfsck_namespace.c index a3a3948..796c6b3 100644 --- a/lustre/lfsck/lfsck_namespace.c +++ b/lustre/lfsck/lfsck_namespace.c @@ -28,9 +28,6 @@ * Author: Fan, Yong */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LFSCK #include diff --git a/lustre/lod/lod_dev.c b/lustre/lod/lod_dev.c index 5a0bdb5..69e2ae2 100644 --- a/lustre/lod/lod_dev.c +++ b/lustre/lod/lod_dev.c @@ -38,9 +38,6 @@ * Author: Mikhail Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/lod/lod_lov.c b/lustre/lod/lod_lov.c index cc70895..03efa26 100644 --- a/lustre/lod/lod_lov.c +++ b/lustre/lod/lod_lov.c @@ -31,9 +31,6 @@ * Author: Alex Zhuravlev */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c index 5ae976a..e3180e2 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -31,9 +31,6 @@ * Author: Alex Zhuravlev */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/mdt/mdt_hsm.c b/lustre/mdt/mdt_hsm.c index dc1520c..b35e939 100644 --- a/lustre/mdt/mdt_hsm.c +++ b/lustre/mdt/mdt_hsm.c @@ -34,9 +34,6 @@ * Author: JC Lafoucriere */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include "mdt_internal.h" diff --git a/lustre/mdt/out_handler.c b/lustre/mdt/out_handler.c index f0b0daa..4e86c8e 100644 --- a/lustre/mdt/out_handler.c +++ b/lustre/mdt/out_handler.c @@ -29,9 +29,6 @@ * Author: di.wang */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include "mdt_internal.h" diff --git a/lustre/obdclass/llog_osd.c b/lustre/obdclass/llog_osd.c index b1b0bab..de7c0b5 100644 --- a/lustre/obdclass/llog_osd.c +++ b/lustre/obdclass/llog_osd.c @@ -41,10 +41,6 @@ #define DEBUG_SUBSYSTEM S_LOG -#ifndef EXPORT_SYMTAB -#define EXPORT_SYMTAB -#endif - #include #include #include diff --git a/lustre/obdclass/lprocfs_jobstats.c b/lustre/obdclass/lprocfs_jobstats.c index ec955a2..dab281b 100644 --- a/lustre/obdclass/lprocfs_jobstats.c +++ b/lustre/obdclass/lprocfs_jobstats.c @@ -28,9 +28,6 @@ * lustre/obdclass/lprocfs_jobstats.c */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_CLASS #ifndef __KERNEL__ diff --git a/lustre/osd-ldiskfs/osd_scrub.c b/lustre/osd-ldiskfs/osd_scrub.c index e312378..c46e62a 100644 --- a/lustre/osd-ldiskfs/osd_scrub.c +++ b/lustre/osd-ldiskfs/osd_scrub.c @@ -35,9 +35,6 @@ * Author: Fan Yong */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/osd-zfs/osd_handler.c b/lustre/osd-zfs/osd_handler.c index df85bb54..9944e78 100644 --- a/lustre/osd-zfs/osd_handler.c +++ b/lustre/osd-zfs/osd_handler.c @@ -44,9 +44,6 @@ * Author: Johann Lombardi */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osd-zfs/osd_index.c b/lustre/osd-zfs/osd_index.c index 92f22da..6ebd0ab 100644 --- a/lustre/osd-zfs/osd_index.c +++ b/lustre/osd-zfs/osd_index.c @@ -41,9 +41,6 @@ * Author: Mike Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osd-zfs/osd_io.c b/lustre/osd-zfs/osd_io.c index d8d88d2..c041c8e 100644 --- a/lustre/osd-zfs/osd_io.c +++ b/lustre/osd-zfs/osd_io.c @@ -41,9 +41,6 @@ * Author: Mike Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osd-zfs/osd_object.c b/lustre/osd-zfs/osd_object.c index 37706e2..7fa7cb2 100644 --- a/lustre/osd-zfs/osd_object.c +++ b/lustre/osd-zfs/osd_object.c @@ -42,9 +42,6 @@ * Author: Johann Lombardi */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osd-zfs/osd_oi.c b/lustre/osd-zfs/osd_oi.c index 36e588d..706b9e4 100644 --- a/lustre/osd-zfs/osd_oi.c +++ b/lustre/osd-zfs/osd_oi.c @@ -43,9 +43,6 @@ * Author: Di Wang */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osd-zfs/osd_xattr.c b/lustre/osd-zfs/osd_xattr.c index c80297f..14f5256 100644 --- a/lustre/osd-zfs/osd_xattr.c +++ b/lustre/osd-zfs/osd_xattr.c @@ -42,9 +42,6 @@ * Author: Mike Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OSD #include diff --git a/lustre/osp/lwp_dev.c b/lustre/osp/lwp_dev.c index b3ca5d2..8b1653e 100644 --- a/lustre/osp/lwp_dev.c +++ b/lustre/osp/lwp_dev.c @@ -32,9 +32,6 @@ * Author: * Author: */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_OST #include diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index aa54f94..52ad482 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -42,9 +42,6 @@ * Author: Di Wang */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/osp/osp_md_object.c b/lustre/osp/osp_md_object.c index 776877a..255407b 100644 --- a/lustre/osp/osp_md_object.c +++ b/lustre/osp/osp_md_object.c @@ -30,9 +30,6 @@ * Author: Di Wang */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/osp/osp_object.c b/lustre/osp/osp_object.c index fa1ec71..61fe85b 100644 --- a/lustre/osp/osp_object.c +++ b/lustre/osp/osp_object.c @@ -41,9 +41,6 @@ * Author: Mikhail Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include "osp_internal.h" diff --git a/lustre/osp/osp_precreate.c b/lustre/osp/osp_precreate.c index 67fc2bc..11dd60c 100644 --- a/lustre/osp/osp_precreate.c +++ b/lustre/osp/osp_precreate.c @@ -42,9 +42,6 @@ * Author: Di Wang */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include "osp_internal.h" diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c index 0fbc7e6..97e5042 100644 --- a/lustre/osp/osp_sync.c +++ b/lustre/osp/osp_sync.c @@ -41,9 +41,6 @@ * Author: Mikhail Pershin */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_MDS #include diff --git a/lustre/quota/lquota_disk.c b/lustre/quota/lquota_disk.c index b5d6adb..479e13b 100644 --- a/lustre/quota/lquota_disk.c +++ b/lustre/quota/lquota_disk.c @@ -48,10 +48,6 @@ * - lquota_disk_update_ver: update version of an index file */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "lquota_internal.h" diff --git a/lustre/quota/lquota_entry.c b/lustre/quota/lquota_entry.c index cff6b6d..5fb7905 100644 --- a/lustre/quota/lquota_entry.c +++ b/lustre/quota/lquota_entry.c @@ -27,10 +27,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/lquota_lib.c b/lustre/quota/lquota_lib.c index c65465c..7c0fb54 100644 --- a/lustre/quota/lquota_lib.c +++ b/lustre/quota/lquota_lib.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qmt_dev.c b/lustre/quota/qmt_dev.c index 959c280..8401030 100644 --- a/lustre/quota/qmt_dev.c +++ b/lustre/quota/qmt_dev.c @@ -66,10 +66,6 @@ * mdt_quota_init() for more details. */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qmt_entry.c b/lustre/quota/qmt_entry.c index 6fe3c92..8bd9424 100644 --- a/lustre/quota/qmt_entry.c +++ b/lustre/quota/qmt_entry.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "qmt_internal.h" diff --git a/lustre/quota/qmt_handler.c b/lustre/quota/qmt_handler.c index 44e32e9..6e2a3ff 100644 --- a/lustre/quota/qmt_handler.c +++ b/lustre/quota/qmt_handler.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qmt_lock.c b/lustre/quota/qmt_lock.c index 00ff33b..635a314 100644 --- a/lustre/quota/qmt_lock.c +++ b/lustre/quota/qmt_lock.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qmt_pool.c b/lustre/quota/qmt_pool.c index 90ce515..04ffa91 100644 --- a/lustre/quota/qmt_pool.c +++ b/lustre/quota/qmt_pool.c @@ -48,10 +48,6 @@ * a given ID. */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qsd_config.c b/lustre/quota/qsd_config.c index 53cf063..8bb6dbd 100644 --- a/lustre/quota/qsd_config.c +++ b/lustre/quota/qsd_config.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qsd_entry.c b/lustre/quota/qsd_entry.c index 8668201..5ebdfeb 100644 --- a/lustre/quota/qsd_entry.c +++ b/lustre/quota/qsd_entry.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "qsd_internal.h" diff --git a/lustre/quota/qsd_handler.c b/lustre/quota/qsd_handler.c index be212cf..6bef54e 100644 --- a/lustre/quota/qsd_handler.c +++ b/lustre/quota/qsd_handler.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "qsd_internal.h" diff --git a/lustre/quota/qsd_lib.c b/lustre/quota/qsd_lib.c index dea0cbd..dfbf8a2 100644 --- a/lustre/quota/qsd_lib.c +++ b/lustre/quota/qsd_lib.c @@ -49,10 +49,6 @@ * freed via qsd_fini(). */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qsd_lock.c b/lustre/quota/qsd_lock.c index 1649d63..47b0ac1 100644 --- a/lustre/quota/qsd_lock.c +++ b/lustre/quota/qsd_lock.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qsd_reint.c b/lustre/quota/qsd_reint.c index 59e3877..c914f18 100644 --- a/lustre/quota/qsd_reint.c +++ b/lustre/quota/qsd_reint.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "qsd_internal.h" diff --git a/lustre/quota/qsd_request.c b/lustre/quota/qsd_request.c index 2db0433..e4851e1 100644 --- a/lustre/quota/qsd_request.c +++ b/lustre/quota/qsd_request.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include diff --git a/lustre/quota/qsd_writeback.c b/lustre/quota/qsd_writeback.c index a2b01a4..61518d0 100644 --- a/lustre/quota/qsd_writeback.c +++ b/lustre/quota/qsd_writeback.c @@ -28,10 +28,6 @@ * Author: Niu Yawei */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #define DEBUG_SUBSYSTEM S_LQUOTA #include "qsd_internal.h" -- 1.8.3.1