public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [RFC] Using checkpatch.pl
@ 2009-06-14 16:33 Vijay Kumar
  2009-06-15  2:38 ` Garrett Cooper
  2009-06-18 17:31 ` Subrata Modak
  0 siblings, 2 replies; 6+ messages in thread
From: Vijay Kumar @ 2009-06-14 16:33 UTC (permalink / raw)
  To: LTP List

Hi everyone,
Michal Simek patched most of the LTP code base to use the Linux kernel
coding style. But unfortunately new patches, that are flowing in, seem
to add coding style violations. It is better to prevent new style
violations than to fix them later on.

The kernel developers use a perl script called checkpatch.pl to
identify style violations in patches. We could use the same script to
check our patches, as well. The script uses files from the kernel to
do kernel specific checks. This can be disabled by using the --no-tree
option. So to check an LTP patch

$ checkpatch.pl --no-tree ltp-patch

If everybody is OK with it we can add the script to the LTP source
tree, so that everyone checks their patches against the same
script. And Subrata can easily check for style violations before
merging the patch.

In the future, we could also customize the script to do userspace/LTP
specific checks, like missing mode argument when open() is invoked
with O_CREAT flag.

Please do send in your suggestions.

Regards,
Vijay

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [RFC] Using checkpatch.pl
  2009-06-14 16:33 [LTP] [RFC] Using checkpatch.pl Vijay Kumar
@ 2009-06-15  2:38 ` Garrett Cooper
  2009-06-15  7:17   ` Mike Frysinger
  2009-06-18 17:31 ` Subrata Modak
  1 sibling, 1 reply; 6+ messages in thread
From: Garrett Cooper @ 2009-06-15  2:38 UTC (permalink / raw)
  To: Vijay Kumar; +Cc: LTP List

-----BEGIN PGP MESSAGE-----
Charset: ISO-8859-1
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail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zzIDJdDmcuK08n8D+9nebXGLLDYij9M
tlLqSKT8rbDq3DZS1rce+FV3aymXBNzkAVtIXo7/2Yqu9QyU29oDDgiy0M4aoocn
F4EBD7WbUT6EKTl9mq5c0Z2c11f2nR486PLJeEYsunsOfMqeh9o8NIVZNvDHA5t6
2Ap+as9/tw061PJlO1JJsGAeNsf03vx+MAiEDODWTVAFp3cJoiUDdJigvuI2oRWz
6+diDDMoOjHqioLMsylYzfIqB86Sb80KbwxBfnziDpil62mFo/QHFjKJpKJKQis/
C3PKVdSTDAD2h3atj26FhV3PiwMtY6z0ixwMnFfOGpWPmH7A2sFHOvkqgs2AXKNf
45aJ1+Dy/DVs7pu/pOyxWhmoXHDqveUCEDBTfRD7R0DNvvThrC9RT2t/1Lu19ZQL
hCz3MjUIVS2T5xVByd1qI6vWTq6RjaKI6l44RDVQ04Nj0cDIMJ8wT29mWYUPC1U0
5DbZlnd7YfQj7qqrgROdZyh228GkXdhhGAB3n0KyExZn3fzgZP1s6lCZ3f3VKUE+
4+4VqMIB0WHc0NNe+9fknesL6kyeLHSYRx/IwhR+IsU6UqYODFLQACOux5AzFlSE
GzDKts6zjO8osmJatt3USTqVEqgidnHa03wlU0K0ueV21KYH+mGr/LC2KoZePg2M
cEn9YAOASalv4Gn9/Dj8eSFwOth3WBYdbCHXv/tDnKSF21QcWboHhm0kCCT8OJWR
rMjkhHVJ0bxlAfvUVmSDJqZY5qWGEVOViWjFFNH9sFpGTGVXHMCsXJ7MwiG3QqZF
ZT/GzeqtRQgFlvVjZJdIgk1ryIzAbrZbxRdttptQWyH1/xbFkCKdDn+gRjmaJaW2
AJZB60+GBydVsIzz3xZm
=+RLW
-----END PGP MESSAGE-----

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [RFC] Using checkpatch.pl
  2009-06-15  2:38 ` Garrett Cooper
@ 2009-06-15  7:17   ` Mike Frysinger
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2009-06-15  7:17 UTC (permalink / raw)
  To: Garrett Cooper; +Cc: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]

On Sunday 14 June 2009 22:38:19 Garrett Cooper wrote:
> -----BEGIN PGP MESSAGE-----
> Charset: ISO-8859-1
> Version: GnuPG v2.0.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> hQIOA5OwxKigUnCpEAf+OF67wA6dR9skcNJZF15Z50C5w+e5lumGihLbP4lGx2W/

looks like you hit the wrong key ...
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 332 bytes --]

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [RFC] Using checkpatch.pl
  2009-06-14 16:33 [LTP] [RFC] Using checkpatch.pl Vijay Kumar
  2009-06-15  2:38 ` Garrett Cooper
@ 2009-06-18 17:31 ` Subrata Modak
  2009-06-30  7:41   ` Subrata Modak
  1 sibling, 1 reply; 6+ messages in thread
From: Subrata Modak @ 2009-06-18 17:31 UTC (permalink / raw)
  To: Vijay Kumar; +Cc: LTP List

Send across a patch:
1) adding checkpatch.pl to LTP,
2) those instructions/future suggestions you have mentioned, update the
same in README.

Also remember to send patches against it in future when checkpatch.pl is
updated in the kernel tree itself.

Regards--
Subrata

On Sun, 2009-06-14 at 22:03 +0530, Vijay Kumar wrote: 
> Hi everyone,
> Michal Simek patched most of the LTP code base to use the Linux kernel
> coding style. But unfortunately new patches, that are flowing in, seem
> to add coding style violations. It is better to prevent new style
> violations than to fix them later on.
> 
> The kernel developers use a perl script called checkpatch.pl to
> identify style violations in patches. We could use the same script to
> check our patches, as well. The script uses files from the kernel to
> do kernel specific checks. This can be disabled by using the --no-tree
> option. So to check an LTP patch
> 
> $ checkpatch.pl --no-tree ltp-patch
> 
> If everybody is OK with it we can add the script to the LTP source
> tree, so that everyone checks their patches against the same
> script. And Subrata can easily check for style violations before
> merging the patch.
> 
> In the future, we could also customize the script to do userspace/LTP
> specific checks, like missing mode argument when open() is invoked
> with O_CREAT flag.
> 
> Please do send in your suggestions.
> 
> Regards,
> Vijay
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [RFC] Using checkpatch.pl
  2009-06-18 17:31 ` Subrata Modak
@ 2009-06-30  7:41   ` Subrata Modak
  2009-06-30  8:37     ` Vijay Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Subrata Modak @ 2009-06-30  7:41 UTC (permalink / raw)
  To: Vijay Kumar; +Cc: LTP List

Vijay,

Are you working on such a patch ?

Regards--
Subrata

On Thu, 2009-06-18 at 23:01 +0530, Subrata Modak wrote: 
> Send across a patch:
> 1) adding checkpatch.pl to LTP,
> 2) those instructions/future suggestions you have mentioned, update the
> same in README.
> 
> Also remember to send patches against it in future when checkpatch.pl is
> updated in the kernel tree itself.
> 
> Regards--
> Subrata
> 
> On Sun, 2009-06-14 at 22:03 +0530, Vijay Kumar wrote: 
> > Hi everyone,
> > Michal Simek patched most of the LTP code base to use the Linux kernel
> > coding style. But unfortunately new patches, that are flowing in, seem
> > to add coding style violations. It is better to prevent new style
> > violations than to fix them later on.
> > 
> > The kernel developers use a perl script called checkpatch.pl to
> > identify style violations in patches. We could use the same script to
> > check our patches, as well. The script uses files from the kernel to
> > do kernel specific checks. This can be disabled by using the --no-tree
> > option. So to check an LTP patch
> > 
> > $ checkpatch.pl --no-tree ltp-patch
> > 
> > If everybody is OK with it we can add the script to the LTP source
> > tree, so that everyone checks their patches against the same
> > script. And Subrata can easily check for style violations before
> > merging the patch.
> > 
> > In the future, we could also customize the script to do userspace/LTP
> > specific checks, like missing mode argument when open() is invoked
> > with O_CREAT flag.
> > 
> > Please do send in your suggestions.
> > 
> > Regards,
> > Vijay
> > 
> > ------------------------------------------------------------------------------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing 
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > Ltp-list mailing list
> > Ltp-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [RFC] Using checkpatch.pl
  2009-06-30  7:41   ` Subrata Modak
@ 2009-06-30  8:37     ` Vijay Kumar
  0 siblings, 0 replies; 6+ messages in thread
From: Vijay Kumar @ 2009-06-30  8:37 UTC (permalink / raw)
  To: subrata; +Cc: LTP List

Subrata Modak wrote:
> Vijay,
> 
> Are you working on such a patch ?

It is probably straight forward. But I am occupied with other things, I will send a patch this weekend.

Regards,
Vijay

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2009-06-30  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-14 16:33 [LTP] [RFC] Using checkpatch.pl Vijay Kumar
2009-06-15  2:38 ` Garrett Cooper
2009-06-15  7:17   ` Mike Frysinger
2009-06-18 17:31 ` Subrata Modak
2009-06-30  7:41   ` Subrata Modak
2009-06-30  8:37     ` Vijay Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox