From: Matt K. Light Date: Tue, 13 Sep 2016 19:18:38 +0000 (-0500) Subject: Fix compile error for PPC64 gcc 6.1.1 X-Git-Tag: upstream/1.6.20^2~16 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5ff18ad4eb5d4025057a67a5bf1144be03c93cd5;p=packages%2Fo%2Fopenafs.git Fix compile error for PPC64 gcc 6.1.1 Cast function pointer stubs to remove compile errors on Fedora 24 PPC64 with ggcc 6.1.1 FIXES 133407 Reviewed-on: https://gerrit.openafs.org/12386 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot (cherry picked from commit 733dcec01784617e3354c2b8b29f50b09464a4bb) Change-Id: Ic3af05a33a9df00449c5d68aa0c481167c23e60a Reviewed-on: https://gerrit.openafs.org/12388 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/afs/LINUX/osi_syscall.c b/src/afs/LINUX/osi_syscall.c index c306309a0..0640723ec 100644 --- a/src/afs/LINUX/osi_syscall.c +++ b/src/afs/LINUX/osi_syscall.c @@ -461,8 +461,8 @@ int osi_syscall_init(void) flush_cache((void *)afs_sys_call_table, 2*NR_syscalls*sizeof(void*)); - sys_setgroupsp = sys_setgroups_stub; - sys32_setgroupsp = sys32_setgroups_stub; + sys_setgroupsp = POINTER2SYSCALL sys_setgroups_stub; + sys32_setgroupsp = POINTER2SYSCALL sys32_setgroups_stub; } /***** COMMON (except IA64 or PPC64) *****/ #else /* !AFS_IA64_LINUX20_ENV */