|
@@ -28,15 +28,15 @@ static inline char *cattr_name(unsigned long flags)
|
|
|
#ifdef CONFIG_X86_PAT
|
|
|
extern int rbt_memtype_check_insert(struct memtype *new,
|
|
|
unsigned long *new_type);
|
|
|
-extern int rbt_memtype_erase(u64 start, u64 end);
|
|
|
+extern struct memtype *rbt_memtype_erase(u64 start, u64 end);
|
|
|
extern struct memtype *rbt_memtype_lookup(u64 addr);
|
|
|
extern int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos);
|
|
|
#else
|
|
|
static inline int rbt_memtype_check_insert(struct memtype *new,
|
|
|
unsigned long *new_type)
|
|
|
{ return 0; }
|
|
|
-static inline int rbt_memtype_erase(u64 start, u64 end)
|
|
|
-{ return 0; }
|
|
|
+static inline struct memtype *rbt_memtype_erase(u64 start, u64 end)
|
|
|
+{ return NULL; }
|
|
|
static inline struct memtype *rbt_memtype_lookup(u64 addr)
|
|
|
{ return NULL; }
|
|
|
static inline int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos)
|