summaryrefslogtreecommitdiff
path: root/tmpfs
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /tmpfs
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'tmpfs')
-rw-r--r--tmpfs/node.c6
-rw-r--r--tmpfs/tmpfs.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/tmpfs/node.c b/tmpfs/node.c
index 86e02fea..2129d305 100644
--- a/tmpfs/node.c
+++ b/tmpfs/node.c
@@ -604,19 +604,19 @@ diskfs_get_filemap_pager_struct (struct node *np)
/* We have no pager of our own, so there is no need to worry about
users of it, or to shut it down. */
int
-diskfs_pager_users ()
+diskfs_pager_users (void)
{
return 0;
}
void
-diskfs_shutdown_pager ()
+diskfs_shutdown_pager (void)
{
}
/* The purpose of this is to decide that it's ok to make the fs read-only.
Turning a temporary filesystem read-only seem pretty useless. */
vm_prot_t
-diskfs_max_user_pager_prot ()
+diskfs_max_user_pager_prot (void)
{
return VM_PROT_READ; /* Probable lie that lets us go read-only. */
}
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c
index 28151990..5483ec87 100644
--- a/tmpfs/tmpfs.c
+++ b/tmpfs/tmpfs.c
@@ -91,7 +91,7 @@ diskfs_sync_everything (int wait)
}
error_t
-diskfs_reload_global_state ()
+diskfs_reload_global_state (void)
{
return 0;
}