diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-30 22:44:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 21:51:00 +0100 |
commit | bbe787a0afd51307cdac2c023895c19df31519ca (patch) | |
tree | 44dc80cf50b22b461c27c1e9d99fa2c9ff00e22e /Kernel/Storage | |
parent | 2568a93b5dd29d2b06d613a4ece502ee696f189a (diff) | |
download | serenity-bbe787a0afd51307cdac2c023895c19df31519ca.zip |
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly
around structs/classes with attributes like [[gnu::packed]], and
incorrect insertion of spaces in parameter types ("T &"/"T &&").
I also removed a bunch of // clang-format off/on and FIXME comments that
are no longer relevant - on the other hand it tried to destroy a couple of
neatly formatted comments, so I had to add some as well.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r-- | Kernel/Storage/Partition/GUIDPartitionTable.cpp | 6 | ||||
-rw-r--r-- | Kernel/Storage/Partition/MBRPartitionTable.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/Kernel/Storage/Partition/GUIDPartitionTable.cpp b/Kernel/Storage/Partition/GUIDPartitionTable.cpp index f6064ff23a..296415ed3f 100644 --- a/Kernel/Storage/Partition/GUIDPartitionTable.cpp +++ b/Kernel/Storage/Partition/GUIDPartitionTable.cpp @@ -37,8 +37,7 @@ namespace Kernel { #define GPT_SIGNATURE 0x20494645 #define BytesPerSector 512 -struct [[gnu::packed]] GPTPartitionEntry -{ +struct [[gnu::packed]] GPTPartitionEntry { u8 partition_guid[16]; u8 unique_guid[16]; @@ -49,8 +48,7 @@ struct [[gnu::packed]] GPTPartitionEntry char partition_name[72]; }; -struct [[gnu::packed]] GUIDPartitionHeader -{ +struct [[gnu::packed]] GUIDPartitionHeader { u32 sig[2]; u32 revision; u32 header_size; diff --git a/Kernel/Storage/Partition/MBRPartitionTable.h b/Kernel/Storage/Partition/MBRPartitionTable.h index 93f134ad43..8904a4f346 100644 --- a/Kernel/Storage/Partition/MBRPartitionTable.h +++ b/Kernel/Storage/Partition/MBRPartitionTable.h @@ -36,8 +36,7 @@ namespace Kernel { class MBRPartitionTable : public PartitionTable { public: - struct [[gnu::packed]] Entry - { + struct [[gnu::packed]] Entry { u8 status; u8 chs1[3]; u8 type; @@ -45,8 +44,7 @@ public: u32 offset; u32 length; }; - struct [[gnu::packed]] Header - { + struct [[gnu::packed]] Header { u8 code1[218]; u16 ts_zero; u8 ts_drive; |