* [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue @ 2015-01-04 15:22 Piotr Kubus 2015-01-04 22:31 ` Konrad Zapalowicz 2015-01-10 0:59 ` Greg KH 0 siblings, 2 replies; 10+ messages in thread From: Piotr Kubus @ 2015-01-04 15:22 UTC (permalink / raw) To: gregkh; +Cc: abbotti, hsweeten, devel, linux-kernel, Piotr Kubus This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. Signed-off-by: Piotr Kubus <p.t.kubus@gmail.com> --- drivers/staging/comedi/drivers/dmm32at.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c index 6df298a..31919b8 100644 --- a/drivers/staging/comedi/drivers/dmm32at.c +++ b/drivers/staging/comedi/drivers/dmm32at.c @@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec) /* enable the ai conversion interrupt and the clock to start scans */ outb(DMM32AT_INTCLK_ADINT | DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL, - dev->iobase + DMM32AT_INTCLK_REG); + dev->iobase + DMM32AT_INTCLK_REG); } static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) -- 1.9.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-04 15:22 [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue Piotr Kubus @ 2015-01-04 22:31 ` Konrad Zapalowicz 2015-01-05 19:24 ` Piotr Kubus 2015-01-10 0:59 ` Greg KH 1 sibling, 1 reply; 10+ messages in thread From: Konrad Zapalowicz @ 2015-01-04 22:31 UTC (permalink / raw) To: Piotr Kubus; +Cc: gregkh, devel, abbotti, linux-kernel On 01/04, Piotr Kubus wrote: > This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc... The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log. Thanks, Konrad > Signed-off-by: Piotr Kubus <p.t.kubus@gmail.com> > --- > drivers/staging/comedi/drivers/dmm32at.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c > index 6df298a..31919b8 100644 > --- a/drivers/staging/comedi/drivers/dmm32at.c > +++ b/drivers/staging/comedi/drivers/dmm32at.c > @@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec) > /* enable the ai conversion interrupt and the clock to start scans */ > outb(DMM32AT_INTCLK_ADINT | > DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL, > - dev->iobase + DMM32AT_INTCLK_REG); > + dev->iobase + DMM32AT_INTCLK_REG); > } > > static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) > -- > 1.9.1 > > _______________________________________________ > devel mailing list > devel@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-04 22:31 ` Konrad Zapalowicz @ 2015-01-05 19:24 ` Piotr Kubus 2015-01-06 6:02 ` Sudip Mukherjee 2015-01-06 10:06 ` Dan Carpenter 0 siblings, 2 replies; 10+ messages in thread From: Piotr Kubus @ 2015-01-05 19:24 UTC (permalink / raw) To: Konrad Zapalowicz; +Cc: gregkh, devel, abbotti, linux-kernel On Sun, Jan 04, 2015 at 11:31:29PM +0100, Konrad Zapalowicz wrote: > On 01/04, Piotr Kubus wrote: > > This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. > > Nice however improve your commit message. The rule is that the lines > should wrap at 72nd column except for quoted material such as compiler > output, etc... > > The 72-character columns are important for allowing quoting and they > play nicely with standard indentation from git log. Hey, I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool. Do you mean I should resend it or wait for reply from maintainer first? Regards, Piotr > > Thanks, > Konrad > > > Signed-off-by: Piotr Kubus <p.t.kubus@gmail.com> > > --- > > drivers/staging/comedi/drivers/dmm32at.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c > > index 6df298a..31919b8 100644 > > --- a/drivers/staging/comedi/drivers/dmm32at.c > > +++ b/drivers/staging/comedi/drivers/dmm32at.c > > @@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec) > > /* enable the ai conversion interrupt and the clock to start scans */ > > outb(DMM32AT_INTCLK_ADINT | > > DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL, > > - dev->iobase + DMM32AT_INTCLK_REG); > > + dev->iobase + DMM32AT_INTCLK_REG); > > } > > > > static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) > > -- > > 1.9.1 > > > > _______________________________________________ > > devel mailing list > > devel@linuxdriverproject.org > > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-05 19:24 ` Piotr Kubus @ 2015-01-06 6:02 ` Sudip Mukherjee 2015-01-06 10:08 ` Ian Abbott 2015-01-06 10:06 ` Dan Carpenter 1 sibling, 1 reply; 10+ messages in thread From: Sudip Mukherjee @ 2015-01-06 6:02 UTC (permalink / raw) To: Piotr Kubus; +Cc: Konrad Zapalowicz, gregkh, devel, abbotti, linux-kernel On Mon, Jan 05, 2015 at 08:24:06PM +0100, Piotr Kubus wrote: > On Sun, Jan 04, 2015 at 11:31:29PM +0100, Konrad Zapalowicz wrote: > > On 01/04, Piotr Kubus wrote: > > > This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. > > > > Nice however improve your commit message. The rule is that the lines > > should wrap at 72nd column except for quoted material such as compiler > > output, etc... > > > > The 72-character columns are important for allowing quoting and they > > play nicely with standard indentation from git log. > > Hey, > > I couldn't find that rule in Kernel documentation. Besides there were no > complaints from checkpatch.pl tool. Please check SubmittingPatches in Documentation. It says: 'the "summary" must be no more than 70-75 characters' thanks sudip > Piotr > > > > > Thanks, > > Konrad > > <snip> > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-06 6:02 ` Sudip Mukherjee @ 2015-01-06 10:08 ` Ian Abbott 2015-01-06 10:27 ` Sudip Mukherjee 0 siblings, 1 reply; 10+ messages in thread From: Ian Abbott @ 2015-01-06 10:08 UTC (permalink / raw) To: Sudip Mukherjee, Piotr Kubus Cc: Konrad Zapalowicz, gregkh, devel, linux-kernel On 06/01/15 06:02, Sudip Mukherjee wrote: > On Mon, Jan 05, 2015 at 08:24:06PM +0100, Piotr Kubus wrote: >> On Sun, Jan 04, 2015 at 11:31:29PM +0100, Konrad Zapalowicz wrote: >>> On 01/04, Piotr Kubus wrote: >>>> This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. >>> >>> Nice however improve your commit message. The rule is that the lines >>> should wrap at 72nd column except for quoted material such as compiler >>> output, etc... >>> >>> The 72-character columns are important for allowing quoting and they >>> play nicely with standard indentation from git log. >> >> Hey, >> >> I couldn't find that rule in Kernel documentation. Besides there were no >> complaints from checkpatch.pl tool. > > Please check SubmittingPatches in Documentation. It says: > 'the "summary" must be no more than 70-75 characters' In this case, it's not the "summary" that's at issue, it's the body of the commit message, as Konrad mentioned above. -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-06 10:08 ` Ian Abbott @ 2015-01-06 10:27 ` Sudip Mukherjee 2015-01-06 13:33 ` Konrad Zapalowicz 0 siblings, 1 reply; 10+ messages in thread From: Sudip Mukherjee @ 2015-01-06 10:27 UTC (permalink / raw) To: Ian Abbott Cc: Piotr Kubus, Konrad Zapalowicz, gregkh, devel, linux-kernel, dan.carpenter On Tue, Jan 06, 2015 at 10:08:37AM +0000, Ian Abbott wrote: > On 06/01/15 06:02, Sudip Mukherjee wrote: > >On Mon, Jan 05, 2015 at 08:24:06PM +0100, Piotr Kubus wrote: > >>On Sun, Jan 04, 2015 at 11:31:29PM +0100, Konrad Zapalowicz wrote: > >>>On 01/04, Piotr Kubus wrote: > >>>>This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. > >>> > >>>Nice however improve your commit message. The rule is that the lines > >>>should wrap at 72nd column except for quoted material such as compiler > >>>output, etc... > >>> > >>>The 72-character columns are important for allowing quoting and they > >>>play nicely with standard indentation from git log. > >> > >>Hey, > >> > >>I couldn't find that rule in Kernel documentation. Besides there were no > >>complaints from checkpatch.pl tool. > > > >Please check SubmittingPatches in Documentation. It says: > >'the "summary" must be no more than 70-75 characters' > > In this case, it's not the "summary" that's at issue, it's the body > of the commit message, as Konrad mentioned above. yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ? sudip > > -- > -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- > -=( Web: http://www.mev.co.uk/ )=- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-06 10:27 ` Sudip Mukherjee @ 2015-01-06 13:33 ` Konrad Zapalowicz 2015-01-06 13:50 ` Sudip Mukherjee 0 siblings, 1 reply; 10+ messages in thread From: Konrad Zapalowicz @ 2015-01-06 13:33 UTC (permalink / raw) To: Sudip Mukherjee Cc: Ian Abbott, Piotr Kubus, gregkh, devel, linux-kernel, dan.carpenter On 01/06, Sudip Mukherjee wrote: > On Tue, Jan 06, 2015 at 10:08:37AM +0000, Ian Abbott wrote: > > On 06/01/15 06:02, Sudip Mukherjee wrote: > > >On Mon, Jan 05, 2015 at 08:24:06PM +0100, Piotr Kubus wrote: > > >>On Sun, Jan 04, 2015 at 11:31:29PM +0100, Konrad Zapalowicz wrote: > > >>>On 01/04, Piotr Kubus wrote: > > >>>>This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. > > >>> > > >>>Nice however improve your commit message. The rule is that the lines > > >>>should wrap at 72nd column except for quoted material such as compiler > > >>>output, etc... > > >>> > > >>>The 72-character columns are important for allowing quoting and they > > >>>play nicely with standard indentation from git log. > > >> > > >>Hey, > > >> > > >>I couldn't find that rule in Kernel documentation. Besides there were no > > >>complaints from checkpatch.pl tool. > > > > > >Please check SubmittingPatches in Documentation. It says: > > >'the "summary" must be no more than 70-75 characters' > > > > In this case, it's not the "summary" that's at issue, it's the body > > of the commit message, as Konrad mentioned above. > > yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ? Then it is an 'unwritten rule' :) You can observe it just be browsing the git log commit messages - pick a few random and you will see. Moreover in the http://git-scm.com/book/ch5-2.html the 72-character columns are the example of the good commit message plus Linus says so: "we use 72-character columns for word-wrapping, except for quoted material that has a specific line format." in one of his comments https://github.com/torvalds/linux/pull/17#issuecomment-5661185 cheers, konrad > sudip > > > > -- > > -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- > > -=( Web: http://www.mev.co.uk/ )=- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-06 13:33 ` Konrad Zapalowicz @ 2015-01-06 13:50 ` Sudip Mukherjee 0 siblings, 0 replies; 10+ messages in thread From: Sudip Mukherjee @ 2015-01-06 13:50 UTC (permalink / raw) To: Konrad Zapalowicz Cc: Ian Abbott, Piotr Kubus, gregkh, devel, linux-kernel, dan.carpenter On Tue, Jan 06, 2015 at 02:33:27PM +0100, Konrad Zapalowicz wrote: > On 01/06, Sudip Mukherjee wrote: > > yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ? > > Then it is an 'unwritten rule' :) You can observe it just be browsing > the git log commit messages - pick a few random and you will see. i don't need to veify it, I don't doubt the rule. if you see all the patches i have sent, i have always maintained a rule of 70. just curious why this 72 .. this one gives a reason why - http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html sudip > > Moreover in the http://git-scm.com/book/ch5-2.html the 72-character > columns are the example of the good commit message plus Linus says so: > > "we use 72-character columns for word-wrapping, except for quoted > material that has a specific line format." > > in one of his comments > https://github.com/torvalds/linux/pull/17#issuecomment-5661185 > > cheers, > konrad > > > sudip > > > > > > -- > > > -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- > > > -=( Web: http://www.mev.co.uk/ )=- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-05 19:24 ` Piotr Kubus 2015-01-06 6:02 ` Sudip Mukherjee @ 2015-01-06 10:06 ` Dan Carpenter 1 sibling, 0 replies; 10+ messages in thread From: Dan Carpenter @ 2015-01-06 10:06 UTC (permalink / raw) To: Piotr Kubus; +Cc: Konrad Zapalowicz, devel, gregkh, abbotti, linux-kernel On Mon, Jan 05, 2015 at 08:24:06PM +0100, Piotr Kubus wrote: > Do you mean I should resend it or wait for reply from maintainer first? > Resend, please. regards, dan carpenter ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue 2015-01-04 15:22 [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue Piotr Kubus 2015-01-04 22:31 ` Konrad Zapalowicz @ 2015-01-10 0:59 ` Greg KH 1 sibling, 0 replies; 10+ messages in thread From: Greg KH @ 2015-01-10 0:59 UTC (permalink / raw) To: Piotr Kubus; +Cc: abbotti, hsweeten, devel, linux-kernel On Sun, Jan 04, 2015 at 04:22:35PM +0100, Piotr Kubus wrote: > This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool. > > Signed-off-by: Piotr Kubus <p.t.kubus@gmail.com> > --- > drivers/staging/comedi/drivers/dmm32at.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c > index 6df298a..31919b8 100644 > --- a/drivers/staging/comedi/drivers/dmm32at.c > +++ b/drivers/staging/comedi/drivers/dmm32at.c > @@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec) > /* enable the ai conversion interrupt and the clock to start scans */ > outb(DMM32AT_INTCLK_ADINT | > DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL, > - dev->iobase + DMM32AT_INTCLK_REG); > + dev->iobase + DMM32AT_INTCLK_REG); > } > > static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) > -- > 1.9.1 Someone already submitted this same change before you :( ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-01-10 0:59 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-01-04 15:22 [PATCH] Staging: comedi: dmm32at: Fixed a code indent issue Piotr Kubus 2015-01-04 22:31 ` Konrad Zapalowicz 2015-01-05 19:24 ` Piotr Kubus 2015-01-06 6:02 ` Sudip Mukherjee 2015-01-06 10:08 ` Ian Abbott 2015-01-06 10:27 ` Sudip Mukherjee 2015-01-06 13:33 ` Konrad Zapalowicz 2015-01-06 13:50 ` Sudip Mukherjee 2015-01-06 10:06 ` Dan Carpenter 2015-01-10 0:59 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox