Skip to content

Commit

Permalink
media: ipu6: Fix warnings in PSYS
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Yao <[email protected]>
  • Loading branch information
hao-yao committed Oct 12, 2024
1 parent 118952d commit 0d2fdfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/pci/intel/ipu6/psys/ipu-psys.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ static int ipu_psys_get_userpages(struct ipu_dma_buf_attach *attach)
int nr = 0;
u32 flags;

start = attach->userptr;
start = (unsigned long)attach->userptr;
end = PAGE_ALIGN(start + attach->len);
npages = (end - (start & PAGE_MASK)) >> PAGE_SHIFT;
array_size = npages * sizeof(struct page *);
Expand Down Expand Up @@ -1122,7 +1122,7 @@ static int ipu_psys_getbuf(struct ipu_psys_buffer *buf, struct ipu_psys_fh *fh)
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 0)
dev_dbg(&psys->adev->dev, "IOC_GETBUF: userptr %p size %llu to fd %d",
#else
dev_dbg(dev, "IOC_GETBUF: userptr %llu size %llu to fd %d",
dev_dbg(dev, "IOC_GETBUF: userptr %p size %llu to fd %d",
#endif
buf->base.userptr, buf->len, buf->base.fd);

Expand Down

0 comments on commit 0d2fdfc

Please sign in to comment.