Re: [PATCH] Chinese translated version of Documentation/stable_api_nonsense.txt

2007-06-20 Thread WANG Cong
] Regards! WANG Cong - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-21 Thread WANG Cong
more Chinese to contribute to Linux kernel. Signed-off-by: Li Yang [EMAIL PROTECTED] Signed-off-by: TripleX Chung [EMAIL PROTECTED] Signed-off-by: Maggie Chen [EMAIL PROTECTED] Signed-off-by: WANG Cong [EMAIL PROTECTED] --- Address comments from Wang Cong. Documentation/zh_CN/HOWTO | 536

Re: [PATCH] Chinese translation of Documentation/stable_api_nonsense.txt

2007-06-21 Thread WANG Cong
-by: WANG Cong [EMAIL PROTECTED] Thanks! Looks nice this time. Er, you forgot your signed-off-by? - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-21 Thread WANG Cong
describes and explains the non-technical things needed by Linux kernel will help them _much_ to join the development soon. Also, IMO, a translation shows Linux kernel is friendly and open to people from all over the world. Regards! WANG Cong - To unsubscribe from this list: send the line

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-22 Thread WANG Cong
in HTML format), and I'll put 'em up. (I've already got the one that started this thread.) Thanks, Please also send a copy of HTML format to me, I will put them to http://www.kerneltravel.net (A Chinese website about Linux kernel). Thanks! WANG Cong - To unsubscribe from this list: send the line

Re: [PATCH 23/36] drivers edac Lindent amd76x driver

2007-06-03 Thread WANG Cong
a label. I think this should be fixed manually. And it seems that there shouldn't be any spaces before the label 'fail' in this context. Regards! WANG Cong - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info

[RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-03 Thread WANG Cong
in CodingStyle. And it is against -rc3 source tree. Any advice or comments are more than welcome! Regards! Signed-off-by: WANG Cong [EMAIL PROTECTED] --- CodingStyle |6 ++ 1 file changed, 6 insertions(+) --- linux-2.6.22-rc3/Documentation/CodingStyle.orig 2007-06-03 21:28

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-03 Thread WANG Cong
On Sun, Jun 03, 2007 at 11:35:43AM -0400, Jeff Garzik wrote: Randy Dunlap wrote: On Sun, 3 Jun 2007 15:29:39 +0100 Al Viro wrote: On Sun, Jun 03, 2007 at 10:24:50PM +0800, WANG Cong wrote: +Do care when you use Lindent to indent your code, since it may use spaces +instead of tabs before

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-04 Thread WANG Cong
On Sun, Jun 03, 2007 at 11:59:26PM -0700, Jeremy Fitzhardinge wrote: WANG Cong wrote: I just wonder, if a goto label is nested in a while/for/if/switch block, aligning it in the first column maybe a bit ugly. (I know mostly it is not in any while/for/if/switch block.) In general goto

[RFC] Documentation/CodingStyle: Add rules for goto labels (-v2)

2007-06-04 Thread WANG Cong
Viro, Randy Dunlap, Jeff Garzik and Jeremy Fitzhardinge for their comments! Regards! Signed-off-by: WANG Cong [EMAIL PROTECTED] --- CodingStyle |7 +++ 1 file changed, 7 insertions(+) --- linux-2.6.22-rc3/Documentation/CodingStyle.orig 2007-06-04 15:53:58.0 +0800 +++ linux

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels (-v2)

2007-06-04 Thread WANG Cong
On Mon, Jun 04, 2007 at 12:02:28PM -0700, Jeremy Fitzhardinge wrote: Sam Ravnborg wrote: If local(__label__) really so widely used in the kernel that it deserves a place in coding-style? A quick grep did not say so. Probably not, and its use shouldn't be (even tacitly) encouraged. It's

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-04 Thread WANG Cong
On Mon, Jun 04, 2007 at 01:57:51PM -0400, Jeff Garzik wrote: On Mon, Jun 04, 2007 at 10:43:51AM -0700, H. Peter Anvin wrote: Jan Engelhardt wrote: On Jun 4 2007 10:27, H. Peter Anvin wrote: Jeff Garzik wrote: Seconded. All my code contains the goto label in the first column. IMO any

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-05 Thread WANG Cong
On Mon, Jun 04, 2007 at 07:31:27PM -0700, H. Peter Anvin wrote: Jeff Garzik wrote: So, it seems that we can reach an agreement. Any other comments or suggestions? Or can someone ack/merge this patch? Honestly, I think not reaching an agreement is a good thing. style is always ultimately

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-05 Thread WANG Cong
On Tue, Jun 05, 2007 at 11:16:13AM +0200, Rene Herman wrote: On 06/05/2007 04:10 AM, WANG Cong wrote: On Mon, Jun 04, 2007 at 01:57:51PM -0400, Jeff Garzik wrote: A matter of opinion :) I tend to think goto is special enough to warrant column 1 unconditionally. It is special, so it draws

Re: 2.6.22-rc4-mm1

2007-06-06 Thread WANG Cong
#includes a head file named ../../include/linux/lguest_launcher.h. Since mlguest.c is in the top dir, so where is ../../include/linux/lguest_launcher.h? Regards! WANG Cong - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: 2.6.22-rc4-mm1

2007-06-06 Thread WANG Cong
On Wed, Jun 06, 2007 at 11:09:31AM -0700, Andrew Morton wrote: On Thu, 7 Jun 2007 00:19:36 +0800 WANG Cong [EMAIL PROTECTED] wrote: On Wed, Jun 06, 2007 at 02:07:37AM -0700, Andrew Morton wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc4/2.6.22-rc4-mm1

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 12:59:13AM -0500, Matt Mackall wrote: On Thu, Jun 07, 2007 at 10:26:09AM +0800, WANG Cong wrote: On Wed, Jun 06, 2007 at 11:09:31AM -0700, Andrew Morton wrote: On Thu, 7 Jun 2007 00:19:36 +0800 WANG Cong [EMAIL PROTECTED] wrote: On Wed, Jun 06, 2007 at 02:07:37AM

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 09:04:44AM -0500, Matt Mackall wrote: On Thu, Jun 07, 2007 at 02:51:58PM +0800, WANG Cong wrote: Maybe there's something wrong with ketchup. ;( Can you do an 'lsdiff | grep lguest' on the patch in your ~/.ketchup directory? Ketchup simply applies patches, it never

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 10:59:14AM -0500, Matt Mackall wrote: On Thu, Jun 07, 2007 at 11:40:08PM +0800, WANG Cong wrote: On Thu, Jun 07, 2007 at 09:04:44AM -0500, Matt Mackall wrote: On Thu, Jun 07, 2007 at 02:51:58PM +0800, WANG Cong wrote: Maybe there's something wrong with ketchup

[-mm Patch] INFINIBAND: check the return value of kmalloc

2007-07-04 Thread WANG Cong
Don't forget to check the return value of kmalloc(). Signed-off-by: WANG Cong [EMAIL PROTECTED] --- Index: linux-2.6.22-rc6-mm1/drivers/infiniband/hw/cxgb3/iwch_provider.c === --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c

Re: [RFC 2/5] inode reservation v0.1 (ext4 kernel patch)

2007-05-24 Thread WANG Cong
On Thu, May 24, 2007 at 06:26:26PM +0200, Jan Engelhardt wrote: On May 24 2007 22:47, coly wrote: Dave, Yes, I found all TABs gone when I received the mail. When I post next version of the patch, I will test to send to me first :-) Thanks for your information. Blame Gmail. Jan I am

Re: [PATCH 1/2] UDF: coding style conversion - lindent

2007-05-28 Thread WANG Cong
On Mon, May 28, 2007 at 06:30:38PM +0400, Cyrill Gorcunov wrote: This patch converts UDF coding style to kernel coding style using Lindent. Signed-off-by: Cyrill Gorcunov [EMAIL PROTECTED] --- fs/udf/balloc.c| 709 --- fs/udf/crc.c | 19 +- fs/udf/dir.c |

Re: Patch Related with Fork Bombing Attack

2007-07-14 Thread WANG Cong
On Fri, Jul 13, 2007 at 06:09:02PM +0530, Anand Jahagirdar wrote: Hello All {snip} Index: root/Desktop/a1/linux-2.6.17.tar.bz2_FILES/linux-2.6.17/kernel/fork.c === ---

[Patch] fs/romfs/inode.c: trivial improvements

2007-07-18 Thread WANG Cong
1. There's no lists in fs/romfs/inode.c, so using list_entry is a bit confusing. Replace it with container_of. 2. It is unnecessary to cast the return value of kmem_cache_alloc, since it returns a void* pointer. This patch is against 2.6.22.1. Signed-off-by: WANG Cong [EMAIL PROTECTED

Re: [PATCH 3/5] HOWTO: add Chinese translation of Documentation/HOWTO

2007-07-18 Thread WANG Cong
to its largest population base. Language could be the main obstacle. Hope this document will help more Chinese to contribute to Linux kernel. Signed-off-by: Li Yang [EMAIL PROTECTED] Signed-off-by: TripleX Chung [EMAIL PROTECTED] Signed-off-by: Maggie Chen [EMAIL PROTECTED] Signed-off-by: WANG Cong

Re: __must_check (stir the pot :-))

2007-05-15 Thread WANG Cong
noticed these warnings yet and had tried to fix them. But these ones are not relatively easy to fix, since they are nested in some complex contexts. Can we leave this job to Greg? (Add some CCs below.) CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Regards! WANG Cong - To unsubscribe from

Re: 2.6.22-rc2 built on ppc (3)

2007-05-20 Thread WANG Cong
=11762433536w=2 CC: Andrew Morton [EMAIL PROTECTED] CC: Cornelia Huck [EMAIL PROTECTED] Regards! WANG Cong - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: 2.6.22-rc2 built on ppc (3)

2007-05-20 Thread WANG Cong
On Sun, May 20, 2007 at 05:49:06PM +0200, Elimar Riesebieter wrote: On Sun, 20 May 2007 the mental interface of WANG Cong told: On Sun, May 20, 2007 at 01:11:13PM +0200, Elimar Riesebieter wrote: Hi, FYI, building the kernel with gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7) on my

Re: arch/i386/boot rewrite, and all the hard-coded video cards

2007-04-30 Thread WANG Cong
On Mon, Apr 30, 2007 at 06:33:09PM -0700, H. Peter Anvin wrote: Hi all, I'm rewriting the i386 setup code in C, instead of assembly, and before I spend a very large amount of time translating all the various card-specific probes, I want to ask the following question... Does *anyone* care about

Re: [patch 01/10] compiler: define __attribute_unused__

2007-05-02 Thread WANG Cong
On Tue, May 01, 2007 at 10:53:52PM -0700, David Rientjes wrote: On Wed, 2 May 2007, Alexey Dobriyan wrote: On Tue, May 01, 2007 at 09:28:18PM -0700, David Rientjes wrote: +#define __attribute_unused__ __attribute__((unused)) Suggest __unused which is shorter and looks

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
Hi Rusty! I found you forgot to check the return value of copy_from_user, and here is the fix for drivers/lguest/interrupts_and_traps.c. Signed-off-by: WANG Cong [EMAIL PROTECTED] --- --- linux-2.6.21-rc7-mm2/drivers/lguest/interrupts_and_traps.c.orig 2007-05-03 03:10:44.0 +0800

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 03:33:03AM +0800, WANG Cong wrote: Hi Rusty! I found you forgot to check the return value of copy_from_user, and here is the fix for drivers/lguest/interrupts_and_traps.c. Also this one, in drivers/lguest/hypercalls.c. Signed-off-by: WANG Cong [EMAIL PROTECTED

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 09:00:48AM +1000, Rusty Russell wrote: On Thu, 2007-05-03 at 03:33 +0800, WANG Cong wrote: Hi Rusty! I found you forgot to check the return value of copy_from_user, and here is the fix for drivers/lguest/interrupts_and_traps.c. Signed-off-by: WANG Cong [EMAIL

[Patch][SIS USB2VGA] Warning fix

2007-05-02 Thread WANG Cong
Fix this warning: drivers/usb/misc/sisusbvga/sisusb_con.c:1436: warning: initialization from incompatible pointer type Signed-off-by: WANG Cong [EMAIL PROTECTED] --- Compiling test past.;) --- linux-2.6.21-rc7-mm2/drivers/usb/misc/sisusbvga/sisusb_con.c.orig 2007-05-03 02:51:06.0

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 02:20:32PM +1000, Rusty Russell wrote: On Thu, 2007-05-03 at 11:57 +0800, WANG Cong wrote: On Thu, May 03, 2007 at 09:00:48AM +1000, Rusty Russell wrote: Thanks for the patch. This omission (in several places) was deliberate. We can't really do anything sensible

Re: [-mm Patch]nbd: check the return value of sysfs_create_file

2007-05-04 Thread WANG Cong
On Thu, May 03, 2007 at 11:14:50PM -0700, Andrew Morton wrote: On Sat, 28 Apr 2007 13:30:23 +0800 WANG Cong [EMAIL PROTECTED] wrote: Since 'sysfs_create_file' is declared with attribute warn_unused_result, we must always check its return value carefully. Well that's not really the reason

Re: c 's OOP in VFS vs c++'s OOP

2007-05-04 Thread WANG Cong
On Fri, May 04, 2007 at 01:40:04PM +0200, Jan Engelhardt wrote: On May 4 2007 19:00, la deng wrote: What's you think about it? C gives you the power to control nearly everything. You can, of course, control the registers via inserting assembly code. That's not the fault of C. I think the

Re: c 's OOP in VFS vs c++'s OOP

2007-05-04 Thread WANG Cong
On Fri, May 04, 2007 at 09:53:34PM +0800, la deng wrote: On 5/4/07, WANG Cong [EMAIL PROTECTED] wrote: On Fri, May 04, 2007 at 01:40:04PM +0200, Jan Engelhardt wrote: On May 4 2007 19:00, la deng wrote: C gives you the power to control nearly everything. You can, of course, control

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-04 Thread WANG Cong
On Mon, Apr 02, 2007 at 01:01:28PM +0200, Cornelia Huck wrote: >On Sun, 1 Apr 2007 15:32:34 +0800, >"Cong WANG" <[EMAIL PROTECTED]> wrote: > >> --- linux-2.6.21-rc5-mm3/fs/partitions/check.c.orig 2007-03-30 >> 21:35:45.0 +0800 >> +++ linux-2.6.21-rc5-mm3/fs/partitions/check.c

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-05 Thread WANG Cong
On Thu, Apr 05, 2007 at 11:11:42AM +0200, Cornelia Huck wrote: >On Thu, 5 Apr 2007 12:54:11 +0800, >WANG Cong <[EMAIL PROTECTED]> wrote: > >> --- linux-2.6.21-rc5-mm3/fs/partitions/check.c.orig 2007-03-30 >> 21:35:45.0 +0800 >> +++ linux-2.6.21-rc5-mm3/fs

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-05 Thread WANG Cong
On Thu, Apr 05, 2007 at 05:05:14PM +0200, Cornelia Huck wrote: >On Thu, 5 Apr 2007 22:44:09 +0800, >WANG Cong <[EMAIL PROTECTED]> wrote: > >> On Thu, Apr 05, 2007 at 11:11:42AM +0200, Cornelia Huck wrote: >> >On Thu, 5 Apr 2007 12:54:11 +0800, >>

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-05 Thread WANG Cong
On Thu, Apr 05, 2007 at 06:00:16PM +0200, Cornelia Huck wrote: >On Thu, 5 Apr 2007 23:27:32 +0800, >WANG Cong <[EMAIL PROTECTED]> wrote: > >> Thank you very much! I know. So I should replace all kfree with kobject_put, >> like this one: >> >> -sys

Re: set up new kernel with grub

2007-04-05 Thread WANG Cong
On Thu, Apr 05, 2007 at 12:28:03PM -0500, Michael wrote: >Hi, Dick, > >Your steps work beautifully. Thanks. > >If you could explain a little about what happens in each step, that >would be even better. > >> # cd /usr/src/linux-2.6.20.3 >> If your current kernel is 2.6.20.3, edit the Makefile to

Re: set up new kernel with grub

2007-04-06 Thread WANG Cong
On Fri, Apr 06, 2007 at 09:23:38AM -0500, Michael wrote: >Hi, Wang, > >Thanks for replying. So which step is doing the compilation of each >module , "make oldconfig" or "make" ? For compilation, I mean the step >to compile the source code to .o file. > >Regards, > >Mike > 'Make' does that.

Re: [PATCH] trivial: the memset operation on a automatic array variable should be optimized out by data initialization

2007-06-18 Thread WANG Cong
On Mon, Jun 18, 2007 at 06:25:17AM -0400, Robert P. J. Day wrote: >On Mon, 18 Jun 2007, Denis Cheng wrote: > >> From: Denis Cheng <[EMAIL PROTECTED]> >> >> the explicit memset call could be optimized out by data initialization, >> thus all the fill working can be done by the compiler implicitly.

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-19 Thread WANG Cong
On Tue, Jun 19, 2007 at 10:21:03PM +0800, Li Yang wrote: >This is a Chinese translated version of Documentation/HOWTO. Currently >Chinese involvement in Linux kernel is very low, especially comparing to >its largest population base. Language could be the main obstacle. Hope >this document will

Re: MAINTAINERS file out of date?

2007-04-26 Thread WANG Cong
On Thu, Apr 26, 2007 at 04:13:01PM -0700, H. Peter Anvin wrote: >Michael McConnell wrote: >> Hi folks, >> >> I noticed the MAINTAINERS file still lists Riley Williams as the >> maintainer of the i386 boot code, presumably as no-one else has taken it >> up in his absence (though, I'm sure it's

Re: MAINTAINERS file out of date?

2007-04-26 Thread WANG Cong
On Thu, Apr 26, 2007 at 06:12:43PM -0700, H. Peter Anvin wrote: >WANG Cong wrote: >>> >>> I have considered myself as a rather unofficial maintainer of this code, >>> and wouldn't mind make it official now when I actually have a job which >>> both cares abo

Re: MAINTAINERS file out of date?

2007-04-27 Thread WANG Cong
On Thu, Apr 26, 2007 at 10:27:47PM -0700, H. Peter Anvin wrote: >Eric W. Biederman wrote: >> "H. Peter Anvin" <[EMAIL PROTECTED]> writes: >> >>> A lot of that code (although, of course, not all) could be written in C, >>> though. I'm thinking of taking a stab at rewriting it that way. >> >> Is

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-10 Thread WANG Cong
On Tue, Apr 10, 2007 at 02:31:06PM +0200, Cornelia Huck wrote: >On Fri, 6 Apr 2007 10:53:43 +0800, >WANG Cong <[EMAIL PROTECTED]> wrote: > >> OK. Then I send it again. Hopefully it can be accepted this time. ;-p > >Looks sane. (Note that there is still a pathologi

Re: [PATCH] Add spaces on either side of case "..." operator.

2007-04-10 Thread WANG Cong
On Tue, Apr 10, 2007 at 07:23:35AM -0400, Robert P. J. Day wrote: > >Following the programming advice laid down in the gcc manual, make >sure the case "..." operator has spaces on either side. > >Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > Ack

Re: [-mm3 PATCH] (Retry) Check the return value of kobject_add and etc.

2007-04-11 Thread WANG Cong
On Tue, Apr 10, 2007 at 03:18:15PM -0700, Andrew Morton wrote: >On Tue, 10 Apr 2007 22:08:29 +0800 >WANG Cong <[EMAIL PROTECTED]> wrote: > >> Since kobject_add, sysfs_create_link and sysfs_create_file are marked as >> '__must_check', we must always check their return

Re: [-mm3 patch]Warning fix: check the return value of kobject_add etc.

2007-04-11 Thread WANG Cong
On Wed, Apr 11, 2007 at 02:23:49PM +0800, Fengguang Wu wrote: >On Sun, Apr 01, 2007 at 02:20:46PM +0800, Cong WANG wrote: >> 2007/4/1, Andrew Morton <[EMAIL PROTECTED]>: >> > >> >Also, please always prepare patches in `patch -p1' form, as per >>

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-03 Thread WANG Cong
On Sun, Jun 03, 2007 at 11:35:43AM -0400, Jeff Garzik wrote: >Randy Dunlap wrote: >>On Sun, 3 Jun 2007 15:29:39 +0100 Al Viro wrote: >> >>>On Sun, Jun 03, 2007 at 10:24:50PM +0800, WANG Cong wrote: >>> >>>>+Do care when you use Lindent to i

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-04 Thread WANG Cong
On Sun, Jun 03, 2007 at 11:59:26PM -0700, Jeremy Fitzhardinge wrote: >WANG Cong wrote: >> I just wonder, if a goto label is nested in a while/for/if/switch block, >> aligning it in >> the first column maybe a bit ugly. (I know mostly it is not in any >>

[RFC] Documentation/CodingStyle: Add rules for goto labels (-v2)

2007-06-04 Thread WANG Cong
Viro, Randy Dunlap, Jeff Garzik and Jeremy Fitzhardinge for their comments! Regards! Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- CodingStyle |7 +++ 1 file changed, 7 insertions(+) --- linux-2.6.22-rc3/Documentation/CodingStyle.orig 2007-06-04 15:53:58.0

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels (-v2)

2007-06-04 Thread WANG Cong
On Mon, Jun 04, 2007 at 12:02:28PM -0700, Jeremy Fitzhardinge wrote: >Sam Ravnborg wrote: >> If local(__label__) really so widely used in the kernel that it deserves >> a place in coding-style? >> A quick grep did not say so. >> > >Probably not, and its use shouldn't be (even tacitly)

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-04 Thread WANG Cong
On Mon, Jun 04, 2007 at 01:57:51PM -0400, Jeff Garzik wrote: >On Mon, Jun 04, 2007 at 10:43:51AM -0700, H. Peter Anvin wrote: >> Jan Engelhardt wrote: >> > On Jun 4 2007 10:27, H. Peter Anvin wrote: >> >> Jeff Garzik wrote: >> >>> Seconded. All my code contains the goto label in the first column.

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-05 Thread WANG Cong
On Mon, Jun 04, 2007 at 07:31:27PM -0700, H. Peter Anvin wrote: >Jeff Garzik wrote: >>> >>> So, it seems that we can reach an agreement. Any other comments or >>> suggestions? >>> Or can someone ack/merge this patch? >> >> Honestly, I think not reaching an agreement is a good thing. >> >>

Re: [RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-05 Thread WANG Cong
On Tue, Jun 05, 2007 at 11:16:13AM +0200, Rene Herman wrote: >On 06/05/2007 04:10 AM, WANG Cong wrote: > >>On Mon, Jun 04, 2007 at 01:57:51PM -0400, Jeff Garzik wrote: > >>>A matter of opinion :) I tend to think goto is special enough to >>>warrant column 1 un

Re: 2.6.22-rc4-mm1

2007-06-06 Thread WANG Cong
Second, mlguest.c #includes a head file named "../../include/linux/lguest_launcher.h". Since mlguest.c is in the top dir, so where is ../../include/linux/lguest_launcher.h? Regards! WANG Cong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: 2.6.22-rc4-mm1

2007-06-06 Thread WANG Cong
On Wed, Jun 06, 2007 at 11:09:31AM -0700, Andrew Morton wrote: >On Thu, 7 Jun 2007 00:19:36 +0800 WANG Cong <[EMAIL PROTECTED]> wrote: > >> On Wed, Jun 06, 2007 at 02:07:37AM -0700, Andrew Morton wrote: >> > >> >ftp://ftp.kernel.org/pub/linux/kernel/people/ak

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 12:59:13AM -0500, Matt Mackall wrote: >On Thu, Jun 07, 2007 at 10:26:09AM +0800, WANG Cong wrote: >> On Wed, Jun 06, 2007 at 11:09:31AM -0700, Andrew Morton wrote: >> >On Thu, 7 Jun 2007 00:19:36 +0800 WANG Cong <[EMAIL PROTECTED]> wrote: >>

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 09:04:44AM -0500, Matt Mackall wrote: >On Thu, Jun 07, 2007 at 02:51:58PM +0800, WANG Cong wrote: >> >> Maybe there's something wrong with ketchup. ;( >> > >> >Can you do an 'lsdiff | grep lguest' on the patch in your ~/.ketchup >&

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 10:59:14AM -0500, Matt Mackall wrote: >On Thu, Jun 07, 2007 at 11:40:08PM +0800, WANG Cong wrote: >> On Thu, Jun 07, 2007 at 09:04:44AM -0500, Matt Mackall wrote: >> >On Thu, Jun 07, 2007 at 02:51:58PM +0800, WANG Cong wrote: >> >> &g

Re: 2.6.22-rc4-mm1

2007-06-07 Thread WANG Cong
On Thu, Jun 07, 2007 at 11:59:16AM -0500, Matt Mackall wrote: >On Fri, Jun 08, 2007 at 12:39:30AM +0800, WANG Cong wrote: >> >Ketchup doesn't even look inside patches, and patch doesn't invent >> >names, so something in the bzip2 -> patch(1) -> filesystem chain

Re: 2.6.22-rc2 built on ppc (3)

2007-05-20 Thread WANG Cong
. Could you please check and try this patch? http://marc.info/?l=linux-mm-commits=11762433536=2 CC: Andrew Morton <[EMAIL PROTECTED]> CC: Cornelia Huck <[EMAIL PROTECTED]> Regards! WANG Cong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: 2.6.22-rc2 built on ppc (3)

2007-05-20 Thread WANG Cong
On Sun, May 20, 2007 at 05:49:06PM +0200, Elimar Riesebieter wrote: >On Sun, 20 May 2007 the mental interface of >WANG Cong told: > >> On Sun, May 20, 2007 at 01:11:13PM +0200, Elimar Riesebieter wrote: >> >Hi, >> > >> >FYI, building the kernel wit

Re: [RFC 2/5] inode reservation v0.1 (ext4 kernel patch)

2007-05-24 Thread WANG Cong
On Thu, May 24, 2007 at 06:26:26PM +0200, Jan Engelhardt wrote: > >On May 24 2007 22:47, coly wrote: >> >>Dave, >> >>Yes, I found all TABs gone when I received the mail. When I post next >>version of the patch, I will test to send to me first :-) >> >>Thanks for your information. > >Blame Gmail. >

Re: [PATCH 1/2] UDF: coding style conversion - lindent

2007-05-28 Thread WANG Cong
On Mon, May 28, 2007 at 06:30:38PM +0400, Cyrill Gorcunov wrote: >This patch converts UDF coding style to kernel >coding style using Lindent. > >Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> >--- > > fs/udf/balloc.c| 709 --- > fs/udf/crc.c | 19 +- >

Re: [PATCH 23/36] drivers edac Lindent amd76x driver

2007-06-03 Thread WANG Cong
if (edac_mc_add_mc(mci,0)) { >+ if (edac_mc_add_mc(mci, 0)) { > debugf3("%s(): failed edac_mc_add_mc()\n", __func__); > goto fail; > } >@@ -272,14 +270,14 @@ static int amd76x_probe1(struct pci_dev > debugf3("%s(): success\n", __func__); > return 0; > >-fail: >+ fail: > edac_mc_free(mci); > return -ENODEV; > } > I wonder whether Lindent is always use whitespaces, not tabs, before a label. I think this should be fixed manually. And it seems that there shouldn't be any spaces before the label 'fail' in this context. Regards! WANG Cong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC] Documentation/CodingStyle: Add rules for goto labels

2007-06-03 Thread WANG Cong
in CodingStyle. And it is against -rc3 source tree. Any advice or comments are more than welcome! Regards! Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- CodingStyle |6 ++ 1 file changed, 6 insertions(+) --- linux-2.6.22-rc3/Documentation/CodingStyle.orig 2007-06-03

Re: __must_check (stir the pot :-))

2007-05-15 Thread WANG Cong
Can we care if the core infrastructure doesn't >propogate the error returns? > >Flame away, I am prepared to ignore all opinions :-) Hi! I had noticed these warnings yet and had tried to fix them. But these ones are not relatively easy to fix, since they are nested in some complex contexts.

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
Hi Rusty! I found you forgot to check the return value of copy_from_user, and here is the fix for drivers/lguest/interrupts_and_traps.c. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- --- linux-2.6.21-rc7-mm2/drivers/lguest/interrupts_and_traps.c.orig 2007-05-03 03:10:44.000

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 03:33:03AM +0800, WANG Cong wrote: >Hi Rusty! > >I found you forgot to check the return value of copy_from_user, and here is >the fix for drivers/lguest/interrupts_and_traps.c. > Also this one, in drivers/lguest/hypercalls.c. Signed-off-by: WANG Cong &l

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 09:00:48AM +1000, Rusty Russell wrote: >On Thu, 2007-05-03 at 03:33 +0800, WANG Cong wrote: >> Hi Rusty! >> >> I found you forgot to check the return value of copy_from_user, and >> here is the fix for drivers/lguest/interrupts_and_traps.c. >

[Patch][SIS USB2VGA] Warning fix

2007-05-02 Thread WANG Cong
Fix this warning: drivers/usb/misc/sisusbvga/sisusb_con.c:1436: warning: initialization from incompatible pointer type Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Compiling test past.;) --- linux-2.6.21-rc7-mm2/drivers/usb/misc/sisusbvga/sisusb_con.c.orig 2007-05-03

Re: [RELEASE] Lguest for 2.6.21

2007-05-02 Thread WANG Cong
On Thu, May 03, 2007 at 02:20:32PM +1000, Rusty Russell wrote: >On Thu, 2007-05-03 at 11:57 +0800, WANG Cong wrote: >> On Thu, May 03, 2007 at 09:00:48AM +1000, Rusty Russell wrote: >> >Thanks for the patch. This omission (in several places) was >> >deliberate.

Re: [-mm Patch]nbd: check the return value of sysfs_create_file

2007-05-04 Thread WANG Cong
On Thu, May 03, 2007 at 11:14:50PM -0700, Andrew Morton wrote: >On Sat, 28 Apr 2007 13:30:23 +0800 WANG Cong <[EMAIL PROTECTED]> wrote: > >> Since 'sysfs_create_file' is declared with attribute warn_unused_result, we >> must always check its return value carefully. >&

Re: c 's OOP in VFS vs c++'s OOP

2007-05-04 Thread WANG Cong
On Fri, May 04, 2007 at 01:40:04PM +0200, Jan Engelhardt wrote: > >On May 4 2007 19:00, la deng wrote: >> >> What's you think about it? C gives you the power to control nearly everything. You can, of course, control the registers via inserting assembly code. That's not the fault of C. > >I

Re: c 's OOP in VFS vs c++'s OOP

2007-05-04 Thread WANG Cong
On Fri, May 04, 2007 at 09:53:34PM +0800, la deng wrote: >On 5/4/07, WANG Cong <[EMAIL PROTECTED]> wrote: >>On Fri, May 04, 2007 at 01:40:04PM +0200, Jan Engelhardt wrote: >>> >>>On May 4 2007 19:00, la deng wrote: >>>> >>>> >>

[-mm Patch]nbd: check the return value of sysfs_create_file

2007-04-27 Thread WANG Cong
Since 'sysfs_create_file' is declared with attribute warn_unused_result, we must always check its return value carefully. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- --- linux-2.6.21-rc7-mm2/drivers/block/nbd.c.orig 2007-04-27 17:27:47.0 +0800 +++ linux-2.6.21-r

Re: can a kmalloc be both GFP_ATOMIC and GFP_KERNEL at the same time?

2007-04-28 Thread WANG Cong
On Sat, Apr 28, 2007 at 08:03:42AM -0700, Arjan van de Ven wrote: > >> > >> > >> > i'd always assumed that the type flags of GFP_ATOMIC and GFP_KERNEL >> > were mutually exclusive when it came to calling kmalloc(), at least >> > based on everything i'd read. so i'm not sure how to interpret the

Re: arch/i386/boot rewrite, and all the hard-coded video cards

2007-04-30 Thread WANG Cong
On Mon, Apr 30, 2007 at 06:33:09PM -0700, H. Peter Anvin wrote: >Hi all, > >I'm rewriting the i386 setup code in C, instead of assembly, and before >I spend a very large amount of time translating all the various >card-specific probes, I want to ask the following question... > >Does *anyone* care

Re: [patch 01/10] compiler: define __attribute_unused__

2007-05-02 Thread WANG Cong
On Tue, May 01, 2007 at 10:53:52PM -0700, David Rientjes wrote: >On Wed, 2 May 2007, Alexey Dobriyan wrote: > >> On Tue, May 01, 2007 at 09:28:18PM -0700, David Rientjes wrote: >> > +#define __attribute_unused__ __attribute__((unused)) >> >> Suggest __unused which is shorter and

[Patch] drivers/mtd/maps/tqm8xxl.c: Style cleanups

2007-07-12 Thread WANG Cong
Change C++ style comments into K's. Cut long lines into pieces. This patch is against 2.6.22.1, and can be also applied to the last -mm tree. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- tqm8xxl.c | 41 + 1 file changed, 25 insertions(

[Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups

2007-07-12 Thread WANG Cong
On Thu, Jul 12, 2007 at 11:11:58AM -0500, Josh Boyer wrote: >On Thu, 2007-07-12 at 23:01 +0800, WANG Cong wrote: {snip} >> +/* trivial struct to describe partition information*/ > >Needs a space at the end. > >> struct mtd_part_def >> { >> int nums;

Re: [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups

2007-07-13 Thread WANG Cong
On Fri, Jul 13, 2007 at 10:56:42AM +0100, David Woodhouse wrote: >On Fri, 2007-07-13 at 11:48 +0800, WANG Cong wrote: >> if(map_banks[idx] == NULL) { >> ret = -ENOMEM; >> - /* FIXME: What if some MTD devices we

Re: [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups

2007-07-13 Thread WANG Cong
On Fri, Jul 13, 2007 at 03:24:43PM +0100, Ralf Baechle wrote: >On Fri, Jul 13, 2007 at 02:38:03PM +0100, David Woodhouse wrote: > >> > drivers/mtd/maps/pmcmsp-flash.c:63: error: 'ELB_1PC_EN_REG' undeclared >> > (first use in this function) >> > drivers/mtd/maps/pmcmsp-flash.c:63: error:

Re: [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups

2007-07-13 Thread WANG Cong
On Fri, Jul 13, 2007 at 03:31:29PM +0100, David Woodhouse wrote: >On Fri, 2007-07-13 at 15:24 +0100, Ralf Baechle wrote: >> +config MTD_PMC_MSP_EVM >> + tristate "CFI Flash device mapped on PMC-Sierra MSP" >> + depends on PMC_MSP && MTD_CFI >> + select MTD_PARTITIONS >> >>

Re: Patch Related with Fork Bombing Attack

2007-07-14 Thread WANG Cong
On Fri, Jul 13, 2007 at 06:09:02PM +0530, Anand Jahagirdar wrote: >Hello All {snip} >Index: root/Desktop/a1/linux-2.6.17.tar.bz2_FILES/linux-2.6.17/kernel/fork.c >=== >---

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-19 Thread WANG Cong
lly and pick up >those which are really necessary. Yes. I just give you my comments and hope you can consider them carefully. Making the final decisions is still your work. ;) Thanks! WANG Cong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH] Chinese translated version of Documentation/stable_api_nonsense.txt

2007-06-20 Thread WANG Cong
gt;+那个人修改。保证你的驱动永远都可以编译通过,并且一直工作,你几乎不需要 >+做什么事情。 >+ >+把驱动放到内核源代码树里会有很多的好处: >+ - 驱动的质量会提升,而维护成本(对原始作者来说)会下降。 >+ - 其他人会给驱动添加新特性。 >+ - 其他人会找到驱动中的bug并修复。 >+ - 其他人会在驱动中找到性能优化的机会。 >+ - 当外部的接口的改变需要修改驱动程序的时候,其他人会修改驱动程序 >+。 >+ - 不需要联系任何发行商,这个驱动会自动的随着所有的linux发布一起发 >+布。 s/的/

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-21 Thread WANG Cong
his document will help more Chinese to contribute to Linux kernel. > >Signed-off-by: Li Yang <[EMAIL PROTECTED]> >Signed-off-by: TripleX Chung <[EMAIL PROTECTED]> >Signed-off-by: Maggie Chen <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> >--

Re: [PATCH] Chinese translation of Documentation/stable_api_nonsense.txt

2007-06-21 Thread WANG Cong
b/Documentation/zh_CN/stable_api_nonsense.txt Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Thanks! Looks nice this time. Er, you forgot your signed-off-by? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTEC

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-21 Thread WANG Cong
document which describes and explains the non-technical things needed by Linux kernel will help them _much_ to join the development soon. Also, IMO, a translation shows Linux kernel is friendly and open to people from all over the world. Regards! WANG Cong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] Chinese translation of Documentation/HOWTO

2007-06-22 Thread WANG Cong
ically http://kernel.org/doc (and >I'll be completely redoing it as soon as I've recovered from my recent laptop >crash and OLS). > >Send me translations (preferably in HTML format), and I'll put 'em up. (I've >already got the one that started this thread.) > >Thanks, >

[Patch] fs/romfs/inode.c: trivial improvements

2007-07-18 Thread WANG Cong
1. There's no lists in fs/romfs/inode.c, so using list_entry is a bit confusing. Replace it with container_of. 2. It is unnecessary to cast the return value of kmem_cache_alloc, since it returns a void* pointer. This patch is against 2.6.22.1. Signed-off-by: WANG Cong <[EMAIL PROTEC

Re: [PATCH 3/5] HOWTO: add Chinese translation of Documentation/HOWTO

2007-07-18 Thread WANG Cong
-by: TripleX Chung <[EMAIL PROTECTED]> >>Signed-off-by: Maggie Chen <[EMAIL PROTECTED]> >>Signed-off-by: WANG Cong <[EMAIL PROTECTED]> >>Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> >>--- >> Documentation/zh_CN/HOWTO | 536 >>

[Git Patch] ACPI: Fix a warning of discarding qualifiers from pointer target type

2007-08-21 Thread WANG Cong
Fix this warning: drivers/acpi/ec.c: In function `acpi_ec_ecdt_probe': drivers/acpi/ec.c:873: warning: passing arg 1 of `acpi_get_devices' discards qualifiers from pointer target type (I don't know whether this fix hits the real problem.) Signed-off-by: WANG Cong <[EMAIL PROTEC

<    1   2   3   4   5   >