X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=share%2Fkernelcompat.h;h=57d12f83aef1a85d713402984611cedcaf269833;hb=1e2944cb1e15d658b5991026e5604c56f551e2ab;hp=63964888e6de5f93850e230ea899d047d0c75d6b;hpb=981e27d976f58157323770384f8fd125733e0b8e;p=lttng-ust.git diff --git a/share/kernelcompat.h b/share/kernelcompat.h index 63964888..57d12f83 100644 --- a/share/kernelcompat.h +++ b/share/kernelcompat.h @@ -1,10 +1,9 @@ #ifndef KERNELCOMPAT_H #define KERNELCOMPAT_H +#include #include -#include "compiler.h" - #include #include @@ -142,7 +141,7 @@ static __inline__ int get_count_order(unsigned int count) #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) #define PAGE_SIZE sysconf(_SC_PAGE_SIZE) -#define PAGE_MASK (PAGE_SIZE-1) +#define PAGE_MASK (~(PAGE_SIZE-1)) @@ -189,14 +188,4 @@ static inline u32 trace_clock_freq_scale(void) } -/* LISTS */ - -#define list_add_rcu list_add -#define list_for_each_entry_rcu list_for_each_entry - - -#define EXPORT_SYMBOL_GPL(a) /*nothing*/ - -#define smp_processor_id() (-1) - #endif /* KERNELCOMPAT_H */