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 <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 015185c commit b76827a

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/engine/fifo

1 file changed

+1
-1
lines changed

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)