powerpc/64: make buildable without CONFIG_COMPAT
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek <msuchanek@suse.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/e5619617020ef3a1f54f0c076e7d74cb9ec9f3bf.1584699455.git.msuchanek@suse.de
This commit is contained in:

committed by
Michael Ellerman

parent
2910428106
commit
0a7601b6ff
@@ -651,7 +651,8 @@ static void __init vdso_setup_syscall_map(void)
|
||||
if (sys_call_table[i] != sys_ni_syscall)
|
||||
vdso_data->syscall_map_64[i >> 5] |=
|
||||
0x80000000UL >> (i & 0x1f);
|
||||
if (compat_sys_call_table[i] != sys_ni_syscall)
|
||||
if (IS_ENABLED(CONFIG_COMPAT) &&
|
||||
compat_sys_call_table[i] != sys_ni_syscall)
|
||||
vdso_data->syscall_map_32[i >> 5] |=
|
||||
0x80000000UL >> (i & 0x1f);
|
||||
#else /* CONFIG_PPC64 */
|
||||
|
Reference in New Issue
Block a user