From 4129b055a6236e892e1dc2c5d2023d1947495811 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Fri, 20 Aug 2010 16:11:59 -0400 Subject: [PATCH] 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 --- src/afs/LINUX/osi_syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/LINUX/osi_syscall.c b/src/afs/LINUX/osi_syscall.c index eec3464aef..a4c92ed21b 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