[Patch] include/asm-generic/tlb.h: fix a missing header

2008-01-31 Thread WANG Cong
eric/tlb.h:91: error: implicit declaration of function 'check_pgt_cache' make[1]: *** [kernel/sched.o] Error 1 make: *** [kernel] Error 2 Cc: Ingo Molnar <[EMAIL PROTECTED]> Cc: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- di

[Patch] arch/um/include/init.h: Fix missing macro definitions

2008-01-31 Thread WANG Cong
This patch fixed the following build error in current -git tree. arch/um/kernel/config.c:10: error: expected declaration specifiers or '...' before '.' token ... Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/

[git Patch] UML: a build error fix

2008-01-31 Thread WANG Cong
once arch/um/kernel/skas/syscall.c:33: error: for each function it appears in.) make[2]: *** [arch/um/kernel/skas/syscall.o] Error 1 make[1]: *** [arch/um/kernel/skas] Error 2 make: *** [arch/um/kernel] Error 2 Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED

Re: [git pull] x86 arch updates for v2.6.25

2008-01-31 Thread WANG Cong
On Thu, Jan 31, 2008 at 05:15:23PM +0100, Ingo Molnar wrote: > >* Adrian Bunk <[EMAIL PROTECTED]> wrote: > >> On Thu, Jan 31, 2008 at 05:00:33PM +0100, Ingo Molnar wrote: >> > >> > * Adrian Bunk <[EMAIL PROTECTED]> wrote: >> > >> > > You tested x86 but broke more than half a dozen other archtectu

[Patch] mm: fix a section mismatch warning

2008-01-31 Thread WANG Cong
This patch fix this mismatch warning from mm: WARNING: vmlinux.o(.meminit.text+0x37f): Section mismatch in reference from the function free_area_init_core() to the function .init.text:setup_usemap() modpost: Found 1 section mismatch(es). Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by

Re: [Patch] include/asm-generic/tlb.h: fix a missing header

2008-01-31 Thread WANG Cong
On Thu, Jan 31, 2008 at 02:08:31PM -0800, Christoph Lameter wrote: >On Thu, 31 Jan 2008, WANG Cong wrote: > >> index 6ce9f3a..4ebbe15 100644 >> --- a/include/asm-generic/tlb.h >> +++ b/include/asm-generic/tlb.h >> @@ -16,6 +16,7 @@ >> #include >> #incl

Re: [Patch] mm: fix a section mismatch warning

2008-02-01 Thread WANG Cong
On Thu, Jan 31, 2008 at 07:38:53PM +0100, Sam Ravnborg wrote: >Hi WANG. > >On Fri, Feb 01, 2008 at 01:25:17AM +0800, WANG Cong wrote: >> >> This patch fix this mismatch warning from mm: >> >> WARNING: vmlinux.o(.meminit.text+0x37f): Section mismatch i

[-mm Patch] arch/um/kernel/mem.c: fix a shadowed variable

2008-02-05 Thread WANG Cong
Fix a shadowed variable in arch/um/kernel/mem.c, since there is a global variable has the same name. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Index: linux/arch/um/

[-mm Patch] arch/um/kernel/initrd.c: fix a missed conversion specifier

2008-02-05 Thread WANG Cong
Fix a missed conversion specifier of a printk in arch/um/kernel/initrd.c. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Jeff Dike <[EMAIL PROTECTED]> --- Index: linux/arch/um/kernel/initrd.c === --- linux.orig/ar

[Patch] Fix shadowed variables in kernel/posix-cpu-timers.c

2008-02-15 Thread WANG Cong
Fix sparse warnings like this: kernel/posix-cpu-timers.c:1090:25: warning: symbol 't' shadows an earlier one kernel/posix-cpu-timers.c:1058:21: originally declared here Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Thomas Gleixner <[EMAIL PROTECTED]> --- diff --

[Patch] Fix shadowed variables in fs/binfmt_elf.c

2008-02-15 Thread WANG Cong
Fix these sparse warings: fs/binfmt_elf.c:1749:29: warning: symbol 'tmp' shadows an earlier one fs/binfmt_elf.c:1734:28: originally declared here fs/binfmt_elf.c:2009:26: warning: symbol 'vma' shadows an earlier one fs/binfmt_elf.c:1892:24: originally declared here Sign

[Patch] arch/um/kernel/um_arch.c: some small improvements

2008-02-15 Thread WANG Cong
Make some small improvements for arch/um/kernel/um_arch.c. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Jeff Dike <[EMAIL PROTECTED]> --- diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index a6c1dd1..56deed6 100644 --- a/arch/um/kernel/um_arch.c +++ b/ar

Re: [Patch] Fix shadowed variables in fs/binfmt_elf.c

2008-02-16 Thread WANG Cong
From: Andrew Morton <[EMAIL PROTECTED]> Subject: Re: [Patch] Fix shadowed variables in fs/binfmt_elf.c Date: Fri, 15 Feb 2008 12:34:59 -0800 Message-ID: <[EMAIL PROTECTED]> > On Fri, 15 Feb 2008 21:58:02 +0800 (CST) > WANG Cong <[EMAIL PROTECTED]> wrote: > > &

[Patch]net/xfrm/xfrm_state.c: replace timer with delayed_work

2008-02-16 Thread WANG Cong
Also suggested by Herbert Xu, using workqueue is better than timer for net/xfrm/xfrm_state.c, so replace them with delayed_work. Note that, this patch is not fully tested, just compile and run as a whole on an Intel Core Duo matchine. So should be in -mm first. Signed-off-by: WANG Cong <[EM

[Patch]net/xfrm/xfrm_policy.c: replace timer with delayed_work

2008-02-16 Thread WANG Cong
As suggested by Herbert, using workqueue is better than timer for net/xfrm/xfrm_policy.c, so replace them with delayed_work. Note that, this patch is not fully tested, just compile and run as a whole on an Intel Core Duo matchine. So should be in -mm first. Signed-off-by: WANG Cong <[EM

Re: [PATCH 09/16] um: use get_personality()

2008-02-22 Thread WANG Cong
From: Jeff Dike <[EMAIL PROTECTED]> Subject: Re: [PATCH 09/16] um: use get_personality() Date: Wed, 20 Feb 2008 11:27:34 -0500 Message-ID: <[EMAIL PROTECTED]> > On Wed, Feb 20, 2008 at 07:19:13PM +0800, WANG Cong wrote: > > Signed-off-by: WANG Cong <[EMAIL PROTECTED]> &

[PATCH 00/16] (Resend) Use get_personality()

2008-02-23 Thread WANG Cong
This patchset makes the macro get_personality function alike and teaches code to use get_personality() instead of explicit reference. [I am sorry if you've received multiple copied of this, since my git-send-email doesn't work well. ] Signed-off-by: WANG Cong <[EMAIL PROTEC

[PATCH 01/16] Make the macro get_personality function-like.

2008-02-23 Thread WANG Cong
This patch makes the macro get_personality function-like. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED]> Cc: Bryan Wu <[EMAIL PROTECTED]> Cc: David Howells <[EMAIL PROTECTED]> --- arch/blackfin/kernel/signal.c |2 +-

[PATCH 02/16] mm: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for mm/ code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED]> Cc: Christoph Lameter <[EMAIL PROTECTED]> --- mm/mmap.c |2 +- mm/mprotect.c |2 +- mm/nommu.c|

[PATCH 03/16] fs: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Alexander Viro <[EMAIL PROTECTED]> --- fs/binfmt_elf.c |6 +++--- fs/compat.c |6 +++--- fs/select.c |6 +++--- 3 files changed, 9 insertions(+), 9 deleti

[PATCH 04/16] powerpc: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for powerpc code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED]> Cc: Paul Mackerras <[EMAIL PROTECTED]> --- arch/powerpc/kernel/syscalls.c |4 ++-- arch/powerpc/mm/mma

[PATCH 05/16] parisc: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for parisc code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Kyle McMartin <[EMAIL PROTECTED]> Cc: Matthew Wilcox <[EMAIL PROTECTED]> --- arch/parisc/kernel/sys_parisc.c |4 ++-- 1 files changed, 2 insertio

[PATCH 06/16] sparc(64): use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro and other two tiny improvements. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: David Miller <[EMAIL PROTECTED]> Cc: William L. Irwin <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] --- arch/sparc/kernel/signal.c |2 +- arch/sparc64/kernel/

[PATCH 07/16] arm: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for arm code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Russell King <[EMAIL PROTECTED]> --- arch/arm/kernel/traps.c |4 ++-- include/asm-arm/namei.h |2 +- include/asm-arm/processor.h |4 ++-- 3 f

[PATCH 08/16] x86: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for x86 code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Ingo Molnar <[EMAIL PROTECTED]> --- arch/x86/ia32/sys_ia32.c |6 +++--- arch/x86/kernel/process_32.c |2 +- arch/x86/kernel/process_64.c |2

[PATCH 09/16] um: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for uml code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/process.c |2 +- arch/um/sys-x86_64/syscalls.c |2 +- include/asm-um/vm-flags-i386.h |2

[PATCH 10/16] s390: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for s390 code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] --- arch/s390/kernel/binfmt_elf32.c |2 +- arch/s390/kernel/sys_s390.c |4 ++-- arch/s390/mm/mmap.c

[PATCH 11/16] mips: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for mips code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Ralf Baechle <[EMAIL PROTECTED]> --- arch/mips/kernel/linux32.c |4 ++-- arch/mips/kernel/process.c |4 ++-- include/asm-mips/elf.h |2 +- incl

[PATCH 12/16] ia64: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for ia64 code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Tony Luck <[EMAIL PROTECTED]> --- arch/ia64/ia32/sys_ia32.c |2 +- arch/ia64/mm/init.c |2 +- include/asm-ia64/fcntl.h |2 +- include/asm-

[PATCH 13/16] alpha: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for alpha code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Richard Henderson <[EMAIL PROTECTED]> --- arch/alpha/kernel/osf_sys.c |6 +++--- include/asm-alpha/processor.h |4 ++-- 2 files changed, 5 inse

[PATCH 14/16] frv: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for frv code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: David Howells <[EMAIL PROTECTED]> --- include/asm-frv/page.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-frv/page.h b

[PATCH 15/16] mn10300: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference for mn10300 code. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: David Howells <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] --- include/asm-mn10300/page.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --g

[PATCH 16/16] kernel: use get_personality()

2008-02-23 Thread WANG Cong
Use get_personality() macro instead of explicit reference. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED]> --- kernel/exec_domain.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/exec_domain.c b/kernel/e

Re: [PATCH 00/16] (Resend) Use get_personality()

2008-02-23 Thread WANG Cong
From: Alexey Dobriyan <[EMAIL PROTECTED]> Subject: Re: [PATCH 00/16] (Resend) Use get_personality() Date: Sat, 23 Feb 2008 11:51:01 +0300 Message-ID: <[EMAIL PROTECTED]> > On Sat, Feb 23, 2008 at 04:14:03PM +0800, WANG Cong wrote: > > This patchset makes the macro get_perso

Re: [PATCH 00/16] (Resend) Use get_personality()

2008-02-23 Thread WANG Cong
From: Alexey Dobriyan <[EMAIL PROTECTED]> Subject: Re: [PATCH 00/16] (Resend) Use get_personality() Date: Sat, 23 Feb 2008 12:27:10 +0300 Message-ID: <[EMAIL PROTECTED]> > On Sat, Feb 23, 2008 at 04:59:44PM +0800, WANG Cong wrote: > > From: Alexey Dobriyan <[EMAIL PRO

Re: [PATCH 08/16] x86: use get_personality()

2008-02-23 Thread WANG Cong
From: Ingo Molnar <[EMAIL PROTECTED]> Subject: Re: [PATCH 08/16] x86: use get_personality() Date: Sat, 23 Feb 2008 11:19:54 +0100 Message-ID: <[EMAIL PROTECTED]> > > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > * WANG Cong <[EMAIL PROTECTED]> wrote:

Re: [PATCH 00/16] (Resend) Use get_personality()

2008-02-23 Thread WANG Cong
From: Andrew Morton <[EMAIL PROTECTED]> Subject: Re: [PATCH 00/16] (Resend) Use get_personality() Date: Sat, 23 Feb 2008 11:16:29 -0800 Message-ID: <[EMAIL PROTECTED]> > On Sat, 23 Feb 2008 13:37:31 -0500 Christoph Hellwig <[EMAIL PROTECTED]> > wrote: > > > On Sat, Feb 23, 2008 at 12:27:10PM +03

[PATCH] Remove the macro get_personality

2008-02-24 Thread WANG Cong
From: WANG Cong <[EMAIL PROTECTED]> Date: Sun, 24 Feb 2008 12:09:03 +0800 Subject: [PATCH] Remove the macro get_personality Remove the macro get_personality, use ->personality instead. Cc: Ingo Molnar <[EMAIL PROTECTED]> Cc: Christoph Hellwig <[EMAIL PROTECTED] Cc: Alexe

[Patch] xfrm_policy_destroy: rename and relative fixes

2008-01-03 Thread WANG Cong
xfrm_policy_destroy to destroy the resource, fix them. Cc: David Miller <[EMAIL PROTECTED]> Cc: Herbert Xu <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 58dfa82..6eff085 100644 --- a/include/net/xfrm.h +++ b/

Re: Kbuild update

2008-01-04 Thread WANG Cong
{snip} >TODO items (from my mailbox - I have plenty more) >= >- asm-offset useable from modules (Oleg had a half backed solution) >- modpost should use err(), warn() etc (suggestyed by Rusty) >- less kernel hardcoding in kconfig (Rob Landley) >- emi

Re: Kbuild update

2008-01-06 Thread WANG Cong
>> It sort of stopped at one point due to missing integration in mainline. >> What I refer to is mostly the mconf.c bits, but I would also like to >> see what lkml says to a sample of .po files included in the kernel >> for a number of languages. >> >> One criteria to get a .po file integrated co

Re: translations (Re: Kbuild update)

2008-01-08 Thread WANG Cong
>"I will use ... >http://images.google.cz/images?svnum=100&um=1&hl=cs&client=firefox-a&rls=org.mozilla%3Acs%3Aofficial&q=I+will+use+Google+before&btnG=Hledat+obr%C3%A1zky >... for making translations..." >http://www.google.com/translate?u=http%3A%2F%2Flxr.linux.no%2Flinux%2FDocumentation%2FHOWTO&l

Re: Kbuild update

2008-01-08 Thread WANG Cong
> >"only" is the wrong word in this context. > >If someone would update the translations for one language every >3 months for the next years that would be great and disprove my >concerns. > >After all, updates every 3 months would beat the maintainance level of >at least three of our architectur

Re: Kbuild update

2008-01-08 Thread WANG Cong
>> > If we can make this to be an offical project for Linux kernel, I >> > think it won't be a big problem. >> >> We don't even manage to maintain the English language texts properly, >> and I am therefore not overly optimistic that we'll have the >> translations maintained properly for many yea

Re: build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

2008-01-18 Thread WANG Cong
On Fri, Jan 18, 2008 at 01:18:27PM +0100, Toralf Förster wrote: >Hello, > >the build with the attached .config was successful however I got during make : > AS .tmp_kallsyms2.o > LD vmlinux.o > MODPOST vmlinux.o >WARNING: vmlinux.o(.text.head+0x247): Section mismatch: reference to >.in

Re: build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

2008-01-18 Thread WANG Cong
On Fri, Jan 18, 2008 at 01:46:27PM +0100, Sam Ravnborg wrote: >On Fri, Jan 18, 2008 at 08:29:17PM +0800, WANG Cong wrote: >> On Fri, Jan 18, 2008 at 01:18:27PM +0100, Toralf Förster wrote: >> >Hello, >> > >> >the build with the attached .config was succe

Re: build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

2008-01-18 Thread WANG Cong
On Fri, Jan 18, 2008 at 02:22:42PM +0100, Sam Ravnborg wrote: >On Fri, Jan 18, 2008 at 08:51:44PM +0800, WANG Cong wrote: >> On Fri, Jan 18, 2008 at 01:46:27PM +0100, Sam Ravnborg wrote: >> >On Fri, Jan 18, 2008 at 08:29:17PM +0800, WANG Cong wrote: >> >> On Fri, Ja

Re: build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

2008-01-19 Thread WANG Cong
On Fri, Jan 18, 2008 at 07:47:55PM +0100, Sam Ravnborg wrote: >Hi Wang. >> >> >Following untested patch should fix it. >> >> > >> >> >> >> Still has the same problem. ;( >> >Could you please doublecheck that you applied the patch and modpost is >> >rebuilt. >> >If you continue to see the problem

[Patch]Documentation/vm/slabinfo.c: clean up this code

2007-10-05 Thread WANG Cong
against 2.6.23-rc9. CC: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Documentation/vm/slabinfo.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) Index: linux-2.6.23-rc9/Documentation/v

Re: [Patch]Documentation/vm/slabinfo.c: clean up this code

2007-10-05 Thread WANG Cong
On Fri, Oct 05, 2007 at 12:17:41PM -0700, Christoph Lameter wrote: >On Fri, 5 Oct 2007, WANG Cong wrote: > >> >> This patch does the following cleanups for Documentation/vm/slabinfo.c: >> >> - Fix two memory leaks; > >For user space code? Memory wil

[Patch]Documentation/spi/spidev_test.c: constify some variables

2007-10-05 Thread WANG Cong
Constify two char pointers and a struct in Documentation/spi/spidev_test.c. CC: David Brownell <[EMAIL PROTECTED]> CC: Anton Vorontsov <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Documentation/spi/spidev_test.c |6 +++--- 1 file changed,

[Patch]Documentation/watchdog/src/watchdog-simple.c: improve this code

2007-10-05 Thread WANG Cong
Make some improvements for Documentation/watchdog/src/watchdog-simple.c. CC: Wim Van Sebroeck <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Documentation/watchdog/src/watchdog-simple.c | 17 + 1 file changed, 13 insertions(+), 4 deletio

Re: [PATCH] param_sysfs_builtin memchr argument fix

2007-10-08 Thread WANG Cong
On Mon, Oct 08, 2007 at 02:50:10PM +0800, Dave Young wrote: >If memchr argument is longer than strlen(kp->name), there will be some >weird result. > >Signed-off-by: Dave Young <[EMAIL PROTECTED]> > >--- >params.c | 10 -- >1 file changed, 8 insertions(+), 2 deletions(-) Hmm, you used d

Re: [PATCH]fix VM_CAN_NONLINEAR check in sys_remap_file_pages

2007-10-08 Thread WANG Cong
On Mon, Oct 08, 2007 at 07:45:08PM +0800, Yan Zheng wrote: >Hi all > >The test for VM_CAN_NONLINEAR always fails > >Signed-off-by: Yan Zheng<[EMAIL PROTECTED]> > >diff -ur linux-2.6.23-rc9/mm/fremap.c linux/mm/fremap.c >--- linux-2.6.23-rc9/mm/fremap.c 2007-10-07 15:03:33.0 +0800

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread WANG Cong
On Sun, Dec 23, 2007 at 06:13:03AM -0500, Jeff Garzik wrote: >Another year, another update! :) > >The kernel hacker's guide to git has received some updates: > > http://linux.yyz.us/git-howto.html > >This includes all the input sent to me in the past several months, as >well as a few new ti

[Patch 0/8] Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use srctree or objtree instead. This patch set removes all the TOPDIR use in the whole source tree and finally drops it in the top Makefile. They're against the current linus-tree. Note that Patch [8/8] should be applied _after_ all the previous patches are applied. Regards.

[Patch 1/8] UML: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all UML Makefiles. Cc: Jeff Dike <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/um/Makefile b/arch/um/Makefile index ba681

[Patch 2/8] MIPS: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all Mips Makefiles. Cc: Ralf Baechle <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/mips/lasat/image/Makefile b/arch/mips/la

[Patch 3/8] S390: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all s390 Makefiles. Cc: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/s390/kernel/Makefile b/arch/s390/ker

[Patch 4/8] CRIS: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all Cris Makefiles. Cc: Mikael Starvik <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/cris/arch-v32/boot/compressed/Makefile

[Patch 5/8] INFINIBAND: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all infiniband Makefiles. Cc: Sam Ravnborg <[EMAIL PROTECTED]> Cc: Roland Dreier <[EMAIL PROTECTED]> Cc: Sean Hefty <[EMAIL PROTECTED]> Cc: Hal Rosenstock <[EMAIL PROTECTED]> Signed-off-by: WAN

[Patch 6/8] FRV: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all frv Makefiles. Cc: David Howells <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/frv/boot/Makefile b/arch/frv/boot/Make

[Patch 7/8] FS: Remove 'TOPDIR' from Makefiles

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, use objtree instead. This patch removes TOPDIR from all fs/ Makefiles. Cc: Alexander Viro <[EMAIL PROTECTED]> Cc: Tim Shimmin <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/fs/s

[Patch 8/8] Remove 'TOPDIR' from the Top Makefile

2007-12-31 Thread WANG Cong
TOPDIR is obsolete, thus can be removed. This patch removes TOPDIR from the top Makefile. Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/Makefile b/Makefile index fbb8dfc..c892d14 100644 --- a/Makefile +++ b/Makefile @@ -14

(Try #2) [Patch 1/8] UML: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
On Tue, Jan 01, 2008 at 11:49:42AM +0100, Sam Ravnborg wrote: >On Tue, Jan 01, 2008 at 11:33:42AM +0100, Sam Ravnborg wrote: >> On Tue, Jan 01, 2008 at 03:18:46PM +0800, WANG Cong wrote: >> > >> > TOPDIR is obsolete, use objtree instead. >> > This patch r

(Try #2) [Patch 2/8] MIPS: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
gt; Since TOPDIR is obsolete, this patch removes TOPDIR from the Mips Makefiles. Cc: Ralf Baechle <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/mips/lasat/image/Makefile b/arch/mips/lasat/image/Makefile

(Try #2) [Patch 3/8] S390: Tiny fixes for Makefile

2008-01-01 Thread WANG Cong
s what s390 people do on purpose. Thanks anyway! The following one contains the new fix. > This patch removes TOPDIR and fixes a bogus prerequisite in arch/s390/kernel/Makefile. Cc: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed

(Try #2) [Patch 4/8] CRIS: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
lso in the O=.. >case. Thanks, Sam! Resend it. ;) -> This patch removes TOPDIR from Cris Makefiles. Cc: Mikael Starvik <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/cris/arch-v32/boot/com

(Try #2) [Patch 5/8] INFINIBAND: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
;[EMAIL PROTECTED]> Cc: Sean Hefty <[EMAIL PROTECTED]> Cc: Hal Rosenstock <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/drivers/infiniband/hw/cxgb3/Makefile b/drivers/infiniband/hw/cxgb3/Makefile index 36b9898..7e7b5a6 100644 --- a/drivers/i

(Try #2) [Patch 6/8] FRV: Drop 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
> >In this file we can just drop use of $(TOPDIR) since this is our >current directory anyway. Thanks! > This patch drops TOPDIR from frv Makefiles. Cc: David Howells <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL P

(Try #2) [Patch 7/8] FS: Drop 'TOPDIR' from Makefiles and remove some dead code

2008-01-01 Thread WANG Cong
from fs/smbfs/Makefile. Cc: Alexander Viro <[EMAIL PROTECTED]> Cc: Tim Shimmin <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/fs/smbfs/Makefile b/fs/smbfs/Makefile index 6673ee8..4faf8c4 100644 --- a/

Re: linux 0.01 released

2008-01-01 Thread WANG Cong
On Tue, Jan 01, 2008 at 09:56:59PM +0100, Abdel wrote: >Hello everybody and happy new year, > > >I have ported linux 0.01 to gcc-4.x, and bach-3.2 (and few others >programs) can run on it. > >so you will find binary Image of linux 0.01 floppy and qemu hdd here: >http://draconux.free.fr/download/os-

(Try #3) [Patch 7/8] FS: Remove dead code

2008-01-01 Thread WANG Cong
On Tue, Jan 01, 2008 at 06:37:29PM +0100, Sam Ravnborg wrote: >On Tue, Jan 01, 2008 at 11:27:37AM -0600, Eric Sandeen wrote: >> WANG Cong wrote: >> > TOPDIR is obsolete, use objtree instead. >> > This patch removes TOPDIR from all fs/ Makefiles. >> >>

(Try #3) [Patch 2/8] MIPS: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
solete, this patch removes TOPDIR from the Mips Makefiles. Cc: Ralf Baechle <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/mips/lasat/image/Makefile b/arch/mips/lasat/image/Makefile index 5332449

(Try #3) [Patch 4/8] CRIS: Remove 'TOPDIR' from Makefiles

2008-01-01 Thread WANG Cong
Refine it as suggested by Andreas. > This patch removes TOPDIR from Cris Makefiles. Cc: Mikael Starvik <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Cc: Andreas Schwab <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --gi

(Try #3) [Patch 3/8] S390: Remove 'TOPDIR' from Makefile

2008-01-01 Thread WANG Cong
s TOPDIR from arch/s390/kernel/Makefile. Cc: Martin Schwidefsky <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile index 56cb710..b3b650a 100644 --- a/

Re: [Patch 0/8] Remove 'TOPDIR' from Makefiles

2008-01-02 Thread WANG Cong
>Hi Wang. > >You a heads up. I will most likely apply >the remaining of the patches tonight, except the UM stuff >which I hope Jeff to take and the final removal of TOPDIR >may wait a bit. >I want the s390, xfs and um changes to hit -mm at least >and we have several external modules that uses TOPD

Re: [Patch](Resend) mm/sparse.c: Improve the error handling for sparse_add_one_section()

2007-11-28 Thread WANG Cong
On Tue, Nov 27, 2007 at 10:53:45AM -0800, Dave Hansen wrote: >On Tue, 2007-11-27 at 10:26 +0800, WANG Cong wrote: >> >> @@ -414,7 +418,7 @@ int sparse_add_one_section(struct zone * >> out: >> pgdat_resize_unlock(pgdat, &

Re: void* arithmnetic

2007-11-29 Thread WANG Cong
On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote: >On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <[EMAIL PROTECTED]> wrote: >> 2007/11/29, Jan Engelhardt <[EMAIL PROTECTED]>: >>> On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says thing

Re: [PATCH] kbuild: implement modules.order

2007-12-04 Thread WANG Cong
{snip} Comments on your C code below. >--- /dev/null >+++ b/scripts/remove-dup.c >@@ -0,0 +1,98 @@ >+/* >+ * remove-dup - Drop duplicate lines from unsorted input files >+ * >+ * Dec 2007 Tejun Heo <[EMAIL PROTECTED]> >+ * >+ * This software is released under GPLv2. >+ */ >+ >+#include >+#inclu

Re: [PATCH] kbuild: implement modules.order

2007-12-04 Thread WANG Cong
>> I think, you forgot to free(3) the memory you calloc(3)'ed and >> malloc(3)'ed above. > >It's a simple program where whole body is in main(). Why bother? >What's the benefit of adding hash-table iterating free logic? > Personally, I think memory leaks are bugs. And we hate bugs. ;) Regards.

Re: Patch submission question [not in the FAQ]

2007-12-05 Thread WANG Cong
On Wed, Dec 05, 2007 at 03:36:54AM -0800, Gabriele Gorla wrote: >Hello, >I have submitted a patch for the 3x- driver on >alpha several months ago to both the driver maintainer >and the linux-scsi mailing list. >I have read all the FAQ and I tried to stick to the >instructions to the letter. >Ho

[Patch] net/xfrm/xfrm_policy.c: Some small improvements

2007-12-06 Thread WANG Cong
This patch contains the following changes. - Use 'bool' instead of 'int' for booleans. - Use 'size_t' instead of 'int' for 'sizeof' return value. - Some style fixes. Cc: Herbert Xu <[EMAIL PROTECTED]> Cc: David Mil

Re: Is there any word about this bug in gcc ?

2007-11-19 Thread WANG Cong
On Tue, Nov 20, 2007 at 10:13:42AM +0800, zhengyi wrote: >Is there any relevance to the kernel ? > >I found the folowing code here: >http://linux.solidot.org/article.pl?sid=07/11/19/0512218&from=rss > >--- >int main( void ) >{ > int i

Re: [Patch] mm/sparse.c: Check the return value of sparse_index_alloc().

2007-11-19 Thread WANG Cong
On Mon, Nov 19, 2007 at 01:17:02PM -0800, Dave Hansen wrote: >On Thu, 2007-11-15 at 21:54 +0800, WANG Cong wrote: >> Since sparse_index_alloc() can return NULL on memory allocation failure, >> we must deal with the failure condition when calling it. >> >> Signe

Re: [PATCH] Keep UML Kconfig in sync with x86

2007-11-19 Thread WANG Cong
s of X86_32 and RWSEM_XCHGADD_ALGORITHM to >the UML/i386 Kconfig. > >Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Tested-by: WANG Cong <[EMAIL PROTECTED]> Thanks, Jeff. With this and that patch[1], uml building works fine. ;) [1] http://lkml.org/lkml/2007/11/15/231 - To unsubscribe from this li

Re: Is there any word about this bug in gcc ?

2007-11-19 Thread WANG Cong
On Mon, Nov 19, 2007 at 09:10:44PM -0800, H. Peter Anvin wrote: >WANG Cong wrote: >>On Tue, Nov 20, 2007 at 10:13:42AM +0800, zhengyi wrote: >>>Is there any relevance to the kernel ? >>> >>>I found the folowing code here: >>>http://linux.solidot

Re: Is there any word about this bug in gcc ?

2007-11-19 Thread WANG Cong
On Tue, Nov 20, 2007 at 02:03:12PM +0800, Li Zefan wrote: >WANG Cong wrote: >> On Mon, Nov 19, 2007 at 09:10:44PM -0800, H. Peter Anvin wrote: >>> WANG Cong wrote: >>>> On Tue, Nov 20, 2007 at 10:13:42AM +0800, zhengyi wrote: >>>>> Is there any rele

[Patch] mm/sparse.c: Improve the error handling for sparse_add_one_section()

2007-11-22 Thread WANG Cong
emory for i386 box. Sorry for this. ;( I hope someone can help me to test it. Cc: Christoph Lameter <[EMAIL PROTECTED]> Cc: Dave Hansen <[EMAIL PROTECTED]> Cc: Rik van Riel <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- mm/sparse.c | 17 +

Re: [uml-devel] uml doesn't work on 2.6.24-rc2

2007-11-23 Thread WANG Cong
On Fri, Nov 23, 2007 at 11:54:41AM +0100, Jiri Olsa wrote: >Hi, > >after applying following changes, the mainline is working for me. > Hi, I have already mentioned this. Follow this link[1]. ;^) [1] http://lkml.org/lkml/2007/11/20/10 - To unsubscribe from this list: send the line "unsubscribe l

Re: [PROBLEM] uml doesn't compile on i386

2007-11-23 Thread WANG Cong
On Fri, Nov 23, 2007 at 10:52:06AM +0200, Pekka Enberg wrote: >Hi, > >Current git head doesn't compile. Looks like fall-out from the x86 merge? > >[EMAIL PROTECTED]:~/src/linux/uml-2.6$ make ARCH=um > SYMLINK arch/um/include/kern_constants.h > SYMLINK arch/um/include/sysdep >make[1]: `arch/um/sys

[Patch](Resend) mm/sparse.c: Improve the error handling for sparse_add_one_section()

2007-11-26 Thread WANG Cong
e_unlock(pgdat, &flags); >> -if (ret <= 0) >> -__kfree_section_memmap(memmap, nr_pages); >> + >> return ret; >> } >> #endif > >Hmm. When sparse_init_one_section() returns error, memmap and >usemap should be free. Hi, Yasunori

Re: [PATCH] [VIDEO]: Complement va_start() with va_end().

2007-11-27 Thread WANG Cong
On Tue, Nov 27, 2007 at 08:06:17AM +0100, Richard Knutsson wrote: >Complement va_start() with va_end(). > >Signed-off-by: Richard Knutsson <[EMAIL PROTECTED]> >--- >Compile-tested on i386 with allyesconfig and allmodconfig. > > >diff --git a/drivers/media/video/saa5246a.c b/drivers/media/video/saa5

Re: (Try #3) [Patch 2/8] MIPS: Remove 'TOPDIR' from Makefiles

2008-01-13 Thread WANG Cong
On Fri, Jan 11, 2008 at 06:02:04PM +0100, Sam Ravnborg wrote: >On Fri, Jan 11, 2008 at 02:17:54PM +, Ralf Baechle wrote: >> On Wed, Jan 02, 2008 at 02:21:36PM +0800, WANG Cong wrote: >> >> > >> Shouldn't that use $(LINUXINCLUDE), or $(KBUILD_CPPFLAG

Re: [GIT PATCH] Update to Chinese documents

2008-01-13 Thread WANG Cong
it up-to-date. >> > >> > Sure. The key is to have more participants to involve. The work can't >> > be done without a large contributor base. >> >> I already got positive feedback from Bryan Wu and WANG Cong so a Chinese >> translation is well within

Re: translations (Re: Kbuild update)

2008-01-14 Thread WANG Cong
> >ftp://flower.upol.cz/upload/Configure.help > >OK, please, take a look at stuff, Korean guys did 5-6 years ago. One >particular ARM port (S3C2410X) along with an ARM bootloader (vivi) was >done. Yet for some reason official Linux port has another developers, and, >it seems, it was done some time

[-mm Patch] UML: fix a building error

2008-01-17 Thread WANG Cong
em.h:8:22: error: asm/nops.h: No such file or directory ... Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Index: linux/include/asm-um/nops.h === --- /dev/null +++ linux/include/asm-u

[-mm Patch] uml: fix a building error

2008-01-17 Thread WANG Cong
This patch fixes this building error: ... drivers/char/mem.c: In function ‘read_mem’: drivers/char/mem.c:136: error: implicit declaration of function ‘unxlate_dev_mem_ptr’ ... Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Index: linux/include

Re: [PATCH 1/2] Make kthread_create and kthread_run typesafe

2008-01-17 Thread WANG Cong
On Fri, Jan 18, 2008 at 11:51:39AM +1100, Rusty Russell wrote: >With a little macro ugliness, we can make kthread_create() and >kthread_run() typesafe: avoid the casts to and from void *. To do >this we use a temporary function pointer which takes the type of the >data as a callback: if the functi

Re: Incorrect filename comments in arch/x86/boot

2008-01-25 Thread WANG Cong
On Tue, Jan 22, 2008 at 12:20:12PM -0800, H. Peter Anvin wrote: >Pavel Machek wrote: >>Hi! >> >>Not sure if this is worth fixing, or if I should just delete those >>comments...? (Or does someone want to do that? ;-). >> Pavel > >

  1   2   3   >