Skip to contentSkip to conversation

The Patch fixes the missing a blank line warning

PATCH In review Adithya Chandrakasan 2 participants 6 messages Feb 11, 2021 – Feb 12, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 The Patch fixes the missing a blank line warning

FILE: mm/util.c:930: WARNING: Missing a blank line after declarations

---
 mm/util.c | 1 +
 1 file changed, 1 insertion(+)
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
 	unsigned int len;
 	struct mm_struct *mm = get_task_mm(task);
 	unsigned long arg_start, arg_end, env_start, env_end;
+
 	if (!mm)
 		goto out;
 	if (!mm->arg_end)
Signature · 1 line
2.25.1
#1 lore raw

This reply comments on the patch to fixes the missing a blank line warning

^

Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject.

"mm/util: fix ??? warning"

Which raises the question, what is ???

Compiler? static code checker? ... ?

Thanks

Quoted 20 lines · Adithya Chandrakasan

FILE: mm/util.c:930: WARNING: Missing a blank line after declarations

---
  mm/util.c | 1 +
  1 file changed, 1 insertion(+)
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
  	unsigned int len;
  	struct mm_struct *mm = get_task_mm(task);
  	unsigned long arg_start, arg_end, env_start, env_end;
+
  	if (!mm)
  		goto out;
  	if (!mm->arg_end)
Signature · 3 lines
Thanks,

David / dhildenb
#2 lore raw

PATCH 1/1 Staging: mm: util.c: checkpatch.pl coding style warning fix

FILE: mm/util.c:930:
checkpatch.pl scripts basic coding style issues as below
WARNING: Missing a blank line after declarations

---
 mm/util.c | 1 +
 1 file changed, 1 insertion(+)
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
 	unsigned int len;
 	struct mm_struct *mm = get_task_mm(task);
 	unsigned long arg_start, arg_end, env_start, env_end;
+
 	if (!mm)
 		goto out;
 	if (!mm->arg_end)
Signature · 1 line
2.25.1
#3 lore raw

Re: This reply comments on the patch to fixes the missing a blank line warning

In reply to David Hildenbrand
Quoted 21 lines · David Hildenbrand

^

Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject.

"mm/util: fix ??? warning"

Which raises the question, what is ???

Compiler? static code checker? ... ?

Thanks

Quoted 7 lines · Adithya Chandrakasan

FILE: mm/util.c:930: WARNING: Missing a blank line after declarations

---
   mm/util.c | 1 +

   1 file changed, 1 insertion(+)
Quoted 15 lines

mm/util.c int get_cmdline(struct task_struct *task, char *buffer, int buflen) · line 933

Quoted 13 lines
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
        unsigned int len;
        struct mm_struct *mm = get_task_mm(task);
        unsigned long arg_start, arg_end, env_start, env_end;
+
        if (!mm)
            goto out;
        if (!mm->arg_end)

Hi David,

Thanks for feedback. I have fixed the issues in the patch thread with change in subject and also log message.

with regards,
Adithya Chandrakasan

FILE: mm/util.c:930:
checkpatch.pl scripts basic coding style issues as below
WARNING: Missing a blank line after declarations

---
 mm/util.c | 1 +
 1 file changed, 1 insertion(+)
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
 	unsigned int len;
 	struct mm_struct *mm = get_task_mm(task);
 	unsigned long arg_start, arg_end, env_start, env_end;
+
 	if (!mm)
 		goto out;
 	if (!mm->arg_end)
Signature · 1 line
2.25.1
#4 lore raw

Re: This reply comments on the patch to fixes the missing a blank line warning

Quoted 40 lines · Adithya Chandrakasan
Quoted 24 lines · David Hildenbrand

^

Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject.

"mm/util: fix ??? warning"

Which raises the question, what is ???

Compiler? static code checker? ... ?

Thanks

Quoted 7 lines · Adithya Chandrakasan

FILE: mm/util.c:930: WARNING: Missing a blank line after declarations

---
    mm/util.c | 1 +
    1 file changed, 1 insertion(+)
Quoted 15 lines

mm/util.c int get_cmdline(struct task_struct *task, char *buffer, int buflen) · line 933

Quoted 13 lines
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
        unsigned int len;
        struct mm_struct *mm = get_task_mm(task);
        unsigned long arg_start, arg_end, env_start, env_end;
+
        if (!mm)
            goto out;
        if (!mm->arg_end)
Quoted 4 lines

Hi David,

Thanks for feedback. I have fixed the issues in the patch thread with change in subject and also log message.

Hi,

Please always send patches via proper mails and versioned.

E.g.,

rm *.patch
git format-patch -1 -v2
git send-email --to ... *.patch

The introducing patch is from 2014. So I wonder how you even get a checkpatch warning?

a90902531a06a ("proc read mm's {arg,env}_{start,end} with mmap semaphore taken.")

Anyhow, maybe just call this patch "mm: util.c: minor coding style fix", that makes it clearer that this is really minor and has been in the code for a while.

Thanks!

Signature · 3 lines
Thanks,

David / dhildenb
#5 lore raw

Re: This reply comments on the patch to fixes the missing a blank line warning

Quoted 57 lines · David Hildenbrand
Quoted 40 lines · Adithya Chandrakasan
Quoted 24 lines · David Hildenbrand

^

Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject.

"mm/util: fix ??? warning"

Which raises the question, what is ???

Compiler? static code checker? ... ?

Thanks

Quoted 7 lines · Adithya Chandrakasan

FILE: mm/util.c:930: WARNING: Missing a blank line after declarations

---
     mm/util.c | 1 +
     1 file changed, 1 insertion(+)
Quoted 15 lines

mm/util.c int get_cmdline(struct task_struct *task, char *buffer, int buflen) · line 933

Quoted 13 lines
mm/util.c +1 -0
index 8c9b7d1e7c49..60286876636d 100644
@@ -927,6 +927,7 @@ int get_cmdline(struct task_struct *task, char *buffer, int buflen)
         unsigned int len;
         struct mm_struct *mm = get_task_mm(task);
         unsigned long arg_start, arg_end, env_start, env_end;
+
         if (!mm)
             goto out;
         if (!mm->arg_end)
Quoted 4 lines

Hi David,

Thanks for feedback. I have fixed the issues in the patch thread with change in subject and also log message.

Hi,

Please always send patches via proper mails and versioned.

E.g.,

rm *.patch
git format-patch -1 -v2
git send-email --to ... *.patch

Quoted 5 lines

The introducing patch is from 2014. So I wonder how you even get a checkpatch warning?

a90902531a06a ("proc read mm's {arg,env}_{start,end} with mmap semaphore taken.")

Sorry wrong pointer, it's from 2014

a90902531a06 ("mm: Create utility function for accessing a tasks commandline value")

Signature · 3 lines
Thanks,

David / dhildenb