diff options
| author | Yi Xie <xieyi@kylinos.cn> | 2026-05-25 08:42:20 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-27 14:10:25 +0200 |
| commit | 69d18b6c900c8ef61cd89ddbb2cb661631790538 (patch) | |
| tree | 875a6fbac43d297c761c741b00a579f57d23cf57 /ipc | |
| parent | 77d1a2d2318fa96f8a662c9ad6647abedcd22734 (diff) | |
| download | ath-69d18b6c900c8ef61cd89ddbb2cb661631790538.tar.gz | |
ipc/sem.c: use unsigned int for nsops
Use unsigned int instead of unsigned for nsops parameter,
to match declaration in syscalls.h.
Signed-off-by: Yi Xie <xieyi@kylinos.cn>
Link: https://patch.msgid.link/20260525004220.19277-1-xieyi@kylinos.cn
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/sem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/sem.c b/ipc/sem.c index 6cdf862b1f5cc..5ec41de7e85b2 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -1981,7 +1981,7 @@ out: } long __do_semtimedop(int semid, struct sembuf *sops, - unsigned nsops, const struct timespec64 *timeout, + unsigned int nsops, const struct timespec64 *timeout, struct ipc_namespace *ns) { int error = -EINVAL; @@ -2220,7 +2220,7 @@ out: } static long do_semtimedop(int semid, struct sembuf __user *tsops, - unsigned nsops, const struct timespec64 *timeout) + unsigned int nsops, const struct timespec64 *timeout) { struct sembuf fast_sops[SEMOPM_FAST]; struct sembuf *sops = fast_sops; @@ -2294,7 +2294,7 @@ SYSCALL_DEFINE4(semtimedop_time32, int, semid, struct sembuf __user *, tsems, #endif SYSCALL_DEFINE3(semop, int, semid, struct sembuf __user *, tsops, - unsigned, nsops) + unsigned int, nsops) { return do_semtimedop(semid, tsops, nsops, NULL); } |
