perf: Clean up perf_{session,alloc} management
[akaros.git] / kern / include / bitmask.h
index a3433a4..8b8d079 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ROS_KERN_BITMASK_H
-#define ROS_KERN_BITMASK_H
+#pragma once
 
 #include <arch/bitmask.h>
 
@@ -36,7 +35,7 @@ static inline void CLR_BITMASK_RANGE(uint8_t* m, size_t beg, size_t end)
 }
 
 /* Runs *work on every bit in the bitmask, passing *work the value of the bit
- * that is set.  Optionally clears the bit from the bitmask. 
+ * that is set.  Optionally clears the bit from the bitmask.
  *
  * We need this to be a macro, so that the calling code doesn't need the
  * address for work_fn.  This matters for code that has nested functions that
@@ -52,6 +51,4 @@ static inline void CLR_BITMASK_RANGE(uint8_t* m, size_t beg, size_t end)
                if (present)                                                           \
                        (work_fn)(i);                                                      \
        }                                                                          \
-}                                                                              
-
-#endif /* ROS_KERN_BITMASK_H */
+}