virtio-devices: add or adjust comments for impl ByteValued
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
d8becc742c
commit
31b3871eee
6 changed files with 25 additions and 36 deletions
|
|
@ -50,7 +50,7 @@ struct VirtioPmemConfig {
|
|||
size: u64,
|
||||
}
|
||||
|
||||
// Safe because it only has data and has no implicit padding.
|
||||
// SAFETY: it only has data and has no implicit padding.
|
||||
unsafe impl ByteValued for VirtioPmemConfig {}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Default)]
|
||||
|
|
@ -59,7 +59,7 @@ struct VirtioPmemReq {
|
|||
type_: u32,
|
||||
}
|
||||
|
||||
// Safe because it only has data and has no implicit padding.
|
||||
// SAFETY: it only has data and has no implicit padding.
|
||||
unsafe impl ByteValued for VirtioPmemReq {}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Default)]
|
||||
|
|
@ -68,7 +68,7 @@ struct VirtioPmemResp {
|
|||
ret: u32,
|
||||
}
|
||||
|
||||
// Safe because it only has data and has no implicit padding.
|
||||
// SAFETY: it only has data and has no implicit padding.
|
||||
unsafe impl ByteValued for VirtioPmemResp {}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue