From nobody Tue Jun 9 01:06:27 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4514D7262E for ; Mon, 25 May 2026 00:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779669771; cv=none; b=VjqCALs65bVAX9TUiNBsfZGD/rw/t3beD3niHuu3VzDYeaa+xfL+vInB6v+p9OZn0Ek8BRT4CoReX9lJiSM0M9ZnrLRfgB/ZXVwUgomUPIZkC51G4cyBEZa94ckxPuBw0iBgbEn41HnIFpLByqgCtL29kLFUr628WWeQuYCdyWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779669771; c=relaxed/simple; bh=KZEf1YjbLEIYzDAe4ee4mefAB+5EOToR/OKntpH81FU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eBnaw8oE3BYsD7KnhG9AHU+n+nBC3xF6ZBQpTurG5+BBhnFjwEL7+bCRsYvUdQ1EQJHVpUWviMc/WNpV+sd0KRXjVFnETByZoEH51+Dk9pT+shChWA4MDJk+0T9ZUL2c8s65dx7s5pTLZ6mS1oHUQfy4diLy5WI4uZZaiSwR+lc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 9f72a1ac57d211f1aa26b74ffac11d73-20260525 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:e485f9ee-0942-476c-9df9-a4d3d5878441,IP:0,U RL:0,TC:0,Content:-5,EDM:-20,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-25 X-CID-META: VersionHash:e7bac3a,CLOUDID:61de75782c4628607a767fde783d32a1,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|850|865|898,TC:nil,Content:0|15|50,E DM:1,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA: 0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 9f72a1ac57d211f1aa26b74ffac11d73-20260525 X-User: xieyi@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 790445777; Mon, 25 May 2026 08:42:35 +0800 From: Yi Xie To: Christian Brauner , Lorenzo Stoakes Cc: linux-kernel@vger.kernel.org, Yi Xie Subject: [PATCH] ipc/sem.c: use unsigned int for nsops Date: Mon, 25 May 2026 08:42:20 +0800 Message-Id: <20260525004220.19277-1-xieyi@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use unsigned int instead of unsigned for nsops parameter, to match declaration in syscalls.h. Signed-off-by: Yi Xie Reviewed-by: Lorenzo Stoakes --- ipc/sem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipc/sem.c b/ipc/sem.c index 6cdf862b1f5c..5ec41de7e85b 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -1981,7 +1981,7 @@ static struct sem_undo *find_alloc_undo(struct ipc_na= mespace *ns, int semid) } =20 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 =3D -EINVAL; @@ -2220,7 +2220,7 @@ long __do_semtimedop(int semid, struct sembuf *sops, } =20 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 =3D fast_sops; @@ -2294,7 +2294,7 @@ SYSCALL_DEFINE4(semtimedop_time32, int, semid, struct= sembuf __user *, tsems, #endif =20 SYSCALL_DEFINE3(semop, int, semid, struct sembuf __user *, tsops, - unsigned, nsops) + unsigned int, nsops) { return do_semtimedop(semid, tsops, nsops, NULL); } --=20 2.25.1