Skip to content

Commit a487c7e

Browse files
committed
drm/asahi: microseq: Fix warnings
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent fc87945 commit a487c7e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/asahi/fw/microseq.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ impl OpHeader {
6666

6767
macro_rules! simple_op {
6868
($name:ident) => {
69+
#[allow(dead_code)]
6970
#[derive(Debug, Copy, Clone)]
7071
pub(crate) struct $name(OpHeader);
7172

@@ -86,13 +87,15 @@ pub(crate) mod op {
8687
simple_op!(FinalizeCompute);
8788
simple_op!(WaitForIdle2);
8889

90+
#[allow(dead_code)]
8991
#[derive(Debug, Copy, Clone)]
9092
pub(crate) struct RetireStamp(OpHeader);
9193
impl RetireStamp {
9294
pub(crate) const HEADER: RetireStamp =
9395
RetireStamp(OpHeader::with_args(OpCode::RetireStamp, 0x40000000));
9496
}
9597

98+
#[allow(dead_code)]
9699
#[derive(Debug, Copy, Clone)]
97100
pub(crate) struct WaitForIdle(OpHeader);
98101
impl WaitForIdle {
@@ -101,6 +104,7 @@ pub(crate) mod op {
101104
}
102105
}
103106

107+
#[allow(dead_code)]
104108
#[derive(Debug, Copy, Clone)]
105109
pub(crate) struct Timestamp(OpHeader);
106110
impl Timestamp {

0 commit comments

Comments
 (0)