From: Marc Dionne Date: Fri, 20 Aug 2010 20:11:59 +0000 (-0400) Subject: s390x: only declare afs_sys_setgroups32_page where needed X-Git-Tag: openafs-devel-1_5_77~41 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=14cc14d89b1a687d6694f2217c8b414f6c36a89c;p=packages%2Fo%2Fopenafs.git s390x: only declare afs_sys_setgroups32_page where needed Variable afs_sys_setgroups32_page is only used when __NR_setgroups32 is not defined. Make the declaration depend on it as well to clear up an unused variable warning. Change-Id: I812b98d6ac4bf6ac923553ef3556c90d75d86fcb Reviewed-on: http://gerrit.openafs.org/2600 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 4129b055a6236e892e1dc2c5d2023d1947495811) Reviewed-on: http://gerrit.openafs.org/2672 --- diff --git a/src/afs/LINUX/osi_syscall.c b/src/afs/LINUX/osi_syscall.c index eec3464ae..a4c92ed21 100644 --- a/src/afs/LINUX/osi_syscall.c +++ b/src/afs/LINUX/osi_syscall.c @@ -82,7 +82,9 @@ static SYSCALLTYPE afs_ni_syscall = 0; #ifdef AFS_S390X_LINUX24_ENV static void *afs_sys_setgroups_page = 0; +#if defined(__NR_setgroups32) static void *afs_sys_setgroups32_page = 0; +#endif static void *afs_syscall_page = 0; /* Because of how the syscall table is handled, we need to ensure our