aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcel.braun <marcel.braun@ost.ch>2026-03-30 19:26:48 +0200
committermarcel.braun <marcel.braun@ost.ch>2026-03-30 19:26:48 +0200
commit7ad07a735759dc93b668ec92896f57c0c0df0025 (patch)
treefc8c0feec7298d21f0eb214858c651a59b1ba83a
parentea578b348f63939bb07bd669ad86d3fe1b6d5f65 (diff)
downloadteachos-7ad07a735759dc93b668ec92896f57c0c0df0025.tar.xz
teachos-7ad07a735759dc93b668ec92896f57c0c0df0025.zip
Fix linter warnings
-rw-r--r--kernel/src/filesystem/ext2/ext2_filesystem.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kernel/src/filesystem/ext2/ext2_filesystem.cpp b/kernel/src/filesystem/ext2/ext2_filesystem.cpp
index e176ade..ea6fe0d 100644
--- a/kernel/src/filesystem/ext2/ext2_filesystem.cpp
+++ b/kernel/src/filesystem/ext2/ext2_filesystem.cpp
@@ -17,32 +17,32 @@ namespace filesystem::ext2
{
namespace
{
- constexpr size_t SUPERBLOCK_OFFSET = 1024;
- constexpr uint16_t EXT2_MAGIC = 0xEF53;
+ // constexpr size_t SUPERBLOCK_OFFSET = 1024;
+ // constexpr uint16_t EXT2_MAGIC = 0xEF53;
- // Mode bits
- constexpr uint16_t S_IFMT = 0xF000;
- constexpr uint16_t S_IFREG = 0x8000;
- constexpr uint16_t S_IFDIR = 0x4000;
+ // // Mode bits
+ // constexpr uint16_t S_IFMT = 0xF000;
+ // constexpr uint16_t S_IFREG = 0x8000;
+ // constexpr uint16_t S_IFDIR = 0x4000;
- auto S_ISREG(uint16_t mode) -> bool
- {
- return (mode & S_IFMT) == S_IFREG;
- }
- auto S_ISDIR(uint16_t mode) -> bool
- {
- return (mode & S_IFMT) == S_IFDIR;
- }
+ // auto S_ISREG(uint16_t mode) -> bool
+ // {
+ // return (mode & S_IFMT) == S_IFREG;
+ // }
+ // auto S_ISDIR(uint16_t mode) -> bool
+ // {
+ // return (mode & S_IFMT) == S_IFDIR;
+ // }
- auto get_block_size(ext2_superblock const & superblock) -> size_t
- {
- return 1024U << superblock.log_block_size;
- }
+ // auto get_block_size(ext2_superblock const & superblock) -> size_t
+ // {
+ // return 1024U << superblock.log_block_size;
+ // }
- auto get_inode_size(ext2_superblock const & superblock) -> size_t
- {
- return superblock.rev_level == 0 ? 128 : superblock.inode_size;
- }
+ // auto get_inode_size(ext2_superblock const & superblock) -> size_t
+ // {
+ // return superblock.rev_level == 0 ? 128 : superblock.inode_size;
+ // }
} // namespace
auto ext2_filesystem::mount(kstd::shared_ptr<devices::device> const & device) -> int