mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +00:00
pci: slightly change safety comment style
Make them start with "SAFETY" so it is more concise and easy to spot. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
8ee253cd3f
commit
d2d6eb0591
@ -961,7 +961,7 @@ mod tests {
|
|||||||
foo: u8,
|
foo: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
// It is safe to implement BytesValued; all members are simple numbers and any value is valid.
|
// SAFETY: All members are simple numbers and any value is valid.
|
||||||
unsafe impl ByteValued for TestCap {}
|
unsafe impl ByteValued for TestCap {}
|
||||||
|
|
||||||
impl PciCapability for TestCap {
|
impl PciCapability for TestCap {
|
||||||
|
@ -468,7 +468,7 @@ pub struct MsixCap {
|
|||||||
pub pba: u32,
|
pub pba: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
// It is safe to implement ByteValued. All members are simple numbers and any value is valid.
|
// SAFETY: All members are simple numbers and any value is valid.
|
||||||
unsafe impl ByteValued for MsixCap {}
|
unsafe impl ByteValued for MsixCap {}
|
||||||
|
|
||||||
impl PciCapability for MsixCap {
|
impl PciCapability for MsixCap {
|
||||||
|
Loading…
Reference in New Issue
Block a user