arch: powerpc: kernel: fixed some typos
Subsystems (2)
PATCH 1/1 arch: powerpc: kernel: fixed some typos
Fixed some typos
--- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/kernel/eeh_pe.c +3 -3
@@ -24,10 +24,10 @@ static int eeh_pe_aux_size = 0;static LIST_HEAD (eeh_phb_pe);/** -* eeh_set_pe_aux_size - Set PE auxillary data size -* @size: PE auxillary data size +* eeh_set_pe_aux_size - Set PE auxiliary data size +* @size: PE auxiliary data size * -* Set PE auxillary data size +* Set PE auxiliary data size */ void eeh_set_pe_aux_size (int size) {
Signature · 1 line
2.25.1
Le 15/12/2023 à 12:58, Ghanshyam Agrawal a écrit :
Quoted 3 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
Fixed some typos
This kind of change is a waist of time for us and a waist of time for you.
Please fix those type when you do real changes to the file, otherwise the changes are pointless, everyone is able to understand the comments even with the typo.
Christophe
Quoted 27 lines
Signed-off-by Ghanshyam Agrawal <[email protected]>--- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/powerpc/kernel/eeh_pe.c +3
-4@@ -24,10 +24,10 @@ static int eeh_pe_aux_size = 0;static LIST_HEAD (eeh_phb_pe);/** -* eeh_set_pe_aux_size - Set PE auxillary data size -* @size: PE auxillary data size +* eeh_set_pe_aux_size - Set PE auxiliary data size +* @size: PE auxiliary data size * -* Set PE auxillary data size +* Set PE auxiliary data size */ void eeh_set_pe_aux_size (int size) { --2.25.1
Michael Ellerman
reviewerQuoted 6 lines · Ghanshyam Agrawal
Fixed some typos
Signed-off-by Ghanshyam Agrawal <[email protected]>--- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Please also fix the case in arch/powerpc/include/asm/eeh.h
The subject should use the correct prefix. You can see what it should be using:
$ git log --oneline arch/powerpc/kernel/eeh_pe.c
Please give the patch a better subject, not "some typos", tell me what misspelling you're fixing. Same comment for the commit description.
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 28
Quoted 12 lines
arch/powerpc/kernel/eeh_pe.c +2
-2@@ -24,10 +24,10 @@ static int eeh_pe_aux_size = 0;static LIST_HEAD (eeh_phb_pe);/** -* eeh_set_pe_aux_size - Set PE auxillary data size -* @size: PE auxillary data size +* eeh_set_pe_aux_size - Set PE auxiliary data size +* @size: PE auxiliary data size
While you're changing it you could also mention what the units of the size are.
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 30
Quoted 3 lines
arch/powerpc/kernel/eeh_pe.c +1
-1* -* Set PE auxillary data size +* Set PE auxiliary data size
This should gain a full stop at the end of the sentence.
Quoted 5 lines
arch/powerpc/kernel/eeh_pe.c +0
-0*/ void eeh_set_pe_aux_size (int size) {Signature · 1 line
2.25.1
cheers
Quoted 41 lines · Michael Ellerman
Quoted 6 lines · Ghanshyam Agrawal
Fixed some typos
Signed-off-by Ghanshyam Agrawal <[email protected]>--- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Please also fix the case in
arch/powerpc/include/asm/eeh.hThe subject should use the correct prefix. You can see what it should be using:
$ git log --oneline arch/powerpc/kernel/eeh_pe.cPlease give the patch a better subject, not "some typos", tell me what misspelling you're fixing. Same comment for the commit description.
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 28
Quoted 12 lines
arch/powerpc/kernel/eeh_pe.c +2
-2@@ -24,10 +24,10 @@ static int eeh_pe_aux_size = 0;static LIST_HEAD (eeh_phb_pe);/** -* eeh_set_pe_aux_size - Set PE auxillary data size -* @size: PE auxillary data size +* eeh_set_pe_aux_size - Set PE auxiliary data size +* @size: PE auxiliary data size While you're changing it you could also mention what the units of the size are.
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 30
Quoted 3 lines
arch/powerpc/kernel/eeh_pe.c +1
-1* -* Set PE auxillary data size +* Set PE auxiliary data size This should gain a full stop at the end of the sentence.
Quoted 8 lines
Quoted 5 lines
arch/powerpc/kernel/eeh_pe.c +0
-1*/ void eeh_set_pe_aux_size (int size) { --2.25.1
cheers
Hi Michael,
Thank you very much for your suggestions. I will implement them and send a v2 patch.
You mentioned I need to specify the units of "PE auxiliary data size". Is the unit BYTES? Sorry for the silly question, I am only beginning to contribute to the linux kernel.
Thanks & Regards,
Ghanshyam Agrawal
Michael Ellerman
reviewerQuoted 48 lines · Ghanshyam Agrawal
Quoted 35 lines · Michael Ellerman
Quoted 6 lines · Ghanshyam Agrawal
Fixed some typos
Signed-off-by Ghanshyam Agrawal <[email protected]>--- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Please also fix the case in
arch/powerpc/include/asm/eeh.hThe subject should use the correct prefix. You can see what it should be using:
$ git log --oneline arch/powerpc/kernel/eeh_pe.cPlease give the patch a better subject, not "some typos", tell me what misspelling you're fixing. Same comment for the commit description.
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 28
Quoted 12 lines
arch/powerpc/kernel/eeh_pe.c +2
-2@@ -24,10 +24,10 @@ static int eeh_pe_aux_size = 0;static LIST_HEAD (eeh_phb_pe);/** -* eeh_set_pe_aux_size - Set PE auxillary data size -* @size: PE auxillary data size +* eeh_set_pe_aux_size - Set PE auxiliary data size +* @size: PE auxiliary data size While you're changing it you could also mention what the units of the size are.
Quoted 11 lines
arch/powerpc/kernel/eeh_pe.c static int eeh_pe_aux_size = 0; · line 30
Quoted 3 lines
arch/powerpc/kernel/eeh_pe.c +1
-1* -* Set PE auxillary data size +* Set PE auxiliary data size This should gain a full stop at the end of the sentence.
Quoted 5 lines
arch/powerpc/kernel/eeh_pe.c +0
-1*/ void eeh_set_pe_aux_size (int size) { --2.25.1
Quoted 8 lines
Hi Michael,
Thank you very much for your suggestions. I will implement them and send a v2 patch.
You mentioned I need to specify the units of "PE auxiliary data size". Is the unit BYTES? Sorry for the silly question, I am only beginning to contribute to the linux kernel.
That's OK. Yes it's bytes.
If you look for where eeh_pe_aux_size is used, it's added to some other values and then eventually passed to kzalloc(), which takes a size in bytes. So you can infer that it is also in units of bytes.
cheers