diff options
author | 2022-10-24 16:16:14 -0400 | |
---|---|---|
committer | 2022-12-05 18:00:44 +0100 | |
commit | 911bd75aca7390ca9e39191450829b09772c5a77 (patch) | |
tree | 4116a3a22768a7742dc9938fb27db4652e8a5198 /fs/btrfs/tree-defrag.c | |
parent | btrfs: move root tree prototypes to their own header (diff) | |
download | wireguard-linux-911bd75aca7390ca9e39191450829b09772c5a77.tar.xz wireguard-linux-911bd75aca7390ca9e39191450829b09772c5a77.zip |
btrfs: remove unused function prototypes
I wrote the following coccinelle script to find function declarations
that didn't have the corresponding code for them
@funcproto@
identifier func;
type T;
position p0;
@@
T func@p0(...);
@funccode@
identifier funcproto.func;
position p1;
@@
func@p1(...) { ... }
@script:python depends on !funccode@
p0 << funcproto.p0;
@@
print("Proto with no function at %s:%s" % (p0[0].file, p0[0].line))
and ran it against btrfs, which identified the 4 function prototypes
I've removed in this patch.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
0 files changed, 0 insertions, 0 deletions