linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: Drop __exit attribute on btrfs_exit_compress
@ 2011-02-02 21:15 Alexey Charkov
  0 siblings, 0 replies; only message in thread
From: Alexey Charkov @ 2011-02-02 21:15 UTC (permalink / raw)
  To: Chris Mason; +Cc: linux-btrfs, linux-kernel

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 <alchark@gmail.com>

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

Best regards,
Alexey

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)
 {
 	free_workspaces();
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-02 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02 21:15 [PATCH] btrfs: Drop __exit attribute on btrfs_exit_compress Alexey Charkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).