diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-12-04 18:47:50 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-12-05 11:57:37 +0100 |
commit | 9fd7874c0e5c89d7da0b4442271696ec0f8edcba (patch) | |
tree | 02f05ac2574b38dcc3b39a942c34c0d4b04c29f7 /kernel/trace | |
parent | iov_iter: remove unused 'iov' argument from import_single_range() (diff) | |
download | linux-9fd7874c0e5c89d7da0b4442271696ec0f8edcba.tar.xz linux-9fd7874c0e5c89d7da0b4442271696ec0f8edcba.zip |
iov_iter: replace import_single_range() with import_ubuf()
With the removal of the 'iov' argument to import_single_range(), the two
functions are now fully identical. Convert the import_single_range()
callers to import_ubuf(), and remove the former fully.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20231204174827.1258875-3-axboe@kernel.dk
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_events_user.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c index 4efc75d90a0d..e76f5e1efdf2 100644 --- a/kernel/trace/trace_events_user.c +++ b/kernel/trace/trace_events_user.c @@ -2182,8 +2182,7 @@ static ssize_t user_events_write(struct file *file, const char __user *ubuf, if (unlikely(*ppos != 0)) return -EFAULT; - if (unlikely(import_single_range(ITER_SOURCE, (char __user *)ubuf, - count, &i))) + if (unlikely(import_ubuf(ITER_SOURCE, (char __user *)ubuf, count, &i))) return -EFAULT; return user_events_write_core(file, &i); |