From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754742Ab3ITMjZ (ORCPT ); Fri, 20 Sep 2013 08:39:25 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:40915 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583Ab3ITMjW (ORCPT ); Fri, 20 Sep 2013 08:39:22 -0400 Date: Fri, 20 Sep 2013 07:38:08 -0500 From: Nishanth Menon To: Viresh Kumar CC: "Rafael J. Wysocki" , "linux-pm@vger.kernel.org" , , Linux Kernel Mailing List , "linux-arm-kernel@lists.infradead.org" , , "cpufreq@vger.kernel.org" , linux-samsung-soc , Rob Landley , Shawn Guo , Sascha Hauer , Russell King , Tony Lindgren , Kevin Hilman , Greg Kroah-Hartman , Sudeep KarkadaNagesha , Kukjin Kim , MyungJoo Ham , Kyungmin Park , Randy Dunlap Subject: Re: [PATCH 1/3] PM / OPP: rename functions to dev_pm_opp* Message-ID: <20130920123808.GA22176@kahuna> References: <1379624632-17356-1-git-send-email-nm@ti.com> <1379624632-17356-2-git-send-email-nm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12:44-20130920, Viresh Kumar wrote: > On 20 September 2013 02:33, Nishanth Menon wrote: > > opp_get_opp_count > > opp_find_freq_exact > > opp_init_cpufreq_table > > opp_free_cpufreq_table > > The only problem I see is that routines names for few of them are getting > really long now.. Otherwise not much I could find... I am open to suggestions if any one feels we can improve this better. > > Though you had following changes, which you could have avoided in this > hard to review patchset: > > diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c > new_opp = [-kzalloc(sizeof(struct > opp),-]{+kzalloc(sizeof(*new_opp),+} GFP_KERNEL); > new_opp = [-kmalloc(sizeof(struct > opp),-]{+kmalloc(sizeof(*new_opp),+} GFP_KERNEL); > > It is almost impossible to catch these with naked eyes for such long > patches.. I took help of --word-diff though :) I believe that change was from Patch #2[1] yes, you are right, I had squashed this patch in to squelch checkpatch warnings: CHECK: Prefer kzalloc(sizeof(*new_opp)...) over kzalloc(sizeof(struct dev_pm_opp)...) #177: FILE: drivers/base/power/opp.c:406: + new_opp = kzalloc(sizeof(struct dev_pm_opp), GFP_KERNEL); CHECK: Prefer kmalloc(sizeof(*new_opp)...) over kmalloc(sizeof(struct dev_pm_opp)...) #191: FILE: drivers/base/power/opp.c:495: + new_opp = kmalloc(sizeof(struct dev_pm_opp), GFP_KERNEL); I had added a comment: " Minor checkpatch warning fixes as a result of this change was fixed as well." Would you suggest I split the change off to a separate patch or improve the comment a little more? > > If no one else sees these as problems then feel free to add my: > Acked-by: Viresh Kumar [1] https://patchwork.kernel.org/patch/2913551/ -- Regards, Nishanth Menon