Kernel: Declare blob sizes of SysFS BIOS classes as const

This commit is contained in:
Liav A 2022-04-01 11:10:36 +03:00 committed by Andreas Kling
commit 338b4b27eb
Notes: sideshowbarker 2024-07-17 22:09:47 +09:00

View file

@ -78,7 +78,7 @@ private:
DMIEntryPointExposedBlob(PhysicalAddress dmi_entry_point, size_t blob_size);
virtual ErrorOr<NonnullOwnPtr<KBuffer>> try_to_generate_buffer() const override;
PhysicalAddress m_dmi_entry_point;
size_t m_dmi_entry_point_length { 0 };
size_t const m_dmi_entry_point_length { 0 };
};
class SMBIOSExposedTable : public BIOSSysFSComponent {
@ -91,7 +91,7 @@ private:
virtual ErrorOr<NonnullOwnPtr<KBuffer>> try_to_generate_buffer() const override;
PhysicalAddress m_smbios_structure_table;
size_t m_smbios_structure_table_length { 0 };
size_t const m_smbios_structure_table_length { 0 };
};
class BIOSSysFSDirectory : public SysFSDirectory {