We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d5466 commit e03e86eCopy full SHA for e03e86e
src/devices/src/virtio/balloon/device.rs
@@ -28,10 +28,10 @@ pub(crate) const PHQ_INDEX: usize = 3;
28
pub(crate) const FRQ_INDEX: usize = 4;
29
30
// Supported features.
31
-pub(crate) const AVAIL_FEATURES: u64 = 1 << uapi::VIRTIO_F_VERSION_1 as u64
32
- | 1 << uapi::VIRTIO_BALLOON_F_STATS_VQ as u64
33
- | 1 << uapi::VIRTIO_BALLOON_F_FREE_PAGE_HINT as u64
34
- | 1 << uapi::VIRTIO_BALLOON_F_REPORTING as u64;
+pub(crate) const AVAIL_FEATURES: u64 = 1 << (uapi::VIRTIO_F_VERSION_1 as u64)
+ | (1 << uapi::VIRTIO_BALLOON_F_STATS_VQ as u64)
+ | (1 << uapi::VIRTIO_BALLOON_F_FREE_PAGE_HINT as u64)
+ | (1 << uapi::VIRTIO_BALLOON_F_REPORTING as u64);
35
36
#[derive(Copy, Clone, Debug, Default)]
37
#[repr(C, packed)]
0 commit comments