X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=include%2Flinux%2Fvmalloc.h;h=00a064811562266a066eb26e0f71142b5d846cc7;hb=458b84ae000e435187b9ee59647b16bbc876f9c4;hp=bad3ea4ded8efcb4993437882d30f690e082086a;hpb=f9cff13b5d3e04e897a495168da90933b503a6cc;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index bad3ea4ded8e..00a064811562 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -15,7 +15,6 @@ struct vm_area_struct; /* vma defining user mapping in mm_types.h */ #define VM_ALLOC 0x00000002 /* vmalloc() */ #define VM_MAP 0x00000004 /* vmap()ed pages */ #define VM_USERMAP 0x00000008 /* suitable for remap_vmalloc_range */ -#define VM_VPAGES 0x00000010 /* buffer for pages was vmalloc'ed */ #define VM_UNINITIALIZED 0x00000020 /* vm_struct is not fully initialized */ #define VM_NO_GUARD 0x00000040 /* don't add guard page */ #define VM_KASAN 0x00000080 /* has allocated kasan shadow memory */ @@ -163,12 +162,6 @@ extern struct list_head vmap_area_list; extern __init void vm_area_add_early(struct vm_struct *vm); extern __init void vm_area_register_early(struct vm_struct *vm, size_t align); extern __init int vm_area_check_early(struct vm_struct *vm); -#ifdef CONFIG_ENABLE_VMALLOC_SAVING -extern void mark_vmalloc_reserved_area(void *addr, unsigned long size); -#else -static inline void mark_vmalloc_reserved_area(void *addr, unsigned long size) -{ }; -#endif #ifdef CONFIG_SMP # ifdef CONFIG_MMU @@ -194,12 +187,7 @@ pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) #endif #ifdef CONFIG_MMU -#ifdef CONFIG_ENABLE_VMALLOC_SAVING -extern unsigned long total_vmalloc_size; -#define VMALLOC_TOTAL total_vmalloc_size -#else #define VMALLOC_TOTAL (VMALLOC_END - VMALLOC_START) -#endif #else #define VMALLOC_TOTAL 0UL #endif