[lkml]   [2011]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] btrfs: Drop __exit attribute on btrfs_exit_compress
As this function is called in some error paths while not
removing the module, the __exit attribute prevents the kernel
image from linking when btrfs is compiled in statically.

Signed-off-by: Alexey Charkov <>

I am not completely sure whether this has already been reported,
but googling around did not show any traces.

Best regards,

diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index f745287..db36b5e 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -900,7 +900,7 @@ int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page,
return ret;

-void __exit btrfs_exit_compress(void)
+void btrfs_exit_compress(void)

 \ /
  Last update: 2011-02-02 22:17    [W:0.027 / U:51.056 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site