1. 26 10月, 2012 1 次提交
  2. 20 10月, 2012 3 次提交
    • M
      arm64: fix alignment padding in assembly code · aeed41a9
      Marc Zyngier 提交于
      An interesting effect of using the generic version of linkage.h
      is that the padding is defined in terms of x86 NOPs, which can have
      even more interesting effects when the assembly code looks like this:
      
      ENTRY(func1)
      	mov	x0, xzr
      ENDPROC(func1)
      	// fall through
      ENTRY(func2)
      	mov	x0, #1
      	ret
      ENDPROC(func2)
      
      Admittedly, the code is not very nice. But having code from another
      architecture doesn't look completely sane either.
      
      The fix is to add arm64's version of linkage.h, which causes the insertion
      of proper AArch64 NOPs.
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      aeed41a9
    • C
      xtensa: add missing system calls to the syscall table · 7216cabf
      Chris Zankel 提交于
      Add the following system calls to the syscall table:
      
      fallocate
      sendmmsg
      umount2
      syncfs
      epoll_create1
      inotify_init1
      signalfd4
      dup3
      pipe2
      timerfd_create
      timerfd_settime
      timerfd_gettime
      eventfd2
      preadv
      pwritev
      fanotify_init
      fanotify_mark
      process_vm_readv
      process_vm_writev
      name_to_handle_at
      open_by_handle_at
      sync_file_range
      perf_event_open
      rt_tgsigqueueinfo
      clock_adjtime
      prlimit64
      kcmp
      
      Note that we have to use the 'sys_sync_file_range2' version, so that
      the 64-bit arguments are aligned correctly to the argument registers.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      7216cabf
    • C
      xtensa: minor compiler warning fix · 39070cb8
      Chris Zankel 提交于
      Fix two compiler warnings complaining about truncating a value on
      a 64-bit host, and about declaring an unused variable that is only
      used for a specific configuration.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      39070cb8
  3. 19 10月, 2012 13 次提交
  4. 18 10月, 2012 16 次提交
  5. 17 10月, 2012 7 次提交
    • R
      MIPS: JZ4740: Forward declare struct uart_port in header. · a1226540
      Ralf Baechle 提交于
      As suggested by Geert Uytterhoeven <geert@linux-m68k.org>.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Cc: Antony Pavlov <antonynpavlov@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      a1226540
    • A
      MIPS: JZ4740: Fix '#include guard' in serial.h · a40b012f
      Antony Pavlov 提交于
      Signed-off-by: NAntony Pavlov <antonynpavlov@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Patchwork: https://patchwork.linux-mips.org/patch/4424/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      a40b012f
    • A
      ARM: s3c: mark s3c2440_clk_add as __init_refok · 5276b687
      Arnd Bergmann 提交于
      s3c2440_clk_add is a subsys_interface method and calls clkdev_add_table,
      which is marked as __init. The modpost script complains about this
      because we must not call an __init function from a function in the .text
      section, and we cannot reference an __init function from a subsys_interface
      pointer.
      
      I have verified that the only code path into s3c2440_clk_add() is
      from "int __init s3c2440_init(void)", so s3c2440_clk_add can be marked
      __init_refok instead.
      
      Without this patch, building mini2440_defconfig results in:
      
      WARNING: vmlinux.o(.text+0x9848): Section mismatch in reference from the function s3c2440_clk_add() to the function .init.text:clkdev_add_table()
      The function s3c2440_clk_add() references
      the function __init clkdev_add_table().
      This is often because s3c2440_clk_add lacks a __init
      annotation or the annotation of clkdev_add_table is wrong.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NKukjin Kim <kgene.kim@samsung.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      5276b687
    • D
      UAPI: Make arch/sparc/include/uapi/asm/sigcontext.h non-empty · bb2bab17
      David Howells 提交于
      arch/sparc/include/uapi/asm/sigcontext.h was emitted by the UAPI disintegration
      script as an empty file because the parent file had no UAPI stuff in it,
      despite being marked with "header-y".
      
      Unfortunately, the patch program deletes resultant empty files when applying a
      kernel patch.
      
      So just stick a comment in there as a placeholder.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: David S. Miller <davem@davemloft.net>
      cc: sparclinux@vger.kernel.org
      bb2bab17
    • D
      UAPI: Make arch/sh/include/uapi/asm/hw_breakpoint.h non-empty · 588be300
      David Howells 提交于
      arch/sh/include/uapi/asm/hw_breakpoint.h was emitted by the UAPI disintegration
      script as an empty file because the parent file had no UAPI stuff in it,
      despite being marked with "header-y".
      
      Unfortunately, the patch program deletes resultant empty files when applying a
      kernel patch.
      
      So just stick a comment in there as a placeholder.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: Paul Mundt <lethal@linux-sh.org>
      cc: linux-sh@vger.kernel.org
      588be300
    • D
      UAPI: Make arch/mn10300/include/uapi/asm/setup.h non-empty · 11b8d246
      David Howells 提交于
      arch/mn10300/include/uapi/asm/setup.h was emitted by the UAPI disintegration
      script as an empty file because the parent file had no UAPI stuff in it,
      despite being marked with "header-y".
      
      Unfortunately, the patch program deletes resultant empty files when applying a
      kernel patch.
      
      So just stick a comment in there as a placeholder.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      11b8d246
    • D
      UAPI: Put a comment into uapi/asm-generic/kvm_para.h and use it from arches · 0420c87e
      David Howells 提交于
      Make uapi/asm-generic/kvm_para.h non-empty by addition of a comment to stop
      the patch program from deleting it when it creates it.
      
      Then delete empty arch-specific uapi/asm/kvm_para.h files and tell the Kbuild
      files to use the generic instead.
      
      Should this perhaps instead be a #warning or #error that the facility is
      unsupported on this arch?
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: Arnd Bergmann <arnd@arndb.de>
      cc: Avi Kivity <avi@redhat.com>
      cc: Marcelo Tosatti <mtosatti@redhat.com>
      cc: kvm@vger.kernel.org
      0420c87e