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] [day] [month] [year] [list]
Message-Id: <20250922093054.106986-1-zhangzihuan@kylinos.cn>
Date: Mon, 22 Sep 2025 17:30:54 +0800
From: Zihuan Zhang <zhangzihuan@...inos.cn>
To: rafael@...nel.org
Cc: linux-kernel@...r.kernel.org,
	linux-pm@...r.kernel.org,
	viresh.kumar@...aro.org,
	zhangzihuan@...inos.cn,
	zhenglifeng1@...wei.com
Subject: Re: [PATCH v1] cpufreq: Replace pointer subtraction with iteration macros

> >  drivers/cpufreq/freq_table.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c
> > index d5111ee56e38..ca06a0236e70 100644
> > --- a/drivers/cpufreq/freq_table.c
> > +++ b/drivers/cpufreq/freq_table.c
> > @@ -33,16 +33,17 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_po=
> licy *policy)
> >         struct cpufreq_frequency_table *pos, *table =3D policy->freq_tabl=
> e;
> >         unsigned int min_freq = ~0;
> >         unsigned int max_freq = 0;
> > +       unsigned int i = 0;
> 
> This initialization isn't necessary because
> cpufreq_for_each_valid_entry_idx() will initialize i to 0 to start
> with AFAICS.

Got it, I’ll update the remaining places accordingly.

Thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ