X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=share%2Fkernelcompat.h;h=57d12f83aef1a85d713402984611cedcaf269833;hb=d6355fb2296dad2a7523630a3ab2cb7ff287d969;hp=3c23ac99477b8d95e4c367b59f58d7c95daf4834;hpb=69ba01560f9193dbf4ad2fc8361efb725704807c;p=ust.git diff --git a/share/kernelcompat.h b/share/kernelcompat.h index 3c23ac9..57d12f8 100644 --- a/share/kernelcompat.h +++ b/share/kernelcompat.h @@ -141,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))