Skip to content

Commit 95988fb

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas: - Remove vdso code trying to free unallocated pages. - Delete the space separator in the __emit_inst macro as it breaks the clang integrated assembler. * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: Delete the space separator in __emit_inst arm64: vdso: don't free unallocated pages
2 parents d0a4ebe + c9a4ef6 commit 95988fb

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
#ifndef CONFIG_BROKEN_GAS_INST
5050

5151
#ifdef __ASSEMBLY__
52-
#define __emit_inst(x) .inst (x)
52+
// The space separator is omitted so that __emit_inst(x) can be parsed as
53+
// either an assembler directive or an assembler macro argument.
54+
#define __emit_inst(x) .inst(x)
5355
#else
5456
#define __emit_inst(x) ".inst " __stringify((x)) "\n\t"
5557
#endif

arch/arm64/kernel/vdso.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,18 +260,7 @@ static int __aarch32_alloc_vdso_pages(void)
260260
if (ret)
261261
return ret;
262262

263-
ret = aarch32_alloc_kuser_vdso_page();
264-
if (ret) {
265-
unsigned long c_vvar =
266-
(unsigned long)page_to_virt(aarch32_vdso_pages[C_VVAR]);
267-
unsigned long c_vdso =
268-
(unsigned long)page_to_virt(aarch32_vdso_pages[C_VDSO]);
269-
270-
free_page(c_vvar);
271-
free_page(c_vdso);
272-
}
273-
274-
return ret;
263+
return aarch32_alloc_kuser_vdso_page();
275264
}
276265
#else
277266
static int __aarch32_alloc_vdso_pages(void)

0 commit comments

Comments
 (0)