aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/devfs/filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/filesystem/devfs/filesystem.cpp')
-rw-r--r--kernel/src/filesystem/devfs/filesystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/src/filesystem/devfs/filesystem.cpp b/kernel/src/filesystem/devfs/filesystem.cpp
index 1aaa0d1..ce887ff 100644
--- a/kernel/src/filesystem/devfs/filesystem.cpp
+++ b/kernel/src/filesystem/devfs/filesystem.cpp
@@ -32,10 +32,10 @@ namespace kernel::filesystem::devfs
{
return kstd::make_shared<filesystem>();
}
- } const constinit type_instance{};
+ };
- [[gnu::section("vfs_type_descriptors"), gnu::used]]
- auto const * const type_descriptor_pointer = static_cast<kernel::filesystem::type const *>(&type_instance);
+ [[gnu::used]]
+ constexpr auto registration = type_registration<type>{};
auto filesystem::mount(kstd::shared_ptr<kernel::filesystem::inode> const &) -> operation_result
{