lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1579592062-86448-1-git-send-email-alex.shi@linux.alibaba.com>
Date:   Tue, 21 Jan 2020 15:34:22 +0800
From:   Alex Shi <alex.shi@...ux.alibaba.com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
        David Sterba <dsterba@...e.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...hat.com>,
        Namhyung Kim <namhyung@...nel.org>,
        linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] btrfs: remove unused macro BTRFS_FEAT_ATTR_COMPAT

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

Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: Chris Mason <clm@...com> 
Cc: Josef Bacik <josef@...icpanda.com> 
Cc: David Sterba <dsterba@...e.com> 
Cc: Peter Zijlstra <peterz@...radead.org> 
Cc: Ingo Molnar <mingo@...hat.com> 
Cc: Arnaldo Carvalho de Melo <acme@...nel.org> 
Cc: Mark Rutland <mark.rutland@....com> 
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com> 
Cc: Jiri Olsa <jolsa@...hat.com> 
Cc: Namhyung Kim <namhyung@...nel.org> 
Cc: linux-btrfs@...r.kernel.org 
Cc: linux-kernel@...r.kernel.org 
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ