Re: [PATCH 3/4] ARCH: AUDIT: implement syscall_get_arch for all arches

2014-03-19 Thread Matt Turner
On Wed, Mar 19, 2014 at 3:04 PM, Eric Paris epa...@redhat.com wrote:
 For all arches which support audit implement syscall_get_arch()

support audit -- is that AUDIT_ARCH? If so, alpha gained support
recently, so I think this patch needs to handle alpha too?
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v2 1/1] audit: Add CONFIG_HAVE_ARCH_AUDITSYSCALL

2014-02-25 Thread Matt Turner
On Tue, Feb 25, 2014 at 1:16 AM, AKASHI Takahiro
takahiro.aka...@linaro.org wrote:
 Currently AUDITSYSCALL has a long list of architecture depencency:
depends on AUDIT  (X86 || PARISC || PPC || S390 || IA64 || UML ||
 SPARC64 || SUPERH || (ARM  AEABI  !OABI_COMPAT) || ALPHA)
 The purpose of this patch is to replace it with HAVE_ARCH_AUDITSYSCALL
 for simplicity.

 Signed-off-by: AKASHI Takahiro takahiro.aka...@linaro.org
 ---
  arch/alpha/Kconfig |1 +
  arch/arm/Kconfig   |1 +
  arch/ia64/Kconfig  |1 +
  arch/parisc/Kconfig|1 +
  arch/powerpc/Kconfig   |1 +
  arch/s390/Kconfig  |1 +
  arch/sh/Kconfig|1 +
  arch/sparc/Kconfig |1 +
  arch/um/Kconfig.common |1 +
  arch/x86/Kconfig   |1 +
  init/Kconfig   |5 -
  11 files changed, 14 insertions(+), 1 deletion(-)

 diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
 index f6c6b34..b7ff9a3 100644
 --- a/arch/alpha/Kconfig
 +++ b/arch/alpha/Kconfig
 @@ -22,6 +22,7 @@ config ALPHA
 select GENERIC_SMP_IDLE_THREAD
 select GENERIC_STRNCPY_FROM_USER
 select GENERIC_STRNLEN_USER
 +   select HAVE_ARCH_AUDITSYSCALL
 select HAVE_MOD_ARCH_SPECIFIC
 select MODULES_USE_ELF_RELA
 select ODD_RT_SIGACTION

Thanks.

Acked-by: Matt Turner matts...@gmail.com
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 31/45] alpha/smp: Use get/put_online_cpus_atomic() to prevent CPU offline

2013-06-23 Thread Matt Turner
On Sun, Jun 23, 2013 at 6:45 AM, Srivatsa S. Bhat
srivatsa.b...@linux.vnet.ibm.com wrote:
 Once stop_machine() is gone from the CPU offline path, we won't be able
 to depend on disabling preemption to prevent CPUs from going offline
 from under us.

 Use the get/put_online_cpus_atomic() APIs to prevent CPUs from going
 offline, while invoking from atomic context.

 Also, remove the non-ASCII character present in this file!

It's not non-ASCII. It's a page break.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH] atomic: add *_dec_not_zero

2011-05-04 Thread Matt Turner
On Tue, May 3, 2011 at 5:30 PM, Sven Eckelmann s...@narfation.org wrote:
 diff --git a/arch/alpha/include/asm/atomic.h b/arch/alpha/include/asm/atomic.h
 index e756d04..7e9434e 100644
 --- a/arch/alpha/include/asm/atomic.h
 +++ b/arch/alpha/include/asm/atomic.h
 @@ -200,6 +200,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int 
 a, int u)
  }

  #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 +#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)

  /**
  * atomic64_add_unless - add unless the number is a given value
 @@ -226,6 +227,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, 
 long a, long u)
  }

  #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
 +#define atomic64_dec_not_zero(v) atomic64_add_unless((v), -1, 0)

  #define atomic_add_negative(a, v) (atomic_add_return((a), (v))  0)
  #define atomic64_add_negative(a, v) (atomic64_add_return((a), (v))  0)
 diff --git a/arch/alpha/include/asm/local.h b/arch/alpha/include/asm/local.h
 index b9e3e33..09fb327 100644
 --- a/arch/alpha/include/asm/local.h
 +++ b/arch/alpha/include/asm/local.h
 @@ -79,6 +79,7 @@ static __inline__ long local_sub_return(long i, local_t * l)
        c != (u);                                               \
  })
  #define local_inc_not_zero(l) local_add_unless((l), 1, 0)
 +#define local_dec_not_zero(l) local_add_unless((l), -1, 0)

  #define local_add_negative(a, l) (local_add_return((a), (l))  0)


Acked-by: Matt Turner matts...@gmail.com [alpha]
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev