Commit b76827a3 authored by Dave Airlie's avatar Dave Airlie

nouveau: fix r535 build on 32-bit arm.

This needs the proper division macros.
Reviewed-by: default avatarDanilo Krummrich <dakr@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030012814.1208972-1-airlied@gmail.com
parent 015185cc
...@@ -267,7 +267,7 @@ r535_chan_id_get_locked(struct nvkm_chan *chan, struct nvkm_memory *muserd, u64 ...@@ -267,7 +267,7 @@ r535_chan_id_get_locked(struct nvkm_chan *chan, struct nvkm_memory *muserd, u64
return -EINVAL; return -EINVAL;
} }
chid = ouserd / chan->func->userd->size; chid = div_u64(ouserd, chan->func->userd->size);
list_for_each_entry(userd, &fifo->userd.list, head) { list_for_each_entry(userd, &fifo->userd.list, head) {
if (userd->mem == muserd) { if (userd->mem == muserd) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment