[sheepdog] [PATCH 5/5] fix trivial coding style errors

MORITA Kazutaka morita.kazutaka at gmail.com
Fri Feb 22 01:38:42 CET 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/request.c     |    1 -
 sheep/sheep_priv.h  |    7 ++++---
 sheep/trace/trace.h |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sheep/request.c b/sheep/request.c
index 009d279..daabb41 100644
--- a/sheep/request.c
+++ b/sheep/request.c
@@ -59,7 +59,6 @@ static void io_op_done(struct work *work)
 	default:
 		sd_dprintf("unhandled error %d\n", req->rp.result);
 		break;
-
 	}
 
 	put_request(req);
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index e0f8bba..c0fefb4 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -189,9 +189,10 @@ int for_each_object_in_wd(int (*func)(uint64_t oid, void *arg), bool cleanup,
 int err_to_sderr(uint64_t oid, int err);
 
 extern struct list_head store_drivers;
-#define add_store_driver(driver)                                 \
-static void __attribute__((constructor)) add_ ## driver(void) {  \
-	list_add(&driver.list, &store_drivers);                  \
+#define add_store_driver(driver)				\
+static void __attribute__((constructor)) add_ ## driver(void)	\
+{								\
+	list_add(&driver.list, &store_drivers);			\
 }
 
 static inline struct store_driver *find_store_driver(const char *name)
diff --git a/sheep/trace/trace.h b/sheep/trace/trace.h
index 2840646..3fe38f7 100644
--- a/sheep/trace/trace.h
+++ b/sheep/trace/trace.h
@@ -65,8 +65,8 @@ unsigned long trace_return_call(void);
   static inline int trace_enable(void) { return 0; }
   static inline int trace_disable(void) { return 0; }
   static inline int trace_buffer_pop(void *buf, uint32_t len) { return 0; }
-  static inline void trace_buffer_push(int cpuid, struct
-				       trace_graph_item *item) { return; }
+  static inline void trace_buffer_push(
+	  int cpuid, struct trace_graph_item *item) { return; }
   static inline void short_thread_begin(void) { return; }
   static inline void short_thread_end(void) { return; }
 
-- 
1.7.9.5




More information about the sheepdog mailing list