Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1264139lqt; Fri, 7 Jun 2024 12:47:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXl8WRfp8ktpY1ID3yjaI/r9Mf42sukeIzNAI24ZGn9h8zqn/QfNmc3fkEWoAqddrtCThDpIX5LVGnooPsMUcgYx8pJNX0bLsYPIOPNuQ== X-Google-Smtp-Source: AGHT+IHFanu51bXjqoW2i74Clv4OHscLmzpSk2Iza+7TzHkB+0YP0WIetoRlzDc1nWeOljP3XjKs X-Received: by 2002:a05:6a21:c8d:b0:1a9:c33f:224f with SMTP id adf61e73a8af0-1b2f97ef803mr3347055637.16.1717789640114; Fri, 07 Jun 2024 12:47:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717789640; cv=pass; d=google.com; s=arc-20160816; b=GsbItqdARfA9drnExehWemXDuLWiwWGs16sQwwzmb4VFV0M4l6wBg5fKHioarrRbac PFJPbnPM2zEEEymi6Q42gfEwZ2yc9lrgnCoxsnuzo0JJyjNuT7TSVUZsR4FopapUk37q TxkLm/a9uBbn342PsudcinYFt2h9OKjYmjRnB5OBBpht1/m3dv5VRTjRo3qiKLPDaiFh eYoMfds2Xum5PGfMRs3xWPmLlcWxW25SO/XVcl++CE+BGg+dzn01deAdePpebts7GanW j8zT6YCEiKfYm5/46GG8nzZNRdjwBKIM0WX6rNJCYs+nYLotZvmOgfFVuV+ZWz1zkXO/ scKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=oYUwUa03mBx8yCY9HNPuT2HJi4+0P0FX2tV9cAeU5RU=; fh=Xh2Yn8VAIZXgB84U/HkbhGnCOKVjU0hZnKMMNe0MZjk=; b=GADWB/RfpIztevbjtrDPJdHXnBNz1vSaPgvmEti6W4AXwf5Qwn+4y6ujHsRt8EJo22 JtNe/b8zEHZbiRgEQHrIdLp/c3SVdivxePwUhPKBxtTvaBkYMQ7PNlVj8WKqTn5qvlSl OWZs6q+X1g5ugwYLeWKv5GC7sgyd1/gVPq6pVgs1C3rXgTVynyxx1bAozr/4MTjt68wD 6/16fu9bmkmqB3JswIPusrpaK+Rf8Cuee2gAzAGQSCB/X6Po5kYQasa3SGM1B1HrlBsS tyVQcafN1HTayPQjlfLoiMcIcl9iRQH6edQtevu++e2kdi1A6V63lVk48iEyfwqaYtpN g5Ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAXrKNsD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd76090fsi34631735ad.62.2024.06.07.12.47.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 12:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAXrKNsD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B6C8D286332 for ; Fri, 7 Jun 2024 19:47:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C05149E1B; Fri, 7 Jun 2024 19:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MAXrKNsD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1EE1E1CAB5 for ; Fri, 7 Jun 2024 19:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717789632; cv=none; b=A4GIu/6kkFhjHIrgfhUvpJvTu3VLDsbgWxpYRjAKTVFRSsAcYZT9JBN0TuxYmkyRsITi77pHaUxGokEhj43AtiLnLcTssovYy3s6VVtqF6r05r409+nnF60obY3AbC5lAx1/lvpbc45WcP0M1v4Tbj71YUnPHv9rsaB5Fv/+EbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717789632; c=relaxed/simple; bh=olwYB0bfF7tNa/B3LNrIicbe881usPIAMxRFbb3l2VM=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=I3GXgnTLdHrm9fjWOATJ4wleXm9siJkuf7DoEqKzOjShgdVcO180SvB/fTdfLlBOFcYzlOKnw3R96SOqehrPYDJz8oIMi3FtZMoZG+SgwH09rEransGnAMOARgTvF+/01f8eufYdgwoAj8hOfGDwKsGeZCy/F7QOkDdGt2aJaw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MAXrKNsD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC17C2BBFC; Fri, 7 Jun 2024 19:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717789631; bh=olwYB0bfF7tNa/B3LNrIicbe881usPIAMxRFbb3l2VM=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=MAXrKNsDHRlGXS2FTyb7hoHtL/wibwNqNFkK/AoFteTkWqjB3TkpCnFeSmQXqW09W 5vH+wO+RWy3voiLbZExsDa1GcUjCwy68VaPzaEWWm7/bgCBlek3sw9Lab/4uQdAmnx YF0wDBzuRUCpqcSCu3cXRqAGjK5xnvwHoPj06po6+VQm0y2J+ou5gfu/WSLCSccDt+ +vNFo5qV41HEKOrqe1YKdxGb0jngqccC7fXaB8r0WNtZhrDdIDNGoy3ecLihXk2V7p nwmJghZw8zFoPs4P/1Y0ObzYNHfRuuE+m9a90oM1SQPX5gofImKv9Poc6WnwaBJB7x x3SoTOLfVucTw== From: Mark Brown To: Richard Fitzgerald , linux-kernel@vger.kernel.org, Andy Shevchenko Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" In-Reply-To: <20240606202102.3108729-1-andriy.shevchenko@linux.intel.com> References: <20240606202102.3108729-1-andriy.shevchenko@linux.intel.com> Subject: Re: [PATCH v1 1/1] regmap: kunit: Use array_size() and sizeof(*ptr) consistently Message-Id: <171778963013.87562.14562841189265685482.b4-ty@kernel.org> Date: Fri, 07 Jun 2024 20:47:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14-dev-4c370 On Thu, 06 Jun 2024 23:21:02 +0300, Andy Shevchenko wrote: > Some of the allocations use explit sizeof(type) instead of sizeof(*ptr), > which is fragile. In particular, stress_insert() allocates double > of memory without obvious need for a test. Convert all allocations > to use array_size() and sizeof(*ptr) to eliminate similar mistakes > or wrong memory sizes. > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: kunit: Use array_size() and sizeof(*ptr) consistently commit: f82ecf76cdd477c64b09f328aaa182c1dc64dd8b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark