Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-05-02 Thread Macpaul Lin
Hi Wolfgang, 2011/4/30 Wolfgang Denk : > Dear Macpaul Lin, > > It means adding any new code to U-Boot which includes "typedef"s. > >> According to the checkpatch result, "typedef" warning exists in 4 files. >> arch/nds32/include/asm/posix_types.h >> arch/nds32/include/asm/types.h >> arch/nds32/inc

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-29 Thread Chih-Min Chao
On Sat, Apr 30, 2011 at 7:09 AM, Wolfgang Denk wrote: > Dear Macpaul Lin, > > In message you wrote: >> >> I think we still have to discuss about the typedef's. >> What does the "new" typedef means? > > It means adding any new code to U-Boot which includes "typedef"s. > >> According to the checkpa

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-29 Thread Wolfgang Denk
Dear Macpaul Lin, In message you wrote: > > I think we still have to discuss about the typedef's. > What does the "new" typedef means? It means adding any new code to U-Boot which includes "typedef"s. > According to the checkpatch result, "typedef" warning exists in 4 files. > arch/nds32/inclu

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-10 Thread Macpaul Lin
Hi Wolfgang, >>> I did check typedefs one by one by myself in hand and eye checking. >>> If some thing is not suitable for using "typedefs" please let me know. >> >> Please don't add any new typedef's. >> > > I think we still have to discuss about the typedef's. > What does the "new" typedef means

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-08 Thread Macpaul Lin
Hi Wolfgang, >> > Checkpatch complains a lot about "do not add new typedefs". >> >> Indeed, but this seems is special for Linux Kernel, > > Not really.  This is Linux CodingStyle policy, which we usually adapt. > >> I've checked some of the "typedefs" from other architecture code in u-boot. > > Th

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-08 Thread macpaul
Hi Wolfgang, > This also triggers an erro-r from checkpatch, and indeed this is a > strange define. > > > +#define R0 uregs[1]/* R0 */ > > +#define R1 uregs[2] > > +#define R2 uregs[3] > > +#define R3 uregs[4] > > NAK. Please use a C struct instead. Aft

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-07 Thread Wolfgang Denk
Dear Macpaul Lin, In message you wrote: > > > Checkpatch complains a lot about "do not add new typedefs". > > Indeed, but this seems is special for Linux Kernel, Not really. This is Linux CodingStyle policy, which we usually adapt. > I've checked some of the "typedefs" from other architectur

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-07 Thread Macpaul Lin
Hi Wolfgang, 2011/4/7 Wolfgang Denk : Dear Macpaul Lin, >> Add generic header files support for nds32 architecture. >> Cache, ptregs, data type and other definitions are included. >> >> Signed-off-by: Macpaul Lin > > Checkpatch complains a lot about "do not add new typedefs". Indeed, but this s

Re: [U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-07 Thread Wolfgang Denk
Dear Macpaul Lin, In message <1302180333-25372-1-git-send-email-macp...@andestech.com> you wrote: > Add generic header files support for nds32 architecture. > Cache, ptregs, data type and other definitions are included. > > Signed-off-by: Macpaul Lin Checkpatch complains a lot about "do not add

[U-Boot] [PATCH v7 01/10] nds32: add header files support for nds32

2011-04-07 Thread Macpaul Lin
Add generic header files support for nds32 architecture. Cache, ptregs, data type and other definitions are included. Signed-off-by: Macpaul Lin --- Changes for v1-v4: - Code cleanup and style formatting. Changes for v5-v6: - This patch also updated the following changes against the c