From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761919AbdEWHEj (ORCPT ); Tue, 23 May 2017 03:04:39 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35389 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759322AbdEWHEf (ORCPT ); Tue, 23 May 2017 03:04:35 -0400 Date: Tue, 23 May 2017 12:34:32 +0530 From: Viresh Kumar To: Zhang Rui Cc: Javi Merino , Eduardo Valentin , Lukasz Luba , Amit Daniel Kachhap , linaro-kernel@lists.linaro.org, Rafael Wysocki , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , Punit Agrawal Subject: Re: [PATCH V4 03/17] thermal: cpu_cooling: Name cpufreq cooling devices as cpufreq_cdev Message-ID: <20170523070432.GK6510@vireshk-i7> References: <323c25bfc9454e54102b0956bae049365f1ba2bb.1493115651.git.viresh.kumar@linaro.org> <1495521460.2303.4.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1495521460.2303.4.camel@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-05-17, 14:37, Zhang Rui wrote: > On Tue, 2017-04-25 at 15:57 +0530, Viresh Kumar wrote: > > Objects of "struct cpufreq_cooling_device" are named a bit > > inconsistently. Lets use cpufreq_cdev everywhere. Also note that the > > lists containing such devices is renamed similarly too. > > > > Signed-off-by: Viresh Kumar > > Tested-by: Lukasz Luba > > --- > >  drivers/thermal/cpu_cooling.c | 248 +++++++++++++++++++++----------- > > ---------- > >  1 file changed, 124 insertions(+), 124 deletions(-) > > > > > > >   > >   num_cpus = cpumask_weight(clip_cpus); > > - cpufreq_dev->time_in_idle = kcalloc(num_cpus, > > -     sizeof(*cpufreq_dev- > > >time_in_idle), > > + cpufreq_cdev->time_in_idle = kcalloc(num_cpus, > > +     sizeof(*cpufreq_cdev- > > >time_in_idle), > >       GFP_KERNEL); > > checkpatch complains about this line Not about this line, but the one present below it. > WARNING: Prefer kmalloc_array over kmalloc with multiply > #544: FILE: drivers/thermal/cpu_cooling.c:827: > + cpufreq_cdev->freq_table = kmalloc(sizeof(*cpufreq_cdev- > >freq_table) * > +   cpufreq_cdev->max_level, > GFP_KERNEL); > > total: 0 errors, 1 warnings, 614 lines checked > > NOTE: For some of the reported defects, checkpatch may be able to >       mechanically convert to the typical style using --fix or --fix- > inplace. > > and also patch 8/17. > > It's better to get this fixed. Sure. As this was existing code and nothing new that I added, I have sent a separate patch in reply to your email to get that fixed. You can apply this series followed by that patch now. -- viresh