Re: [PATCH next] mm: make swapoff more robust against soft dirty

2016-01-10 Thread Cyrill Gorcunov
me_pte()? Rename it pte_same_as_swp(). > > Signed-off-by: Hugh Dickins Acked-by: Cyrill Gorcunov Thanks a lot, Hugh! ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH next] powerpc/mm: fix _PAGE_SWP_SOFT_DIRTY breaking swapoff

2016-01-10 Thread Cyrill Gorcunov
ining the > bits as 0 if CONFIG_MEM_SOFT_DIRTY is not set. > > Signed-off-by: Hugh Dickins Reviewed-by: Cyrill Gorcunov Thank you, Hugh! ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [RFC 08/10] um: dyn/uml.lds.S cleanup - use PAGE_SIZE macro

2008-03-01 Thread Cyrill Gorcunov
into linker scripts page.h is | > needed for some modification - i.e. we need to use __ASSEMBLY__ | > and _AC macro | > | > Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> | | Needed some fixing, but it's OK. I'll forward it on. | |

[RFC 08/10] um: dyn/uml.lds.S cleanup - use PAGE_SIZE macro

2008-02-27 Thread gorcunov
This patch includes page.h header into liker scripts that allow us to use PAGE_SIZE macro instead of numeric constant. To be able to include page.h into linker scripts page.h is needed for some modification - i.e. we need to use __ASSEMBLY__ and _AC macro Signed-off-by: Cyrill Gorcunov <[EM

[RFC 09/10] alpha: vmlinux.lds cleanup - use THREAD_SIZE macro

2008-02-27 Thread gorcunov
This patch modifies thread_info.h header to be able to include it into linker script and then we're able to use THREAD_SIZE in vmlinux.lds Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> Reviewed-by: Sam Ravnborg <[EMAIL PROTECTED]> --- arch/alpha/kernel/vmlinux.lds.S |3

[RFC 10/10] xtensa: vmlinux.lds.S - use PAGE_SIZE, THREAD_SIZE macroses

2008-02-27 Thread gorcunov
This patch includes page.h and thread_info.h headers into the linker script that allow us to use PAGE_SIZE and THREAD_SIZE macroses instead of numeric constants Also a few spaces removed Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! vmlinux

[RFC 07/10] ppc: vmlinux.lds.S cleanup - use PAGE_SIZE macro

2008-02-27 Thread gorcunov
This patch includes page.h header into liker script that allow us to use PAGE_SIZE macro instead of numeric constant Also a few tabs deleted to align braces Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! vmlinux.lds.S

[RFC 06/10] powerpc: vmlinux.lds.S cleanup - use PERCPU, THREAD_SIZE macroses

2008-02-27 Thread gorcunov
This patch includes thread_info.h header into liker script that allow us to use THREAD_SIZE macro instead of numeric constant Also PERCPU macro is used instead of explicit section definition Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! vmlinux

[RFC 05/10] mn10300: vmlinux.lds.S cleanup - use PAGE_SIZE, PERCPU macroses

2008-02-27 Thread gorcunov
This patch includes page.h header into liker script that allow us to use PAGE_SIZE macro instead of numeric constant Also PERCPU macro is used instead of explicit section definition Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! vmlinux.lds.S

[RFC 02/10] m32r: vmlinux.lds.S cleanup - use PAGE_SIZE, THREAD_SIZE macroses

2008-02-27 Thread gorcunov
This patch modifies PAGE_SIZE definition to be able to include it in vmlinux.lds.S script and use it then Also THREAD_SIZE macro is used to replace numeric constant Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! arch/m32r/kernel/vmlinux.lds.S

[RFC 04/10] m68knommu: vmlinux.lds cleanup - use PAGE_SIZE macro

2008-02-27 Thread gorcunov
This patch modifies page.h header to be able to include it into linker script and then we're able to use PAGE_SIZE in vmlinux.lds Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! arch/m68knommu/kernel/vmlinux.lds.S |5 +++-- include/as

[RFC 03/10] m68k: vmlinux-std/sun3.lds.S cleanup - use PAGE_SIZE macro

2008-02-27 Thread gorcunov
This patch includes page.h header into liker script that allow us to use PAGE_SIZE macro instead of numeric constant Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! vmlinux-std.lds |3 ++- vmlinux-sun3.lds |7 --- 2 files chan

[RFC 01/10] arm: vmlinux.lds.S cleanup - use PERCPU, PAGE_SIZE macroses

2008-02-27 Thread gorcunov
This patch modifies PAGE_SIZE definition to be able to include it into vmlinux.lds.S script and use it then Also PERCPU macros is used instead of explicit section declaration Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: COMPLETELY UNTESTED !!! arch/arm/kernel/vmlinux

[RFC 00/10] vmlinux.lds cleanup

2008-02-27 Thread gorcunov
This series of patches is made in purpose to use PAGE_SIZE and THREAD_SIZE macroses in vmlinux linker scripts as much as possible instead of numeric constants. Please review. WARNING: the patches are UNTESTED COMPLETELY - I've no access to that architectures and errors is highly po

[RFC 0/0] vmlinux cleanup

2008-02-27 Thread gorcunov
This series of patches is made in purpose to use PAGE_SIZE and THREAD_SIZE macroses in vmlinux linker scripts as much as possible instead of numeric constants. Please review. WARNING: the patches are UNTESTED COMPLETELY - I've no access to that architectures and errors is highly po

[PATCH 5/5] PPC cleanup: powermac - do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/powermac/low_i2c.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platfo

[PATCH 4/5] PPC cleanup: celleb - do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/celleb/scc_sio.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/celleb/scc_sio.c b/arch/powerpc/plat

[PATCH 3/5] PPC cleanup: 82xx - do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/pq2.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/82xx/pq2.c b/arch/powerpc/platforms/82xx/pq2.c i

[PATCH 2/5] PPC cleanup: do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/kernel/btext.c |2 +- arch/powerpc/kernel/legacy_serial.c |8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/kernel/bt

[PATCH 1/5] PPC cleanup: sysdev - do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c |7 +++ arch/powerpc/sysdev/mv64x60_dev.c | 24 ++-- arch/powerpc/sysdev/mv64x60_pci.c |4 ++-- arch/po

[PATCH 0/5] PPC cleanup: do use for_each macro

2007-11-29 Thread Cyrill Gorcunov
This is a cleanup patch set. It does convert for(...)/while(...) cycles into appropriate for_each_...() macros calls. The patch set is splitted up in idea to hold changes localy to a specified platform. Any comments are welcome. Cyrill ___

Re: [PATCH] PPC: CELLEB - fix potential NULL pointer dereference

2007-11-28 Thread Cyrill Gorcunov
d patch enveloped. (Can't do it inline becase I'm on my work now where I have no Linux machine) Cyrill --- From: Cyrill Gorcunov <[EMAIL PROTECTED]> Subject: [PATCH] PPC: CELLEB - fix possible NULL pointer dereference This patch adds checking for NULL returned value to prevent pos

Re: [PATCH] PPC: CELLEB - fix potential NULL pointer dereference

2007-11-28 Thread Cyrill Gorcunov
On 11/28/07, Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > On 11/28/07, Michael Ellerman <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-11-26 at 10:46 +0300, Cyrill Gorcunov wrote: > > > This patch adds checking for NULL value returned to prevent possible > > > N

Re: [PATCH] PPC: CELLEB - fix potential NULL pointer dereference

2007-11-28 Thread Cyrill Gorcunov
On 11/28/07, Michael Ellerman <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-26 at 10:46 +0300, Cyrill Gorcunov wrote: > > This patch adds checking for NULL value returned to prevent possible > > NULL pointer dereference. > > Also two unneeded 'return' are r

[PATCH] PPC: CELLEB - fix potential NULL pointer dereference

2007-11-25 Thread Cyrill Gorcunov
This patch adds checking for NULL value returned to prevent possible NULL pointer dereference. Also two unneeded 'return' are removed. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- Any comments are welcome. arch/powerpc/platforms/celleb/pci.c | 23

Re: [PATCH] PPC: CHRP - fix possible NULL pointer dereference

2007-11-22 Thread Cyrill Gorcunov
Here is updated version --- From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch does fix possible NULL pointer dereference inside of strncmp() if of_get_property() failed. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/chrp/setup.c | 13 +-

Re: [PATCH] PPC: CHRP - fix possible NULL pointer dereference

2007-11-22 Thread Cyrill Gorcunov
On 11/23/07, Stephen Rothwell <[EMAIL PROTECTED]> wrote: > On Thu, 22 Nov 2007 22:54:23 +0300 Cyrill Gorcunov <[EMAIL PROTECTED]> > wrote: > > > > This patch does fix possible NULL pointer dereference > > inside of strncmp() if of_get_property() failed. >

[PATCH] PPC: CHRP - fix possible NULL pointer dereference

2007-11-22 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch does fix possible NULL pointer dereference inside of strncmp() if of_get_property() failed. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/chrp/setup.c | 23 +-- 1 files

Re: [PATCH] PPC: trivial fix of missed increment on counter

2007-11-22 Thread Cyrill Gorcunov
[Olof Johansson - Thu, Nov 22, 2007 at 09:20:29AM -0600] | On Wed, Nov 21, 2007 at 01:58:06PM +0300, Cyrill Gorcunov wrote: | > On 11/21/07, Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | > > This patch does fix missed increment on counter | > > | > > Signed-off-by: Cyrill

[RFC] PPC: convert for(...) cycles into for_each... form

2007-11-21 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch does convert cyclic calls to of_find_compatible_node() and of_find_node_by_type() into appropriate macroses. It does reduce code a bit. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: I've no PowerPC to test

[PATCH] PPC: fix missed increment on device interface counter

2007-11-21 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch adds simple increment on device interface counter (it seems to be accidently missed) Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pasemi/electra_ide.c |2 +- 1 files changed, 1 insertions(+),