[Devel] [PATCH vz7 v2 3/7] ub statd: move struct ub_stat_notify declaration to source

Stanislav Kinsburskiy skinsbursky at odin.com
Thu Oct 1 06:38:27 PDT 2015


From: Stanislav Kinsburskiy <skinsbursky at parallels.com>

It's used only in one file: kernel/bc/statd.c. No need to declare it in
headers.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at parallels.com>
---
 include/bc/statd.h |    7 -------
 kernel/bc/statd.c  |    6 ++++++
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/bc/statd.h b/include/bc/statd.h
index 9dafc5e..377a8c4 100644
--- a/include/bc/statd.h
+++ b/include/bc/statd.h
@@ -60,11 +60,4 @@ typedef struct {
 	ubstatparmf_t	param[0];
 } ubstatfull_t;
 
-#ifdef __KERNEL__
-struct ub_stat_notify {
-	struct list_head	list;
-	struct task_struct	*task;
-	int			signum;
-};
-#endif
 #endif
diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c
index 97602da..f2b984c 100644
--- a/kernel/bc/statd.c
+++ b/kernel/bc/statd.c
@@ -31,6 +31,12 @@ static long ubs_min_interval;
 static ubstattime_t ubs_start_time, ubs_end_time;
 static struct timer_list ubs_timer;
 
+struct ub_stat_notify {
+	struct list_head	list;
+	struct task_struct	*task;
+	int			signum;
+};
+
 static int ubstat_get_list(void __user *buf, long size)
 {
 	int retval;




More information about the Devel mailing list