Skip to content

Commit b76827a

Browse files
committed
nouveau: fix r535 build on 32-bit arm.
This needs the proper division macros. Reviewed-by: Danilo Krummrich <dakr@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231030012814.1208972-1-airlied@gmail.com
1 parent 015185c commit b76827a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/gpu/drm/nouveau/nvkm/engine/fifo

drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ r535_chan_id_get_locked(struct nvkm_chan *chan, struct nvkm_memory *muserd, u64
267267
return -EINVAL;
268268
}
269269

270-
chid = ouserd / chan->func->userd->size;
270+
chid = div_u64(ouserd, chan->func->userd->size);
271271

272272
list_for_each_entry(userd, &fifo->userd.list, head) {
273273
if (userd->mem == muserd) {

0 commit comments

Comments
 (0)