aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhangwei(Jovi) <jovi.zhangwei@huawei.com>2013-04-30 18:28:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 20:04:09 -0400
commit536b39ecf1b52ab71c2c126db0137611b9e1a4d4 (patch)
treec6c6c3e848bc927bf560b2ddf3381230d4e39649
parent8359f689e23a607ec6758737551045997848ac75 (diff)
kernel/relay.c: move FIX_SIZE macro into relay.c
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/relay.h3
-rw-r--r--kernel/relay.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/relay.h b/include/linux/relay.h
index 91cacc34c159..d7c8359693c6 100644
--- a/include/linux/relay.h
+++ b/include/linux/relay.h
@@ -20,9 +20,6 @@
20#include <linux/poll.h> 20#include <linux/poll.h>
21#include <linux/kref.h> 21#include <linux/kref.h>
22 22
23/* Needs a _much_ better name... */
24#define FIX_SIZE(x) ((((x) - 1) & PAGE_MASK) + PAGE_SIZE)
25
26/* 23/*
27 * Tracks changes to rchan/rchan_buf structs 24 * Tracks changes to rchan/rchan_buf structs
28 */ 25 */
diff --git a/kernel/relay.c b/kernel/relay.c
index d21006c4a3cc..4c2959b6c34d 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -550,6 +550,9 @@ static int __cpuinit relay_hotcpu_callback(struct notifier_block *nb,
550 return NOTIFY_OK; 550 return NOTIFY_OK;
551} 551}
552 552
553/* Needs a _much_ better name... */
554#define FIX_SIZE(x) ((((x) - 1) & PAGE_MASK) + PAGE_SIZE)
555
553/** 556/**
554 * relay_open - create a new relay channel 557 * relay_open - create a new relay channel
555 * @base_filename: base name of files to create, %NULL for buffering only 558 * @base_filename: base name of files to create, %NULL for buffering only