The Patch fixes the missing a blank line warning
Subsystems (2)
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
@@ -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
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 declarationsSigned-off-by Adithya Chandrakasan <[email protected]>--- mm/util.c | 1 + 1 file changed, 1 insertion(+)mm/util.c +1
-0@@ -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
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
@@ -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
Re: This reply comments on the patch to fixes the missing a blank line warning
In reply to David HildenbrandQuoted 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 declarationsSigned-off-by Adithya Chandrakasan <[email protected]>---
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@@ -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
@@ -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
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 declarationsSigned-off-by Adithya Chandrakasan <[email protected]>--- 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@@ -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
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 declarationsSigned-off-by Adithya Chandrakasan <[email protected]>--- 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@@ -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