X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fasm-cris%2Fpage.h;h=c99c478c482f77d4568206a15952435b11e0d887;hb=e7de369050534025b33aab1033358bf47a577e4d;hp=bbf17bd3938523c81e178a5aec94cbfe424a771a;hpb=96fad28a781069eb40156f78b8f50c349805b652;p=karo-tx-linux.git diff --git a/include/asm-cris/page.h b/include/asm-cris/page.h index bbf17bd39385..c99c478c482f 100644 --- a/include/asm-cris/page.h +++ b/include/asm-cris/page.h @@ -70,19 +70,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; #ifndef __ASSEMBLY__ -/* Pure 2^n version of get_order */ -static inline int get_order(unsigned long size) -{ - int order; - - size = (size-1) >> (PAGE_SHIFT-1); - order = -1; - do { - size >>= 1; - order++; - } while (size); - return order; -} #endif /* __ASSEMBLY__ */ #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ @@ -90,5 +77,7 @@ static inline int get_order(unsigned long size) #endif /* __KERNEL__ */ +#include + #endif /* _CRIS_PAGE_H */