mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
io_uring/zcrx: constify area_reg on import
io_import_area() doesn't modify its struct io_uring_zcrx_area_reg argument, add const to enforce that, it'll make later modifications easier. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/2cd4a3e43875576587c900ebdf8f1fb4af266e4a.1786108672.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7b188cf990
commit
ebb2b81a2d
|
|
@ -136,7 +136,7 @@ static void io_release_dmabuf(struct io_zcrx_mem *mem)
|
|||
|
||||
static int io_import_dmabuf(struct io_zcrx_ifq *ifq,
|
||||
struct io_zcrx_mem *mem,
|
||||
struct io_uring_zcrx_area_reg *area_reg)
|
||||
const struct io_uring_zcrx_area_reg *area_reg)
|
||||
{
|
||||
unsigned long off = (unsigned long)area_reg->addr;
|
||||
unsigned long len = (unsigned long)area_reg->len;
|
||||
|
|
@ -208,7 +208,7 @@ static unsigned long io_count_account_pages(struct page **pages, unsigned nr_pag
|
|||
|
||||
static int io_import_umem(struct io_zcrx_ifq *ifq,
|
||||
struct io_zcrx_mem *mem,
|
||||
struct io_uring_zcrx_area_reg *area_reg)
|
||||
const struct io_uring_zcrx_area_reg *area_reg)
|
||||
{
|
||||
struct page **pages;
|
||||
int nr_pages, ret;
|
||||
|
|
@ -274,7 +274,7 @@ static void io_release_area_mem(struct io_zcrx_mem *mem)
|
|||
|
||||
static int io_import_area(struct io_zcrx_ifq *ifq,
|
||||
struct io_zcrx_mem *mem,
|
||||
struct io_uring_zcrx_area_reg *area_reg)
|
||||
const struct io_uring_zcrx_area_reg *area_reg)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user