scripts/link-vmlinux.sh: only filter kernel symbols for arm
authorMing Lei <tom.leiming@gmail.com>
Tue, 10 Dec 2013 06:16:29 +0000 (16:46 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:09 +0000 (12:25 -0800)
commit657d81a0ae5ed05987fd6139aab1ea94d1056bd2
tree06b8c56135fe76b6ec513e39b36857f66925f4cc
parent97dd150b32f11d352147eea6919f6894cdcd36f2
scripts/link-vmlinux.sh: only filter kernel symbols for arm

commit 7122c3e9154b5d9a7422f68f02d8acf050fad2b0 upstream.

Actually CONFIG_PAGE_OFFSET isn't same with PAGE_OFFSET, so
it isn't easy to figue out PAGE_OFFSET defined in header
file from scripts.

Because CONFIG_PAGE_OFFSET may not be defined in some ARCHs(
64bit ARCH), or defined as bogus value in !MMU case, so
this patch only applys the filter on ARM when CONFIG_PAGE_OFFSET
is defined as the original problem is only on ARM.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Fixes: f6537f2f0eba4eba3354e48dbe3047db6d8b6254
Singed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/link-vmlinux.sh