Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp39367rdb; Tue, 16 Jan 2024 14:16:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA2dJ8qhY7mSxd+urnUxgjY15dHXbBSVpK1ezSMOooKaDLRDhH6h7fNp8yJUbn67OfdP9H X-Received: by 2002:a05:6214:c49:b0:680:b80b:273e with SMTP id r9-20020a0562140c4900b00680b80b273emr9086400qvj.99.1705443370495; Tue, 16 Jan 2024 14:16:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705443370; cv=pass; d=google.com; s=arc-20160816; b=RW6DLFETx8hlaODIIhbp0uz2CdA9I2p8ZPnaFG8/0t/4uVViO5bL8YVyhtJeN+z8bL jQaX2VoDISRBxaeyC08hfAh1Kt0ucik7FVFnNHjytSoIYSdc9zKwS609b8HY3qlPAh7M 7m2TgwjstyYDDUwjxSu9YfNts/nWMpt/2E5gau2+ciDPqrgvoirhS8puaA81ZZeaF77r V91zzkzfWrwf/TiHb/fkIVX0uEJy0Fk6m3AyVJN11l8e5kM0gColPs1ookn9Nj9st4N/ eMDPdXSFpVG3T/jdRYWq6O7eUBABSF220FKxa2a6+dD561mttN6c0AqIcUys9pmBXBtC YLww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=tcq3BGngFprP6on9bimda9kkx0SemeSsE//qVbuOw18=; fh=VwzZAYuwAKVCOwQ/SWj2VjVQxZYvFi+MYq+pPP2yZyE=; b=hGe5Clr+lwQy/iZ8Tq2c5EECKChSBkkeg7mSMBYXLhS9rejCH+TBVJjfTBiLsoCFou wAWPcK/OSdqdl5htY9jLqEf1ZAG3d7nVL97J2Akl8Lrpuu/OKiBGStoFgcGbVB1lNGJd IcO1Rl8ubIA4dhYXlc4TkzcvqIzNY4gN6wW6//ao2mtieiKVcKJKXe49czS+KDCOjCo6 uZrWafgr6TFsK9VGI2wAw/3m7uc+CHgFqGUFWSrpkOoaN4KJ/ur3HG3nUSYTz9S3+1zj DdCcaQQEqLzBha/HqzJp+Xfqog0MVQmiiDuN6QZ8geQL/zAev2a/X9/T4Cyt73zMQA5d o+7g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-28262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28262-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t3-20020a0cde03000000b00681797736eesi514772qvk.539.2024.01.16.14.16.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:16:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-28262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28262-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 327BB1C26A00 for ; Tue, 16 Jan 2024 22:16:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C962D24A0E; Tue, 16 Jan 2024 20:43:14 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 5786C1D695; Tue, 16 Jan 2024 20:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705437794; cv=none; b=Dw8Np/jfAs2OSiyFxXv/oApTiOLHzXguvwb1juR6ABawdLoztZeg7SJOKXbhLHBeviIlW9aC/ZiQVNRKujtAJWGTxZ4YxjZleNd21C0EfJNC8Kas+JosXiW4lrDM+08p9SWokksrH9ka+nUydD/fHH8mAAmePe2LP/VgIccdq1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705437794; c=relaxed/simple; bh=sZJXPXcvlS/jVke7bDGNZMdYz3tnl4Zho2n6I37BIZU=; h=Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=MBj75tkeDS+wc7ClU/DxYq5HjoiAOIbuzsUm/PGCj2fuBZu5ITIHWBjGmzaN302Y1mSvipLSloGvS5NeJIwiVHkrLWBo1CrtpG9cIiVETojtnUPPrgHvUMBG0o+yOzpImSQwz94XYXk0CjxseTuiWx3mOVG0+G4PNAuV+dljKCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 16AF71C0071; Tue, 16 Jan 2024 21:43:10 +0100 (CET) Date: Tue, 16 Jan 2024 21:43:09 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dmitry Antipov , Christian Brauner , zack.rusin@broadcom.com, mcgrof@kernel.org, pstanner@redhat.com, nick.alcock@oracle.com, code@siddh.me, ddiss@suse.de Subject: Re: [PATCH AUTOSEL 5.10 01/10] watch_queue: fix kcalloc() arguments order Message-ID: References: <20240115232818.210010-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ynXok9RdLEYysjzt" Content-Disposition: inline In-Reply-To: <20240115232818.210010-1-sashal@kernel.org> --ynXok9RdLEYysjzt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Dmitry Antipov >=20 > [ Upstream commit 1bfc466b13cf6652ba227c282c27a30ffede69a5 ] >=20 > When compiling with gcc version 14.0.0 20231220 (experimental) > and W=3D1, I've noticed the following warning: >=20 > kernel/watch_queue.c: In function 'watch_queue_set_size': > kernel/watch_queue.c:273:32: warning: 'kcalloc' sizes specified with 'siz= eof' > in the earlier argument and not in the later argument [-Wcalloc-transpose= d-args] > 273 | pages =3D kcalloc(sizeof(struct page *), nr_pages, GFP_KE= RNEL); > | ^~~~~~ >=20 > Since 'n' and 'size' arguments of 'kcalloc()' are multiplied to > calculate the final size, their actual order doesn't affect the > result and so this is not a bug. But it's still worth to fix it. Not a bugfix, please drop. BR, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --ynXok9RdLEYysjzt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZabqXQAKCRAw5/Bqldv6 8sy4AJ48W6k2JPWpiIdoOOSsvyaGuUWJhwCdFtc8G45hj7QvRwAdO840zEPPBOA= =ZAQg -----END PGP SIGNATURE----- --ynXok9RdLEYysjzt--