Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp362439lqh; Fri, 31 May 2024 03:51:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeTPrH7XKFicRK7SdegrYuJQMCmuIFewZW09u0XUwiQH1em8RWO9J+d6gbhXkOR2WxhNwIxGNImjkCfDhC9nq0O/29hRSj4uQko5RhQA== X-Google-Smtp-Source: AGHT+IH1FyumTQ4i6C+EoREmFB20992GwQ1L+CewzwnXeoes6K0mFOMCYUzVe1XJs4OprLvuvbsW X-Received: by 2002:a05:620a:bc8:b0:792:9482:a9a7 with SMTP id af79cd13be357-794f5c8d5e9mr167683485a.44.1717152701461; Fri, 31 May 2024 03:51:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717152701; cv=pass; d=google.com; s=arc-20160816; b=dUw2eefHiYYyV21NmAIDGirpEZ8ky/sYot8jDDXrgpa5pdU6igJn1vvUk7ERO2EqFu QtE0lggd934zprYBjLhW3D49+eiAc9kXgbYGrQCZ9o6ahKXqo3EwFsaiWBfuYF5od9XE NouAYOQWgLsnYr3M2Om3LcpuDSAssymCOgTodxJ6JEl8oeGhccLvFMUgN7O2uGU3zg+X 2LzIfFIBsoKLod5FRXhykOGATJJphBXvARWhOR5u0XNclL+KqQ22mgxmJyAzbLCyZlNI Noi1MpejLpfLfjP54wQxI3uUk45TyTKeqctEoFK2kPCwFcGfiOA6X02FJNmKmC+WDEe7 +uDg== 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:dkim-signature; bh=ohJcEUSC2/x7cqNlONvSsJkoabs9KBaXtteH6KHHvIo=; fh=vy/kdM4jNRcThhyXU3fti5ob6eUfb43ggtfKp4kM4ds=; b=OJdljt5jUHuPYmsFwhpjbzgKVbNFcQaE0p+kShwWTLUop1tqEnDjKbS7OV+2wubO3+ niwU2Xwmdc3gXGaycRmpa8KEnsyJ+X9wH8qUH8WjxrXpxq7CLJGfD8W+QvNymKHUofaw VoC5TZbHUcKNIy0bHoJMp3VgrYxH3Zd75A7J6l3Rai4iK4bO32taFeEpQQ20E9fBmbow hyLQDlUM2MkjNjSsnVPcJWDR73qpq57xZYd+CYfOveCxsXp60nka0JJ294LryJIdPi4a nj33B6OYvGRPGiGPVTDGofF7aaA0QmgYpU6HDENSicK0h+0StCOqL2syb5SrJT4sgNS8 zWPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaLcqEvx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f318bd61si183082685a.503.2024.05.31.03.51.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaLcqEvx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4610-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 124501C23A32 for ; Fri, 31 May 2024 10:51:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4C8E156F5B; Fri, 31 May 2024 10:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IaLcqEvx" X-Original-To: linux-crypto@vger.kernel.org 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 74B7D156F46 for ; Fri, 31 May 2024 10:50:48 +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=1717152648; cv=none; b=N8xqKjIiQ1K4A3rcgOROQrW6gariDxMdnvKWb0Ri0+Wjk1fD6ImL9cDO6iGzZuGKqL+YBdcO/IxceXfOJq1ZS8xF3mzl1fDHt+xaXO2JDuJQcsp/mcLgwj711ANjP+6PpXCcc8rfNwvj0/LVhgjqgF2YUbIZiCdvQ9Mowlfz26s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717152648; c=relaxed/simple; bh=IgNuUc7H+4H+wS/T7K15pYQS/lOBI7Syd2UuQzgQbNg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SmBGjgs54yed2Jd4pTgA1glXKxs8gvepnUHeoKwjH8DsMVYOWnrWWex4OY+k2i69xbi4PDOnHJ8Q7K/iDt0/9bGIpwcKfdhOf2cpjTWPEe1x6J+mZTUOKommlHADR3AT4wjmpejMT8n395gpw+mYTfAQoc2S2T7ldNPhqnCheXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IaLcqEvx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97EB1C116B1; Fri, 31 May 2024 10:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717152648; bh=IgNuUc7H+4H+wS/T7K15pYQS/lOBI7Syd2UuQzgQbNg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IaLcqEvxf3WPsbG2GeI4rF01P9sJapsh+waMRV+Bn5GVwzGlT4iKmwQqs6EEovMXO bq5MHfHY6YFi1fR4X70+hsY69LAzUVWpDrh57DRzkJYj4jjsvmAOyPuwwp3KKMkAjn UNJ1Sxz2GocpMQCwrvXq5T6CImk7oLDAiMvZnkyrdTjfuo93qfcnD1WxaylZTpZw6B WNpypSu8SidR+hFaMIGQYj/Ax384ABc4lusdGy+QKdKxtiXO7/oEWY3nklJt1AUC5u Ko6rwqc3pTr8n9ZBCL52sbLWtxUPyureJ7C/BmxytphV3nt4YdZisxhRC8WhplyUzE DA5PC6T4geM0A== Date: Fri, 31 May 2024 12:50:44 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Marek Vasut Cc: linux-crypto@vger.kernel.org, Alexandre Torgue , Gatien Chevallier , Herbert Xu , Maxime Coquelin , Olivia Mackall , Rob Herring , Yang Yingliang , kernel@dh-electronics.com, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH] hwrng: stm32 - use sizeof(*priv) instead of sizeof(struct stm32_rng_private) Message-ID: References: <20240531085749.42863-1-marex@denx.de> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xek54sdap76jwck5" Content-Disposition: inline In-Reply-To: <20240531085749.42863-1-marex@denx.de> --xek54sdap76jwck5 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 10:57:34AM +0200, Marek Vasut wrote: > Use sizeof(*priv) instead of sizeof(struct stm32_rng_private), the > former makes renaming of struct stm32_rng_private easier if necessary, > as it removes one site where such rename has to happen. No functional > change. IMHO the main upside is that it's easier to spot that the allocation size is correct. Acked-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --xek54sdap76jwck5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmZZq34ACgkQj4D7WH0S /k7cTAgAlRRgppFhUD+9O+z0yqXTYZdPWzdDaF2Y/wCjo4vW+41rmwpPXPYjUj6V RUSJ0g1eMaVwKaX53dbWlNYD3RTj8bv7uScBomwhTGUY8CUlIpEHkbY0xIrjCq2p d36Rm/i3BzP0AvYV8EGgKLCys7f+u1br8Kl/ubGUx+E7P40C0V8D1biYD5kxvzYX 7U55QcKsKuAinDRk126iXM6d2f/aZGwO4Syh7NvNC6Q9czeSK2MAqU+dpQLScogl UlNK+9iYjkadIlusVt19D2BDhpY8iG4hidRNL/sncLLA+M9i0oqZfCMvi01A4fEd eRlktUFUxNYh6x/yhWMoVApAbqccRA== =sZmB -----END PGP SIGNATURE----- --xek54sdap76jwck5--