aboutsummaryrefslogtreecommitdiff
path: root/device/dev_pager.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:17:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:18:16 +0100
commit92257f56a32f16795402cdbeb76a8b4f56ea2369 (patch)
treefa520391b49f4bac7ad77ee065d68e8dcab2d8be /device/dev_pager.c
parenta9c54f2c7f93127517b725952e67697bd82a7eeb (diff)
downloadgnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.gz
gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.bz2
gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.zip
slock: Fix initialization of statically-allocated slocks
(this is actually a no-op for i386)
Diffstat (limited to 'device/dev_pager.c')
-rw-r--r--device/dev_pager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/device/dev_pager.c b/device/dev_pager.c
index d9d22489..1cd74064 100644
--- a/device/dev_pager.c
+++ b/device/dev_pager.c
@@ -167,8 +167,7 @@ typedef struct dev_pager_entry *dev_pager_entry_t;
*/
queue_head_t dev_pager_hashtable[DEV_HASH_COUNT];
struct kmem_cache dev_pager_hash_cache;
-decl_simple_lock_data(,
- dev_pager_hash_lock)
+def_simple_lock_data(static, dev_pager_hash_lock)
struct dev_device_entry {
queue_chain_t links;
@@ -184,8 +183,7 @@ typedef struct dev_device_entry *dev_device_entry_t;
*/
queue_head_t dev_device_hashtable[DEV_HASH_COUNT];
struct kmem_cache dev_device_hash_cache;
-decl_simple_lock_data(,
- dev_device_hash_lock)
+def_simple_lock_data(static, dev_device_hash_lock)
#define dev_hash(name_port) \
(((vm_offset_t)(name_port) & 0xffffff) % DEV_HASH_COUNT)