1. 24 9月, 2014 3 次提交
    • E
      sparc: implement is_32bit_task · a17c8b54
      Eric Paris 提交于
      We are currently embedding the same check from thread_info.h into
      syscall.h thanks to the way syscall_get_arch() was implemented in the
      audit tree.  Instead create a new function, is_32bit_task() which is
      similar to that found on the powerpc arch.  This simplifies the
      syscall.h code and makes the build/Kconfig requirements much easier
      to understand.
      
      Signed-off-by: Eric Paris <eparis@redhat.com
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: sparclinux@vger.kernel.org
      a17c8b54
    • S
      sparc: properly conditionalize use of TIF_32BIT · 01ed102c
      Stephen Rothwell 提交于
      After merging the audit tree, today's linux-next build (sparc defconfig)
      failed like this:
      
      In file included from include/linux/audit.h:29:0,
                       from mm/mmap.c:33:
      arch/sparc/include/asm/syscall.h: In function 'syscall_get_arch':
      arch/sparc/include/asm/syscall.h:131:9: error: 'TIF_32BIT' undeclared (first use in this function)
      arch/sparc/include/asm/syscall.h:131:9: note: each undeclared identifier is reported only once for each function it appears in
      
      And many more ...
      
      Caused by commit 374c0c054122 ("ARCH: AUDIT: implement syscall_get_arch
      for all arches").
      
      This patch wraps the usage of TIF_32BIT in:
         if defined(__sparc__) && defined(__arch64__)
      Which solves the build problem.
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Acked-by: NRichard Guy Briggs <rgb@redhat.com>
      Signed-off-by: NEric Paris <eparis@redhat.com>
      01ed102c
    • E
      ARCH: AUDIT: implement syscall_get_arch for all arches · ce5d1128
      Eric Paris 提交于
      For all arches which support audit implement syscall_get_arch()
      They are all pretty easy and straight forward, stolen from how the call
      to audit_syscall_entry() determines the arch.
      Based-on-patch-by: NRichard Briggs <rgb@redhat.com>
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Cc: linux-ia64@vger.kernel.org
      Cc: microblaze-uclinux@itee.uq.edu.au
      Cc: linux-mips@linux-mips.org
      Cc: linux@lists.openrisc.net
      Cc: linux-parisc@vger.kernel.org
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: sparclinux@vger.kernel.org
      ce5d1128
  2. 17 2月, 2010 1 次提交
  3. 28 7月, 2008 1 次提交