mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Partition Table: Replace __attribute__((packed)) with [[gnu::packed]]
This commit is contained in:
parent
998765a7a6
commit
a3113721d4
Notes:
sideshowbarker
2024-07-19 09:43:47 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/a3113721d4e Pull-request: https://github.com/SerenityOS/serenity/pull/1156
1 changed files with 7 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/Devices/DiskDevice.h>
|
||||
#include <Kernel/Devices/DiskPartition.h>
|
||||
|
@ -35,7 +36,8 @@
|
|||
#define GPT_SIGNATURE 0x20494645
|
||||
#define BytesPerSector 512
|
||||
|
||||
struct GPTPartitionEntry {
|
||||
struct [[gnu::packed]] GPTPartitionEntry
|
||||
{
|
||||
u32 partition_guid[4];
|
||||
u32 unique_guid[4];
|
||||
|
||||
|
@ -44,9 +46,10 @@ struct GPTPartitionEntry {
|
|||
|
||||
u64 attributes;
|
||||
u8 partition_name[72];
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
struct GPTPartitionHeader {
|
||||
struct [[gnu::packed]] GPTPartitionHeader
|
||||
{
|
||||
u32 sig[2];
|
||||
u32 revision;
|
||||
u32 header_size;
|
||||
|
@ -65,7 +68,7 @@ struct GPTPartitionHeader {
|
|||
u32 entries_count;
|
||||
u32 partition_entry_size;
|
||||
u32 crc32_entries_array;
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
class GPTPartitionTable {
|
||||
|
||||
|
|
Loading…
Reference in a new issue