[PATCH] btrfs: remove unused macro BTRFS_FEAT_ATTR_COMPAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Which is never used after it was introduced. Better to remove it?

Signed-off-by: Alex Shi <alex.shi@xxxxxxxxxxxxxxxxx>
Cc: Chris Mason <clm@xxxxxx> 
Cc: Josef Bacik <josef@xxxxxxxxxxxxxx> 
Cc: David Sterba <dsterba@xxxxxxxx> 
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> 
Cc: Ingo Molnar <mingo@xxxxxxxxxx> 
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> 
Cc: Mark Rutland <mark.rutland@xxxxxxx> 
Cc: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> 
Cc: Jiri Olsa <jolsa@xxxxxxxxxx> 
Cc: Namhyung Kim <namhyung@xxxxxxxxxx> 
Cc: linux-btrfs@xxxxxxxxxxxxxxx 
Cc: linux-kernel@xxxxxxxxxxxxxxx 
---
 fs/btrfs/sysfs.c        | 2 --
 kernel/events/uprobes.c | 1 -
 2 files changed, 3 deletions(-)

diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 5ebbe8a5ee76..22f78dbfc783 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -60,8 +60,6 @@ struct raid_kobject {
 #define BTRFS_FEAT_ATTR_PTR(_name)					     \
 	(&btrfs_attr_features_##_name.kobj_attr.attr)
 
-#define BTRFS_FEAT_ATTR_COMPAT(name, feature) \
-	BTRFS_FEAT_ATTR(name, FEAT_COMPAT, BTRFS_FEATURE_COMPAT, feature)
 #define BTRFS_FEAT_ATTR_COMPAT_RO(name, feature) \
 	BTRFS_FEAT_ATTR(name, FEAT_COMPAT_RO, BTRFS_FEATURE_COMPAT_RO, feature)
 #define BTRFS_FEAT_ATTR_INCOMPAT(name, feature) \
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index ece7e13f6e4a..977cac2574cb 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -31,7 +31,6 @@
 #include <linux/uprobes.h>
 
 #define UINSNS_PER_PAGE			(PAGE_SIZE/UPROBE_XOL_SLOT_BYTES)
-#define MAX_UPROBE_XOL_SLOTS		UINSNS_PER_PAGE
 
 static struct rb_root uprobes_tree = RB_ROOT;
 /*
-- 
1.8.3.1




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux