Skip to content

Commit fda4ae5

Browse files
hoshinolinajannau
authored andcommitted
fixup! drm/asahi: Implement ASAHI_GET_TIME
1 parent 404c952 commit fda4ae5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/asahi/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,16 +928,16 @@ impl File {
928928

929929
/// IOCTL: get_time: Get the current GPU timer value.
930930
pub(crate) fn get_time(
931-
device: &AsahiDevice,
931+
_device: &AsahiDevice,
932932
data: &mut uapi::drm_asahi_get_time,
933-
file: &DrmFile,
933+
_file: &DrmFile,
934934
) -> Result<u32> {
935935
if data.extensions != 0 || data.flags != 0 {
936936
cls_pr_debug!(Errors, "get_time: Unexpected extensions or flags\n");
937937
return Err(EINVAL);
938938
}
939939

940-
let mut gputime: u64 = 0;
940+
let gputime: u64;
941941

942942
// SAFETY: Assembly only loads the timer
943943
unsafe {

0 commit comments

Comments
 (0)