mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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 <sxw@inf.ed.ac.uk> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
009b547195
commit
b1c6d709cb
@ -275,7 +275,7 @@ kernel_getsockopt(struct socket *sockp, int level, int name, char *val,
|
|||||||
|
|
||||||
#ifdef HAVE_TRY_TO_FREEZE
|
#ifdef HAVE_TRY_TO_FREEZE
|
||||||
static inline void
|
static inline void
|
||||||
afs_try_to_freeze() {
|
afs_try_to_freeze(void) {
|
||||||
# ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
|
# ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
|
||||||
try_to_freeze(PF_FREEZE);
|
try_to_freeze(PF_FREEZE);
|
||||||
# else
|
# else
|
||||||
@ -284,7 +284,7 @@ afs_try_to_freeze() {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline void
|
static inline void
|
||||||
afs_try_to_freeze() {
|
afs_try_to_freeze(void) {
|
||||||
# ifdef CONFIG_PM
|
# ifdef CONFIG_PM
|
||||||
if (current->flags & PF_FREEZE) {
|
if (current->flags & PF_FREEZE) {
|
||||||
refrigerator(PF_FREEZE);
|
refrigerator(PF_FREEZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user