Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1280934 > unrolled thread

[PATCH] fs: ramfs: mark once as __initdata

Started byRasmus Villemoes <linux@rasmusvillemoes.dk>
First post2015-12-01 16:10 +0100
Last post2015-12-01 16:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] fs: ramfs: mark once as __initdata Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-12-01 16:10 +0100

#1280934 — [PATCH] fs: ramfs: mark once as __initdata

FromRasmus Villemoes <linux@rasmusvillemoes.dk>
Date2015-12-01 16:10 +0100
Subject[PATCH] fs: ramfs: mark once as __initdata
Message-ID<qAUJ4-2Pr-33@gated-at.bofh.it>
There's no reason to keep this around after init.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 fs/ramfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c
index 889d558b4e05..74afa43cced5 100644
--- a/fs/ramfs/inode.c
+++ b/fs/ramfs/inode.c
@@ -257,7 +257,7 @@ static struct file_system_type ramfs_fs_type = {
 
 int __init init_ramfs_fs(void)
 {
-	static unsigned long once;
+	static unsigned long once __initdata;
 
 	if (test_and_set_bit(0, &once))
 		return 0;
-- 
2.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web