Skip to contentSkip to conversation

fix cpufreq/cpufreq.c some coding style issues

PATCH Superseded Muhammad Falak R Wani 3 participants 4 messages Aug 23, 2015 – Aug 24, 2015 1 message not in the archive CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix cpufreq/cpufreq.c some coding style issues

Hi,

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

Best,
mfrw

---
 drivers/cpufreq/cpufreq.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpufreq/cpufreq.c +3 -0
index 8ae655c..5aea659 100644
@@ -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;
 
Signature · 1 line
1.9.1

A message that is not in the archive (sent off-list or not yet received): CAK-LDbKT0KX4T9Zj3+2hWfBW8KExKst-TL82i+Ta+pnhqBLqYw@mail.gmail.com

maintainer
#2 lore raw
Quoted 6 lines · Vaishali Thakkar
Quoted 4 lines · Muhammad Falak R Wani

Hi,

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

Quoted 8 lines

after

Quoted 4 lines

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.

Signature · 1 line
viresh
#3 lore raw
Quoted 10 lines · Viresh Kumar
Quoted 9 lines · Vaishali Thakkar
Quoted 4 lines · Muhammad Falak R Wani

Hi,

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

after

Quoted 2 lines

declarations.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

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.

Quoted 2 lines

--
viresh

Signature · 1 line
Vaishali
maintainer
#4 lore raw
In reply to Muhammad Falak R Wani
Quoted 7 lines · Muhammad Falak R Wani

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.

Quoted 26 lines
---
 drivers/cpufreq/cpufreq.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpufreq/cpufreq.c +2 -0
index 8ae655c..5aea659 100644
@@ -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);
 }

drivers/cpufreq/cpufreq.c EXPORT_SYMBOL_GPL(cpufreq_unregister_governor); · line 2136

Quoted 6 lines
drivers/cpufreq/cpufreq.c +1 -0
@@ -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.

Signature · 1 line
viresh