]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/srcu.h
libata: switch to using block layer tagging support
[linux-2.6-omap-h63xx.git] / include / linux / srcu.h
index 947fdab2ddb06fb829707359c52660d7efa6a583..aca0eee53930f5014fc1037caab46d46cd16a855 100644 (file)
@@ -24,6 +24,9 @@
  *
  */
 
+#ifndef _LINUX_SRCU_H
+#define _LINUX_SRCU_H
+
 struct srcu_struct_array {
        int c[2];
 };
@@ -40,10 +43,11 @@ struct srcu_struct {
 #define srcu_barrier()
 #endif /* #else #ifndef CONFIG_PREEMPT */
 
-void init_srcu_struct(struct srcu_struct *sp);
+int init_srcu_struct(struct srcu_struct *sp);
 void cleanup_srcu_struct(struct srcu_struct *sp);
 int srcu_read_lock(struct srcu_struct *sp) __acquires(sp);
 void srcu_read_unlock(struct srcu_struct *sp, int idx) __releases(sp);
 void synchronize_srcu(struct srcu_struct *sp);
 long srcu_batches_completed(struct srcu_struct *sp);
-void cleanup_srcu_struct(struct srcu_struct *sp);
+
+#endif