public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues
@ 2015-08-23 15:39 Muhammad Falak R Wani
       [not found] ` <CAK-LDbKT0KX4T9Zj3+2hWfBW8KExKst-TL82i+Ta+pnhqBLqYw@mail.gmail.com>
  2015-08-24  4:24 ` Viresh Kumar
  0 siblings, 2 replies; 4+ messages in thread
From: Muhammad Falak R Wani @ 2015-08-23 15:39 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, linux-pm, linux-kernel
  Cc: Muhammad Falak R Wani

Hi,

	This patch fixes issues in coding style, of a missing blank line after
declarations.

Best,
mfrw

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 drivers/cpufreq/cpufreq.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 8ae655c..5aea659 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -718,6 +718,7 @@ static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
 {
 	unsigned int limit;
 	int ret;
+
 	if (cpufreq_driver->bios_limit) {
 		ret = cpufreq_driver->bios_limit(policy->cpu, &limit);
 		if (!ret)
@@ -815,6 +816,7 @@ unlock:
 static void cpufreq_sysfs_release(struct kobject *kobj)
 {
 	struct cpufreq_policy *policy = to_policy(kobj);
+
 	pr_debug("last reference is dropped\n");
 	complete(&policy->kobj_unregister);
 }
@@ -2129,6 +2131,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);
 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
 {
 	struct cpufreq_policy *cpu_policy;
+
 	if (!policy)
 		return -EINVAL;
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues
       [not found] ` <CAK-LDbKT0KX4T9Zj3+2hWfBW8KExKst-TL82i+Ta+pnhqBLqYw@mail.gmail.com>
@ 2015-08-24  4:23   ` Viresh Kumar
  2015-08-24  4:35     ` Vaishali Thakkar
  0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2015-08-24  4:23 UTC (permalink / raw)
  To: Vaishali Thakkar
  Cc: Muhammad Falak Reyaz, Linux PM list, Rafael J. Wysocki,
	linux-kernel

On 23-08-15, 21:19, Vaishali Thakkar wrote:
> 
> On 23 Aug 2015 21:05, "Muhammad Falak R Wani" <falakreyaz@gmail.com> wrote:
> >
> > Hi,
> >
> >         This patch fixes issues in coding style, of a missing blank line
> after
> > declarations.
> >
> > Best,
> > mfrw
> 
> Please use subject lines and commit log matching the kernel coding style for
> the subsystem on patches.

And Vaishali, please don't send any mails in html. Please configure
your gmail client to send mails only in text.

-- 
viresh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues
  2015-08-23 15:39 [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues Muhammad Falak R Wani
       [not found] ` <CAK-LDbKT0KX4T9Zj3+2hWfBW8KExKst-TL82i+Ta+pnhqBLqYw@mail.gmail.com>
@ 2015-08-24  4:24 ` Viresh Kumar
  1 sibling, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2015-08-24  4:24 UTC (permalink / raw)
  To: Muhammad Falak R Wani; +Cc: Rafael J. Wysocki, linux-pm, linux-kernel

On 23-08-15, 21:09, Muhammad Falak R Wani wrote:
> Hi,
> 
> 	This patch fixes issues in coding style, of a missing blank line after
> declarations.
> 
> Best,
> mfrw

This is as ugly as it could be. Please go through
Documentation/SubmittingPatches and other related stuff to see you to
send patches.

> Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
> ---
>  drivers/cpufreq/cpufreq.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 8ae655c..5aea659 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -718,6 +718,7 @@ static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
>  {
>  	unsigned int limit;
>  	int ret;
> +
>  	if (cpufreq_driver->bios_limit) {
>  		ret = cpufreq_driver->bios_limit(policy->cpu, &limit);
>  		if (!ret)
> @@ -815,6 +816,7 @@ unlock:
>  static void cpufreq_sysfs_release(struct kobject *kobj)
>  {
>  	struct cpufreq_policy *policy = to_policy(kobj);
> +
>  	pr_debug("last reference is dropped\n");
>  	complete(&policy->kobj_unregister);
>  }
> @@ -2129,6 +2131,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);
>  int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
>  {
>  	struct cpufreq_policy *cpu_policy;
> +
>  	if (!policy)
>  		return -EINVAL;

And then these changes are all trivial and not at all important. We
don't want a patch for that even if checkpatch complains.

-- 
viresh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues
  2015-08-24  4:23   ` Viresh Kumar
@ 2015-08-24  4:35     ` Vaishali Thakkar
  0 siblings, 0 replies; 4+ messages in thread
From: Vaishali Thakkar @ 2015-08-24  4:35 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Muhammad Falak Reyaz, Linux PM list, Rafael J. Wysocki,
	Linux Kernel Mailing List

On Mon, Aug 24, 2015 at 9:53 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 23-08-15, 21:19, Vaishali Thakkar wrote:
>>
>> On 23 Aug 2015 21:05, "Muhammad Falak R Wani" <falakreyaz@gmail.com> wrote:
>> >
>> > Hi,
>> >
>> >         This patch fixes issues in coding style, of a missing blank line
>> after
>> > declarations.
>> >
>> > Best,
>> > mfrw
>>
>> Please use subject lines and commit log matching the kernel coding style for
>> the subsystem on patches.
>
> And Vaishali, please don't send any mails in html. Please configure
> your gmail client to send mails only in text.

Yes. Sorry. I realized my mistake. Will keep in mind.

> --
> viresh



-- 
Vaishali

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24  4:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-23 15:39 [PATCH 1/1] fix cpufreq/cpufreq.c some coding style issues Muhammad Falak R Wani
     [not found] ` <CAK-LDbKT0KX4T9Zj3+2hWfBW8KExKst-TL82i+Ta+pnhqBLqYw@mail.gmail.com>
2015-08-24  4:23   ` Viresh Kumar
2015-08-24  4:35     ` Vaishali Thakkar
2015-08-24  4:24 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox