All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-10-05 11:28 [PATCH] INITEST: Documentation: Explains how INITEST works Amit Kumar
@ 2016-09-30  5:42 ` Greg KH
  2016-09-30  5:49 ` Bjørn Mork
  2016-10-05 11:46 ` Amit Kumar
  2 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2016-09-30  5:42 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Sep 30, 2016 at 10:47:09AM +0530, Amit Kumar wrote:
> Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
> 
> This is a test patch.
> Is this patch in right format?

What exactly do you mean by "right format"?  What do you want reviewed
here, the content of the patch, or the other stuff around the patch
(subject, changelog, etc.)?

thanks,

greg k-h

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-10-05 11:28 [PATCH] INITEST: Documentation: Explains how INITEST works Amit Kumar
  2016-09-30  5:42 ` Greg KH
@ 2016-09-30  5:49 ` Bjørn Mork
  2016-09-30  5:59   ` Amit Kumar
  2016-09-30  7:52   ` Valdis.Kletnieks at vt.edu
  2016-10-05 11:46 ` Amit Kumar
  2 siblings, 2 replies; 7+ messages in thread
From: Bjørn Mork @ 2016-09-30  5:49 UTC (permalink / raw)
  To: kernelnewbies

Amit Kumar <free.amit.kumar@gmail.com> writes:

> Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
>
> This is a test patch.
> Is this patch in right format?
> ---
>  Documentation/initest.txt | 7 +++++++
>  1 file changed, 7 insertions(+)
>  create mode 100644 Documentation/initest.txt
>
> diff --git a/Documentation/initest.txt b/Documentation/initest.txt
> new file mode 100644
> index 0000000..eed4124
> --- /dev/null
> +++ b/Documentation/initest.txt
> @@ -0,0 +1,7 @@
> +INITEST
> +
> +1) This is the same user space program /sbin/init, but for the purpose of testing kernel system calls.
> +
> +2) It will also use testing drivers to test internal kernel API.
> +
> +3) This is a test patch.


Looks pretty good.  But a few more things to keep in mind:

1) There should be *some* body text describing the patch, even for a very
   basic change which is explained in full in subject.  This goes first
   in the body, separated from the tags with a single empty line.

2) Signed-off-by and other tags go at the end of the body, right before
  the "---" separator.  Don't put anything between the SOB and the
  separator.  I realize that this was just a question that you wouldn't
  make part of the submitted patch but still: It broke your example...

3) There is a place for questions about the patch which you do not want
  to be part of the commit message: Right After the first "---"
  separator.  Anything yout put there will be ignored by git when the
  patch is applied, just like the diffstat git includes by itself.

  This is useful if you need to explain something to the maintainer
  regarding how to apply the patch, or if ytou have questions about it
  which are irrelevant if applied.



So the end result would be:


Subject: [PATCH] INITEST: Documentation: Explains how INITEST works.

This is a test patch.

Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
---
Is this patch in right format?


Documentation/initest.txt | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 Documentation/initest.txt

diff --git a/Documentation/initest.txt b/Documentation/initest.txt
[etc]



Bj?rn

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-09-30  5:49 ` Bjørn Mork
@ 2016-09-30  5:59   ` Amit Kumar
  2016-09-30  7:52   ` Valdis.Kletnieks at vt.edu
  1 sibling, 0 replies; 7+ messages in thread
From: Amit Kumar @ 2016-09-30  5:59 UTC (permalink / raw)
  To: kernelnewbies

Hi,

Thank you for your reply.
I'll follow your suggestion.

On Fri, Sep 30, 2016, 11:19 AM Bj?rn Mork <bjorn@mork.no> wrote:

> Amit Kumar <free.amit.kumar@gmail.com> writes:
>
> > Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
> >
> > This is a test patch.
> > Is this patch in right format?
> > ---
> >  Documentation/initest.txt | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >  create mode 100644 Documentation/initest.txt
> >
> > diff --git a/Documentation/initest.txt b/Documentation/initest.txt
> > new file mode 100644
> > index 0000000..eed4124
> > --- /dev/null
> > +++ b/Documentation/initest.txt
> > @@ -0,0 +1,7 @@
> > +INITEST
> > +
> > +1) This is the same user space program /sbin/init, but for the purpose
> of testing kernel system calls.
> > +
> > +2) It will also use testing drivers to test internal kernel API.
> > +
> > +3) This is a test patch.
>
>
> Looks pretty good.  But a few more things to keep in mind:
>
> 1) There should be *some* body text describing the patch, even for a very
>    basic change which is explained in full in subject.  This goes first
>    in the body, separated from the tags with a single empty line.
>
> 2) Signed-off-by and other tags go at the end of the body, right before
>   the "---" separator.  Don't put anything between the SOB and the
>   separator.  I realize that this was just a question that you wouldn't
>   make part of the submitted patch but still: It broke your example...
>
> 3) There is a place for questions about the patch which you do not want
>   to be part of the commit message: Right After the first "---"
>   separator.  Anything yout put there will be ignored by git when the
>   patch is applied, just like the diffstat git includes by itself.
>
>   This is useful if you need to explain something to the maintainer
>   regarding how to apply the patch, or if ytou have questions about it
>   which are irrelevant if applied.
>
>
>
> So the end result would be:
>
>
> Subject: [PATCH] INITEST: Documentation: Explains how INITEST works.
>
> This is a test patch.
>
> Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
> ---
> Is this patch in right format?
>
>
> Documentation/initest.txt | 7 +++++++
> 1 file changed, 7 insertions(+)
> create mode 100644 Documentation/initest.txt
>
> diff --git a/Documentation/initest.txt b/Documentation/initest.txt
> [etc]
>
>
>
> Bj?rn
>
-- 

Regards,
Amit Kumar
Twitter: @freeark1
Only Numbers Can Command.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/a80d3985/attachment-0001.html 

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-09-30  5:49 ` Bjørn Mork
  2016-09-30  5:59   ` Amit Kumar
@ 2016-09-30  7:52   ` Valdis.Kletnieks at vt.edu
  2016-09-30  9:13     ` Amit Kumar
  1 sibling, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-09-30  7:52 UTC (permalink / raw)
  To: kernelnewbies

On Fri, 30 Sep 2016 07:49:50 +0200, Bj?rn Mork said:

> 1) There should be *some* body text describing the patch, even for a very
>    basic change which is explained in full in subject.  This goes first
>    in the body, separated from the tags with a single empty line.

And to add to what he said:

Explaining the *why* is better than the *how*.

"Add Documentation/initest.txt" isn't that helpful - we can see from the diff
that's what it does.  "Add documentation explaining how to deal with the
Frobnizz  3000's wonky interrupts" is a lot better.

Similarly, "fix off-by-one error" is OK - but extending it to "fix off-by-one
error that causes the wireless card to select the wrong channel" is a lot better.

Sell us that patch - tell us *why* we want it in the kernel, and why we should
spend time reviewing it....

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/e9e4ebca/attachment.bin 

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-09-30  7:52   ` Valdis.Kletnieks at vt.edu
@ 2016-09-30  9:13     ` Amit Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Amit Kumar @ 2016-09-30  9:13 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Sep 30, 2016, 1:22 PM <Valdis.Kletnieks@vt.edu> wrote:

> On Fri, 30 Sep 2016 07:49:50 +0200, Bj?rn Mork said:
>
> > 1) There should be *some* body text describing the patch, even for a very
> >    basic change which is explained in full in subject.  This goes first
> >    in the body, separated from the tags with a single empty line.
>
> And to add to what he said:
>
> Explaining the *why* is better than the *how*.
>
> "Add Documentation/initest.txt" isn't that helpful - we can see from the
> diff
> that's what it does.  "Add documentation explaining how to deal with the
> Frobnizz  3000's wonky interrupts" is a lot better.
>
> Similarly, "fix off-by-one error" is OK - but extending it to "fix
> off-by-one
> error that causes the wireless card to select the wrong channel" is a lot
> better.
>
> Sell us that patch - tell us *why* we want it in the kernel, and why we
> should
> spend time reviewing it....
>
> Please, you should not bother to review this patch seriously. As I have
> written in

this patch that "this patch is a test patch", not real one. It has been
answered by Mr. Bjorn Mork
and you. This patch was merely to check whether my patch format is
acceptable to the kernel
community.
-- 

Regards,
Amit Kumar
Twitter: @freeark1
Only Numbers Can Command.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160930/550322de/attachment.html 

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
@ 2016-10-05 11:28 Amit Kumar
  2016-09-30  5:42 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Amit Kumar @ 2016-10-05 11:28 UTC (permalink / raw)
  To: kernelnewbies


This is a test patch.

Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>

---
Is this patch in right format?

 Documentation/initest.txt | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/initest.txt

diff --git a/Documentation/initest.txt b/Documentation/initest.txt
new file mode 100644
index 0000000..eed4124
--- /dev/null
+++ b/Documentation/initest.txt
@@ -0,0 +1,7 @@
+INITEST
+
+1) This is the same user space program /sbin/init, but for the purpose of testing kernel system calls.
+
+2) It will also use testing drivers to test internal kernel API.
+
+3) This is a test patch.
-- 
2.7.4

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

* [PATCH] INITEST: Documentation: Explains how INITEST works.
  2016-10-05 11:28 [PATCH] INITEST: Documentation: Explains how INITEST works Amit Kumar
  2016-09-30  5:42 ` Greg KH
  2016-09-30  5:49 ` Bjørn Mork
@ 2016-10-05 11:46 ` Amit Kumar
  2 siblings, 0 replies; 7+ messages in thread
From: Amit Kumar @ 2016-10-05 11:46 UTC (permalink / raw)
  To: kernelnewbies

Sorry, kernelnewbies address has been added by git-send-email. I was
testing
by sending to myself. I sent this patch as a test patch on this mailing
list before and downloaded.
I'll be cautious in future to review  recipient list.


On Wed, Oct 5, 2016, 5:00 PM Amit Kumar <free.amit.kumar@gmail.com> wrote:

>
> This is a test patch.
>
> Signed-off-by: Amit Kumar <free.amit.kumar@gmail.com>
>
> ---
> Is this patch in right format?
>
>  Documentation/initest.txt | 7 +++++++
>  1 file changed, 7 insertions(+)
>  create mode 100644 Documentation/initest.txt
>
> diff --git a/Documentation/initest.txt b/Documentation/initest.txt
> new file mode 100644
> index 0000000..eed4124
> --- /dev/null
> +++ b/Documentation/initest.txt
> @@ -0,0 +1,7 @@
> +INITEST
> +
> +1) This is the same user space program /sbin/init, but for the purpose of
> testing kernel system calls.
> +
> +2) It will also use testing drivers to test internal kernel API.
> +
> +3) This is a test patch.
> --
> 2.7.4
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161005/2b1b9ef2/attachment.html 

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

end of thread, other threads:[~2016-10-05 11:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 11:28 [PATCH] INITEST: Documentation: Explains how INITEST works Amit Kumar
2016-09-30  5:42 ` Greg KH
2016-09-30  5:49 ` Bjørn Mork
2016-09-30  5:59   ` Amit Kumar
2016-09-30  7:52   ` Valdis.Kletnieks at vt.edu
2016-09-30  9:13     ` Amit Kumar
2016-10-05 11:46 ` Amit Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.