]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ipc/sem.c: use unsigned int for nsops
authorYi Xie <xieyi@kylinos.cn>
Mon, 25 May 2026 00:42:20 +0000 (08:42 +0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 27 May 2026 12:10:25 +0000 (14:10 +0200)
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>
ipc/sem.c

index 6cdf862b1f5ccd4480594105a3873d083f6f9b8e..5ec41de7e85b2b4ce00def87f8a082b70d5efe49 100644 (file)
--- 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);
 }