The '.data..percpu..user_mapped..page_aligned' section isn't used anywhere. Remove it and its related macros. Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> --- include/asm-generic/vmlinux.lds.h | 2 -- include/linux/percpu-defs.h | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index e12168936d3f..386f8846d9e9 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -831,8 +831,6 @@ . = ALIGN(cacheline); \ *(.data..percpu..user_mapped) \ *(.data..percpu..user_mapped..shared_aligned) \ - . = ALIGN(PAGE_SIZE); \ - *(.data..percpu..user_mapped..page_aligned) \ VMLINUX_SYMBOL(__per_cpu_user_mapped_end) = .; \ . = ALIGN(PAGE_SIZE); \ *(.data..percpu..page_aligned) \ diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 752513674295..40ea19ccf1ec 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -182,16 +182,6 @@ #define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \ DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \ __aligned(PAGE_SIZE) -/* - * Declaration/definition used for per-CPU variables that must be page aligned and need to be mapped in user mode. - */ -#define DECLARE_PER_CPU_PAGE_ALIGNED_USER_MAPPED(type, name) \ - DECLARE_PER_CPU_SECTION(type, name, USER_MAPPED_SECTION"..page_aligned") \ - __aligned(PAGE_SIZE) - -#define DEFINE_PER_CPU_PAGE_ALIGNED_USER_MAPPED(type, name) \ - DEFINE_PER_CPU_SECTION(type, name, USER_MAPPED_SECTION"..page_aligned") \ - __aligned(PAGE_SIZE) /* * Declaration/definition used for per-CPU variables that must be read mostly. -- 2.13.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>