[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] 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: Alexey Dobriyan [EMAIL PROTECTED

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

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: 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 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

[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

[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 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 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 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 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 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 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 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 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 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 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 PROTECTED

[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 +- arch/frv/kernel/signal.c |4

[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|4 ++-- 3 files changed, 4

[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 deletions(-) diff

[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/mmap.c |2 +- include

[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 insertions(+), 2 deletions(-) diff

[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/signal32.c |2 +- arch

[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 files changed, 5

[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 +- arch/x86/kernel

[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 +- 3 files changed, 3

[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 |2

[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 +- include/asm-mips

[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-ia64/namei.h |2

[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 insertions(+), 5 deletions

[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/include/asm-frv

[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 --git a/include/asm

[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/exec_domain.c index

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_personality function alike

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 PROTECTED] Subject: Re: [PATCH 00/16

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: Use get_personality() macro instead of explicit

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 +0300, Alexey

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]> &

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] Looks good - you should add some

[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] 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: > > &

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: Fix these sparse warings: fs/binfmt_elf.c

[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 [EMAIL

[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 [EMAIL

[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

[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 Signed-off-by: WANG Cong

[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 --git a/kern

[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 --git a/kernel/posix-cpu-timers.c b

[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 Signed-off-by: WANG Cong

[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/arch/um/kernel/um_arch.c

[-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

[-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/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/kernel/mem.c

[-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/arch/um/kernel

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

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 in reference from the function free_area_init_core

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

[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: [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

[git Patch] UML: a build error fix

2008-01-31 Thread WANG Cong
/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]> --- diff --g

[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/arch/um/include/init

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

2008-01-31 Thread WANG Cong
: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]> --- diff --git a/include/a

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

2008-01-31 Thread WANG Cong
: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] --- diff --git a/include/asm-generic/tlb.h b

[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/arch/um/include/init.h b/arch/um

[git Patch] UML: a build error fix

2008-01-31 Thread WANG Cong
/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] --- diff --git a/arch/um/include

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 archtectures, with at

[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: WANG

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 linux/swap.h #include linux/quicklist.h #include asm

(Try#3) [Patch] Shut up warnings from files under drivers/

2008-01-27 Thread WANG Cong
aration too. >Did you try that out? Yes, it works. Here's the updated patch, and I dropped the drivers/char/applicom.c part as Jiri Slaby has better fix. ---> Fix defined-but-not-used warnings from files under drivers/, such as: drivers/video/aty/atyfb_base.c:2713: warning: ‘aty_

Re: (Updated) [Patch] Shut up warnings from files under drivers/

2008-01-27 Thread WANG Cong
On Sun, Jan 27, 2008 at 10:21:12AM +0100, Jiri Slaby wrote: >On 01/27/2008 10:08 AM, Jiri Slaby wrote: >>On 01/27/2008 05:15 AM, WANG Cong wrote: >>>Fix defined-but-not-used warnings from files under drivers/, >>>such as: >>> >>>drivers/char/appli

Re: [Patch] drivers/base/core.c: fix a compile error

2008-01-27 Thread WANG Cong
> >No, that will fix the build error, but die when linking :( > >I'll work on a real fix for this now... > Sorry. I just compiled it since the building process was stopped by another error. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [Patch] drivers/base/core.c: fix a compile error

2008-01-27 Thread WANG Cong
No, that will fix the build error, but die when linking :( I'll work on a real fix for this now... Sorry. I just compiled it since the building process was stopped by another error. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: (Updated) [Patch] Shut up warnings from files under drivers/

2008-01-27 Thread WANG Cong
On Sun, Jan 27, 2008 at 10:21:12AM +0100, Jiri Slaby wrote: On 01/27/2008 10:08 AM, Jiri Slaby wrote: On 01/27/2008 05:15 AM, WANG Cong wrote: Fix defined-but-not-used warnings from files under drivers/, such as: drivers/char/applicom.c:68: warning: ‘applicom_pci_tbl’ defined but not used

(Try#3) [Patch] Shut up warnings from files under drivers/

2008-01-27 Thread WANG Cong
: ‘aty_resume_chip’ defined but not used Compile tests passed. Cc: Jeff Garzik [EMAIL PROTECTED] Cc: Greg KH [EMAIL PROTECTED] Cc: Sam Ravnborg [EMAIL PROTECTED] Cc: Jiri Slaby [EMAIL PROTECTED] Signed-off-by: WANG Cong [EMAIL PROTECTED] --- diff --git a/drivers/char/synclink.c b/drivers/char

(Updated) [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
68: warning: ‘applicom_pci_tbl’ defined but not used Compile tests passed. Cc: Jeff Garzik <[EMAIL PROTECTED]> Cc: Greg KH <[EMAIL PROTECTED]> Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/drivers/char/applicom.c b/driv

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 08:17:17PM +0100, Sam Ravnborg wrote: >On Sat, Jan 26, 2008 at 04:55:58AM -0500, Jeff Garzik wrote: >> WANG Cong wrote: >> >diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c >> >index acb9370..437ebd0 100644 >> >--- a/

Re: The latest linus tree can't build

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 12:45:14PM +0200, Adrian Bunk wrote: >On Sat, Jan 26, 2008 at 06:38:45PM +0800, WANG Cong wrote: >> >> Hi, Sam! >> >> When I built the latest linus tree, I got this error: >> >> ... >> CC sound/oss/msnd.o >&

The latest linus tree can't build

2008-01-26 Thread WANG Cong
Hi, Sam! When I built the latest linus tree, I got this error: ... CC sound/oss/msnd.o make[2]: *** No rule to make target `/etc/sound/msndperm.bin', needed by `sound/oss/msndperm.c'. Stop. make[1]: *** [sound/oss] Error 2 make: *** [sound] Error 2 My .config is just the one I sent to

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
> >Looking a bit closer the above is rubbish. >We have: >#if defined(MODULE) || defined(CONFIG_HOTPLUG) >#define __devexit_p(x) x >#else >#define __devexit_p(x) NULL > >so the pointer to the function is used in >both cases. I think in the latter case, 'x' is not used, just as gcc told me. ;) >

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 04:55:58AM -0500, Jeff Garzik wrote: >WANG Cong wrote: >>diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c >>index acb9370..437ebd0 100644 >>--- a/drivers/video/kyro/fbdev.c >>+++ b/drivers/video/kyro/fbdev.c >>@@

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 10:57:23AM +0100, Sam Ravnborg wrote: >Hi WANG. >On Sat, Jan 26, 2008 at 05:30:07PM +0800, WANG Cong wrote: >> >> Fix two kind of defined-but-not-used warnings. >> >> One is due to defination of MODULE_DEVICE_TABLE, the >> other is due

[Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
Fix two kind of defined-but-not-used warnings. One is due to defination of MODULE_DEVICE_TABLE, the other is due to __devexit_p. The solution is just to add proper directives to protect those usages. Compile tests passed. Cc: Greg KH <[EMAIL PROTECTED]> Signed-off-by: WANG Cong &

[Patch] drivers/base/core.c: fix a compile error

2008-01-26 Thread WANG Cong
> Here's one possible fix. Please review. Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- Index: linux-2.6/include/linux/genhd.h === --- linux-2.6.orig/include/linux/genhd.h +++ linux-2.6/include/linux/genhd.h @@ -

[Patch] drivers/base/core.c: fix a compile error

2008-01-26 Thread WANG Cong
On Fri, Jan 25, 2008 at 03:24:13PM -0800, Jeremy Fitzhardinge wrote: Greg KH wrote: Ah, sorry, I missed that note :( thanks, greg 'time to get that make randconfig system up and working' k-h Here's a config that fails. Here's one possible fix. Please review. Signed-off-by: WANG Cong

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 04:55:58AM -0500, Jeff Garzik wrote: WANG Cong wrote: diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c index acb9370..437ebd0 100644 --- a/drivers/video/kyro/fbdev.c +++ b/drivers/video/kyro/fbdev.c @@ -90,7 +90,9 @@ static int nomtrr __devinitdata = 0

[Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
Fix two kind of defined-but-not-used warnings. One is due to defination of MODULE_DEVICE_TABLE, the other is due to __devexit_p. The solution is just to add proper directives to protect those usages. Compile tests passed. Cc: Greg KH [EMAIL PROTECTED] Signed-off-by: WANG Cong [EMAIL PROTECTED

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
Looking a bit closer the above is rubbish. We have: #if defined(MODULE) || defined(CONFIG_HOTPLUG) #define __devexit_p(x) x #else #define __devexit_p(x) NULL so the pointer to the function is used in both cases. I think in the latter case, 'x' is not used, just as gcc told me. ;) Could you

The latest linus tree can't build

2008-01-26 Thread WANG Cong
Hi, Sam! When I built the latest linus tree, I got this error: ... CC sound/oss/msnd.o make[2]: *** No rule to make target `/etc/sound/msndperm.bin', needed by `sound/oss/msndperm.c'. Stop. make[1]: *** [sound/oss] Error 2 make: *** [sound] Error 2 My .config is just the one I sent to

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 10:57:23AM +0100, Sam Ravnborg wrote: Hi WANG. On Sat, Jan 26, 2008 at 05:30:07PM +0800, WANG Cong wrote: Fix two kind of defined-but-not-used warnings. One is due to defination of MODULE_DEVICE_TABLE, the other is due to __devexit_p. The solution is just to add

Re: The latest linus tree can't build

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 12:45:14PM +0200, Adrian Bunk wrote: On Sat, Jan 26, 2008 at 06:38:45PM +0800, WANG Cong wrote: Hi, Sam! When I built the latest linus tree, I got this error: ... CC sound/oss/msnd.o make[2]: *** No rule to make target `/etc/sound/msndperm.bin', needed

Re: [Patch] Shut up warnings from files under drivers/

2008-01-26 Thread WANG Cong
On Sat, Jan 26, 2008 at 08:17:17PM +0100, Sam Ravnborg wrote: On Sat, Jan 26, 2008 at 04:55:58AM -0500, Jeff Garzik wrote: WANG Cong wrote: diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c index acb9370..437ebd0 100644 --- a/drivers/video/kyro/fbdev.c +++ b/drivers/video

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   4   5   >