From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 541032236E3 for ; Mon, 8 Dec 2025 07:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765179324; cv=none; b=oPgY0sOOVqUFY5okDxfuqazIsM6zPy0po7mPf3mKSJKU7Qy7jNqHGwochajE28WLUxQ5sK2TD9pSLCunbx9Zd/+zpDtgjJTECkV8QIJCmyfJy9oridEvJQjnCnXvQgzUDasoZlBN+nx8jZHxGK6Fhh9cwTQ1GDtzhjNWwNSU0zg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765179324; c=relaxed/simple; bh=XLv0HBTetXxoS4vCKz0X9BrXqB4r7kl7AGbnRmgSzlY=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=lBJr+/FzyOgKnfQ9DoVzj/kNIW0tdvQkdSwO0TZjcKt7GYp9FSqqiKFrF2cGKsMOwg8+eBJ5I2hYB8IJWH9TuwcMXKw9TyGfpKT87JlGtbP/XMwDiITZeCMhFcAKoVOpJFhNTfKwQbSfYzGaYshIxaUc6NHh245Juh94Yhjs1+Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=xzoS5SHB; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="xzoS5SHB" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=XLv0HBTetXxoS4vCKz0X9BrXqB4r7kl7AGbnRmgSzlY=; t=1765179323; x=1766388923; b=xzoS5SHBWB50zp0UXA3nsEx/UbjCRL7bwifwmjJAIbaqsiT v01rCnAUWlWQRFIKe/nisMHYCGRtFsuZ6fyJURUW1+RnH8eamM/126ya/cnXo1SwKQrZnPWUiqKwR cLQS6ArtCkcr16a1WNq9Ob5viIHho8JeeU2RTlYpzjqUMApeDYf356DwOYiDoVIHKTQKxuP/SaJqk mvv00EtnxjOu1N8wxuyKIk2nP03y0GGCCn3zMcUFZ8jQVOJ8xbvBzeqFZtIB6Sv4z+o/YBZ1oV6Yn Mqcj+RKHj1PllI4XGIVpBtgIhoAbBSE6ZUCw0AhTb/lfpi930BvoxR0fwWm6I/2w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.2) (envelope-from ) id 1vSVlz-00000002aqJ-3mY0; Mon, 08 Dec 2025 08:35:08 +0100 Message-ID: <24e75f32d3ff9254d10e40aca328d98ae589cc34.camel@sipsolutions.net> Subject: Re: [PATCH] um: use ARRAY_SIZE to calculate the length of an array From: Johannes Berg To: Chen Changcheng , richard@nod.at, anton.ivanov@cambridgegreys.com Cc: benjamin.berg@intel.com, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Date: Mon, 08 Dec 2025 08:35:07 +0100 In-Reply-To: <20251208023723.19789-1-chenchangcheng@kylinos.cn> References: <20251208023723.19789-1-chenchangcheng@kylinos.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2025-12-08 at 10:37 +0800, Chen Changcheng wrote: > cocci warnings: (new ones prefixed by >>) > > > arch/um/kernel/skas/stub_exe.c:180:23-24: WARNING: Use ARRAY_SIZE >=20 > Fixes: 406d17c6c370 ("um: Implement kernel side of SECCOMP based process = handling") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202512080556.BbmGuwU4-lkp@i= ntel.com/ Pro-tip: build your patches *before* submitting them and looking like an idiot. johannes