]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kernel/relay.c: move FIX_SIZE macro into relay.c
authorzhangwei(Jovi) <jovi.zhangwei@huawei.com>
Sat, 23 Mar 2013 02:33:06 +0000 (13:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Mar 2013 05:11:44 +0000 (16:11 +1100)
It's better to place FIX_SIZE macro in relay.c, instead of relay.h

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/relay.h
kernel/relay.c

index 91cacc34c159192ab5a7fa712982ea5a8d268b59..d7c8359693c6e19cdf57c52316f2e223581f14b2 100644 (file)
@@ -20,9 +20,6 @@
 #include <linux/poll.h>
 #include <linux/kref.h>
 
-/* Needs a _much_ better name... */
-#define FIX_SIZE(x) ((((x) - 1) & PAGE_MASK) + PAGE_SIZE)
-
 /*
  * Tracks changes to rchan/rchan_buf structs
  */
index d21006c4a3cc8eb970e9317dd8838e1f3e4b6e21..4c2959b6c34ddd4bc0cb0292beb7126568ef7f73 100644 (file)
@@ -550,6 +550,9 @@ static int __cpuinit relay_hotcpu_callback(struct notifier_block *nb,
        return NOTIFY_OK;
 }
 
+/* Needs a _much_ better name... */
+#define FIX_SIZE(x) ((((x) - 1) & PAGE_MASK) + PAGE_SIZE)
+
 /**
  *     relay_open - create a new relay channel
  *     @base_filename: base name of files to create, %NULL for buffering only