* Re: [PATCH] I2O: Lindent run and replacement of printk through osm printing functions [not found] <200506241709.j5OH98vv000983@hera.kernel.org> @ 2005-06-24 22:26 ` Jeff Garzik 2005-06-24 23:14 ` Markus Lidel 0 siblings, 1 reply; 4+ messages in thread From: Jeff Garzik @ 2005-06-24 22:26 UTC (permalink / raw) To: Markus.Lidel; +Cc: Linux Kernel Mailing List, Andrew Morton Linux Kernel Mailing List wrote: > tree da7e51e7204625f21371eac23a931f4fe479e9db > parent 9e87545f06930c1d294423a8091d1077e7444a47 > author Markus Lidel <Markus.Lidel@shadowconnect.com> Fri, 24 Jun 2005 12:02:23 -0700 > committer Linus Torvalds <torvalds@ppc970.osdl.org> Fri, 24 Jun 2005 14:05:29 -0700 > > [PATCH] I2O: Lindent run and replacement of printk through osm printing functions > > Lindent run and replaced printk() through the corresponding osm_*() function Please don't combine ANY code changes with an Lindent patch. Also, you typically want to do a pass through the post-Lindent code, to fix crazy word-wrapped lines like > if (copy_from_user > - (p->virt, (void __user *)(unsigned long)sg[i].addr_bus, > - sg_size)) { > + (p->virt, > + (void __user *)(unsigned long)sg[i]. > + addr_bus, sg_size)) { > printk(KERN_DEBUG > "%s: Could not copy SG buf %d FROM user\n", > c->name, i); ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] I2O: Lindent run and replacement of printk through osm printing functions 2005-06-24 22:26 ` [PATCH] I2O: Lindent run and replacement of printk through osm printing functions Jeff Garzik @ 2005-06-24 23:14 ` Markus Lidel 2005-06-24 23:34 ` Jeff Garzik 2005-06-26 17:57 ` Alan Cox 0 siblings, 2 replies; 4+ messages in thread From: Markus Lidel @ 2005-06-24 23:14 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linux Kernel Mailing List, Andrew Morton Hello, Jeff Garzik wrote: > Linux Kernel Mailing List wrote: >> tree da7e51e7204625f21371eac23a931f4fe479e9db >> parent 9e87545f06930c1d294423a8091d1077e7444a47 >> author Markus Lidel <Markus.Lidel@shadowconnect.com> Fri, 24 Jun 2005 >> 12:02:23 -0700 >> committer Linus Torvalds <torvalds@ppc970.osdl.org> Fri, 24 Jun 2005 >> 14:05:29 -0700 >> [PATCH] I2O: Lindent run and replacement of printk through osm >> printing functions >> Lindent run and replaced printk() through the corresponding osm_*() >> function > Please don't combine ANY code changes with an Lindent patch. Also if there is no functional change, only cosmetical (the osm_*() function just mappes to printk(*, ...))? > Also, you typically want to do a pass through the post-Lindent code, to > fix crazy word-wrapped lines like >> if (copy_from_user >> - (p->virt, (void __user *)(unsigned >> long)sg[i].addr_bus, >> - sg_size)) { >> + (p->virt, >> + (void __user *)(unsigned long)sg[i]. >> + addr_bus, sg_size)) { >> printk(KERN_DEBUG >> "%s: Could not copy SG buf %d FROM user\n", >> c->name, i); OK, next time i do this too (i've not touched it, because i only have a 80x24 terminal and it was more readable after the Lindent run for me :-D)... Thank you very much! Best regards, Markus Lidel ------------------------------------------ Markus Lidel (Senior IT Consultant) Shadow Connect GmbH Carl-Reisch-Weg 12 D-86381 Krumbach Germany Phone: +49 82 82/99 51-0 Fax: +49 82 82/99 51-11 E-Mail: Markus.Lidel@shadowconnect.com URL: http://www.shadowconnect.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] I2O: Lindent run and replacement of printk through osm printing functions 2005-06-24 23:14 ` Markus Lidel @ 2005-06-24 23:34 ` Jeff Garzik 2005-06-26 17:57 ` Alan Cox 1 sibling, 0 replies; 4+ messages in thread From: Jeff Garzik @ 2005-06-24 23:34 UTC (permalink / raw) To: Markus Lidel; +Cc: Linux Kernel Mailing List, Andrew Morton Markus Lidel wrote: > Hello, > > Jeff Garzik wrote: > >> Linux Kernel Mailing List wrote: >> >>> tree da7e51e7204625f21371eac23a931f4fe479e9db >>> parent 9e87545f06930c1d294423a8091d1077e7444a47 >>> author Markus Lidel <Markus.Lidel@shadowconnect.com> Fri, 24 Jun 2005 >>> 12:02:23 -0700 >>> committer Linus Torvalds <torvalds@ppc970.osdl.org> Fri, 24 Jun 2005 >>> 14:05:29 -0700 >>> [PATCH] I2O: Lindent run and replacement of printk through osm >>> printing functions >>> Lindent run and replaced printk() through the corresponding osm_*() >>> function >> >> Please don't combine ANY code changes with an Lindent patch. > > > Also if there is no functional change, only cosmetical (the osm_*() > function just mappes to printk(*, ...))? Yes. An Lindent patch needs to contain absolutely nothing else, not even documentation changes. The rationale is that it is extremely difficult for reviewers to review your non-Lindent changes, because they are so obscured by Lindent. In the past, one person even hid a [valid] security fix inside an Lindent patch. Jeff ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] I2O: Lindent run and replacement of printk through osm printing functions 2005-06-24 23:14 ` Markus Lidel 2005-06-24 23:34 ` Jeff Garzik @ 2005-06-26 17:57 ` Alan Cox 1 sibling, 0 replies; 4+ messages in thread From: Alan Cox @ 2005-06-26 17:57 UTC (permalink / raw) To: Markus Lidel; +Cc: Jeff Garzik, Linux Kernel Mailing List, Andrew Morton On Sad, 2005-06-25 at 00:14, Markus Lidel wrote: > > Also, you typically want to do a pass through the post-Lindent code, to > > fix crazy word-wrapped lines like > >> if (copy_from_user No need. Just don't use Lindent or hack the lindent script to pass a more sane line length. See man indent. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-26 18:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200506241709.j5OH98vv000983@hera.kernel.org>
2005-06-24 22:26 ` [PATCH] I2O: Lindent run and replacement of printk through osm printing functions Jeff Garzik
2005-06-24 23:14 ` Markus Lidel
2005-06-24 23:34 ` Jeff Garzik
2005-06-26 17:57 ` Alan Cox
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox