Skip to content

Commit

Permalink
Revert "BACKPORT: arm64, vdso: Define vdso_{start,end} as array"
Browse files Browse the repository at this point in the history
This reverts commit a41c2e1.

Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
khusika committed Oct 13, 2018
1 parent 6e55ee3 commit 80f93fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/arm64/kernel/vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <asm/vdso.h>
#include <asm/vdso_datapage.h>

extern char vdso_start[], vdso_end[];
extern char vdso_start, vdso_end;
static unsigned long vdso_pages;
static struct page **vdso_pagelist;

Expand Down Expand Up @@ -116,14 +116,14 @@ static int __init vdso_init(void)
int i;
unsigned long pfn;

if (memcmp(vdso_start, "\177ELF", 4)) {
if (memcmp(&vdso_start, "\177ELF", 4)) {
pr_err("vDSO is not a valid ELF object!\n");
return -EINVAL;
}

vdso_pages = (vdso_end - vdso_start) >> PAGE_SHIFT;
vdso_pages = (&vdso_end - &vdso_start) >> PAGE_SHIFT;
pr_info("vdso: %ld pages (%ld code @ %p, %ld data @ %p)\n",
vdso_pages + 1, vdso_pages, vdso_start, 1L, vdso_data);
vdso_pages + 1, vdso_pages, &vdso_start, 1L, vdso_data);

/* Allocate the vDSO pagelist, plus a page for the data. */
vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *),
Expand Down

0 comments on commit 80f93fa

Please sign in to comment.