lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a9211119-f590-45cd-a7d0-8ae2d86a82cc@denx.de>
Date: Fri, 27 Sep 2024 22:05:13 +0200
From: Marek Vasut <marex@...x.de>
To: Frank Li <Frank.li@....com>
Cc: linux-arm-kernel@...ts.infradead.org, kernel@...electronics.com,
 AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
 Arnd Bergmann <arnd@...db.de>, Fabio Estevam <festevam@...il.com>,
 Jeff Johnson <quic_jjohnson@...cinc.com>,
 Neil Armstrong <neil.armstrong@...aro.org>,
 Pengutronix Kernel Team <kernel@...gutronix.de>,
 Saravana Kannan <saravanak@...gle.com>, Sascha Hauer
 <s.hauer@...gutronix.de>, Shawn Guo <shawnguo@...nel.org>,
 imx@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] soc: imx8m: Remove global soc_uid

On 9/27/24 6:58 PM, Frank Li wrote:
> On Thu, Sep 26, 2024 at 11:36:52PM +0200, Marek Vasut wrote:
>> The static global soc_uid is only ever used as kasprintf() parameter in
>> imx8m_soc_probe(). Pass pointer to local u64 variable to .soc_revision()
>> callback instead and let the .soc_revision() callback fill in the content.
>> Remove the unnecessary static global variable.
> 
> Can you simple said:
> 
> Remove the unnecessary static global variable 'soc_uid', which only used
> in imx8m_soc_probe().

I believe it is better to be a bit more verbose in the commit description.

>> @@ -215,10 +213,11 @@ static __maybe_unused const struct of_device_id imx8_soc_match[] = {
>>   static int imx8m_soc_probe(struct platform_device *pdev)
>>   {
>>   	struct soc_device_attribute *soc_dev_attr;
>> -	struct soc_device *soc_dev;
>> +	const struct imx8_soc_data *data;
>>   	const struct of_device_id *id;
>> +	struct soc_device *soc_dev;
>>   	u32 soc_rev = 0;
>> -	const struct imx8_soc_data *data;
>> +	u64 soc_uid = 0;
> 
> unnecessary this these orders in this patch.
I can spin the sorting into separate patch if that's really required.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ