1. 25 10月, 2011 4 次提交
  2. 20 10月, 2011 11 次提交
    • A
      MIPS: Fix build with C=1 · 08fa624f
      Aaro Koskinen 提交于
      When trying to compile the 3.1-rc10 kernel for my MIPS board with C=1
      (sparse checking), the build fails early with the error:
      
      	  CHK     include/linux/version.h
      	  UPD     include/linux/version.h
      	  CHK     include/generated/utsrelease.h
      	  UPD     include/generated/utsrelease.h
      	  Checking missing-syscalls for N32
      	  CALL    scripts/checksyscalls.sh
      	  Checking missing-syscalls for O32
      	  CALL    scripts/checksyscalls.sh
      	  CC      kernel/bounds.s
      	  GEN     include/generated/bounds.h
      	  CC      arch/mips/kernel/asm-offsets.s
      	  GEN     include/generated/asm-offsets.h
      	  CALL    scripts/checksyscalls.sh
      	  HOSTCC  scripts/genksyms/genksyms.o
      	  SHIPPED scripts/genksyms/lex.lex.c
      	  SHIPPED scripts/genksyms/keywords.hash.c
      	  SHIPPED scripts/genksyms/parse.tab.h
      	  HOSTCC  scripts/genksyms/lex.lex.o
      	  SHIPPED scripts/genksyms/parse.tab.c
      	  HOSTCC  scripts/genksyms/parse.tab.o
      	  HOSTLD  scripts/genksyms/genksyms
      	/bin/sh: Syntax error: "(" unexpected
      	make[3]: *** [scripts/mod/empty.o] Error 2
      	make[2]: *** [scripts/mod] Error 2
      	make[1]: *** [scripts] Error 2
      
      It seems the shell chokes because sparse is called with command line
      arguments such as:
      
      	-D__INT8_C(c)='c'
      
      Converting these to form:
      
      	-D'__INT8_C(c)'='c'
      
      seems to fix the problem.
      
      [ralf@linux-mips.org: This affects builds with gcc 4.5 and newer.]
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/2827/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      08fa624f
    • R
      MIPS: MSP71xx: Fix build error. · 2fd43108
      Ralf Baechle 提交于
      After the recent cleanup of the register_*_smp_ops() functions msp71xx
      wasn't fixed to include the now necessary header resulting in:
      
      /home/ralf/src/linux/upstream-linus/arch/mips/pmc-sierra/msp71xx/msp_setup.c: In function ‘prom_init’:
      /home/ralf/src/linux/upstream-linus/arch/mips/pmc-sierra/msp71xx/msp_setup.c:231:2: error: implicit declaration of function ‘register_vsmp_smp_ops’ [-Werror=implicit-function-declaration]
      cc1: all warnings being treated as errors
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2fd43108
    • R
    • J
      MIPS: Netlogic: Specify architecture CFLAGS · 39ad5680
      Jayachandran C 提交于
      Use -march=xlr if available, otherwise fallback to mips64. This allows
      us to support compilation with MIPS toolchains which are not customized
      for XLR.
      
      [ralf@linux-mips.org: And more importantly it works around a gas bug in
      binutils 2.21 which otherwise may result in an assertion failure building
      arch/mips/kernel/genex.S.  See
      http://sourceware.org/bugzilla/show_bug.cgi?id=12915 for details.]
      Signed-off-by: NJayachandran C <jayachandranc@netlogicmicro.com>
      To: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/2534/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      39ad5680
    • J
      MIPS:Netlogic:Fix section mismatch warnings. · a74e3353
      Jayachandran C 提交于
      Add __init and __cpuinit annotation to functions that need it.
      Signed-off-by: NJayachandran C <jayachandranc@netlogicmicro.com>
      To: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/2535/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      a74e3353
    • R
      Revert "MIPS: LD/SD o32 macro GAS fix update" · b77bb37a
      Ralf Baechle 提交于
      This reverts commit 97475f8b42e83be2966aa2d70ab9c98477701c53 (lmo) /
      82b89152 (kernel.org) [MIPS: LD/SD o32
      macro GAS fix update].
      
      Turns out this patch is producing many build errors with gcc 4.2.  Based
      on further testing with a test case extracted from the build errors found
      further build errors and suboptimal generation even in violation of the
      "R" constraint.
      
      To make matters worse, the binutils changes also don't work quite as
      intended so revert this patch for now.
      b77bb37a
    • R
      MIPS: SNI: Fix conflicting wrapper symbols for headers. · dd5d1380
      Ralf Baechle 提交于
      If Open Firmware / Device Tree support is enabled on a SNI RM kernel both
      <asm/mipsprom.h> and <asm/prom.h> will be included into some .c files.
      Since both headers use the same wrapper symbol only the inclusion of the
      first file will have an effect but the 2nd file will be ignored resulting
      in a build error.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      dd5d1380
    • R
      MIPS: PNX8550: Fix section mismatch · cba2efb6
      Ralf Baechle 提交于
      Triggered by pnx8550-jbs_defconfig and pnx8550-stb810_defconfig:
      
      WARNING: vmlinux.o(.text+0xc0c): Section mismatch in reference from the function prom_getcmdline() to the variable .init.data:arcs_cmdline
      The function prom_getcmdline() references
      the variable __initdata arcs_cmdline.
      This is often because prom_getcmdline lacks a __initdata
      annotation or the annotation of arcs_cmdline is wrong.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      cba2efb6
    • R
      MIPS: 32-bit: Fix number of argument to epoll_wait. · 5db6acdb
      Ralf Baechle 提交于
      The number of arguments only matters for syscalls with stack arguments that
      is using 5 or more argument slots so this is just cosmetic fix.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      5db6acdb
    • R
      MIPS: IP27: Sort out section mismatch. · 901f6169
      Ralf Baechle 提交于
      WARNING: vmlinux.o(.text+0x3059f8): Section mismatch in reference from the function pcibios_plat_dev_init() to the function .devinit.text:request_bridge_irq()
      The function pcibios_plat_dev_init() references
      the function __devinit request_bridge_irq().
      This is often because pcibios_plat_dev_init lacks a __devinit
      annotation or the annotation of request_bridge_irq is wrong.
      
      Fixing this one leads to:
      
      WARNING: vmlinux.o(.text+0x1790): Section mismatch in reference from the function request_bridge_irq() to the function .devinit.text:register_bridge_irq()
      The function request_bridge_irq() references
      the function __devinit register_bridge_irq().
      This is often because request_bridge_irq lacks a __devinit
      annotation or the annotation of register_bridge_irq is wrong.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      901f6169
    • R
      MIPS: cache: Provide cache flush operations for XFS · d9cdc901
      Ralf Baechle 提交于
      Until now flush_kernel_vmap_range() and invalidate_kernel_vmap_range() did
      not exist on MIPS resulting in heavy cache corruption on XFS filesystems.
      
      Left for the post-3.0 time: optimization and make this work with highmem,
      too.  Since the combination of highmem + cache aliases atm doesn't work
      this isn't a regression.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/2505/
      d9cdc901
  3. 02 10月, 2011 1 次提交
  4. 24 9月, 2011 1 次提交
  5. 21 9月, 2011 21 次提交
  6. 17 9月, 2011 2 次提交