From: Marc Dionne Date: Wed, 28 Apr 2010 00:00:23 +0000 (-0400) Subject: Linux: specify void argument for afs_try_to_freeze inlines X-Git-Tag: openafs-devel-1_5_75~348 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b1c6d709cba64cda7bce0f5f91ab30a1e7bb8983;p=packages%2Fo%2Fopenafs.git Linux: specify void argument for afs_try_to_freeze inlines The new freeze inlines take no arguments, but need to be declared as taking (void) to prevent warnings that it is not a proper prototype. Change-Id: Ife675e69f566fabaee4bc41f2cc4fa9a20e816db Reviewed-on: http://gerrit.openafs.org/1870 Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h index dc3abec21..fbeb7e2b9 100644 --- a/src/afs/LINUX/osi_compat.h +++ b/src/afs/LINUX/osi_compat.h @@ -275,7 +275,7 @@ kernel_getsockopt(struct socket *sockp, int level, int name, char *val, #ifdef HAVE_TRY_TO_FREEZE static inline void -afs_try_to_freeze() { +afs_try_to_freeze(void) { # ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE try_to_freeze(PF_FREEZE); # else @@ -284,7 +284,7 @@ afs_try_to_freeze() { } #else static inline void -afs_try_to_freeze() { +afs_try_to_freeze(void) { # ifdef CONFIG_PM if (current->flags & PF_FREEZE) { refrigerator(PF_FREEZE);