1. 04 2月, 2013 8 次提交
  2. 04 1月, 2013 1 次提交
    • G
      MIPS: drivers: remove __dev* attributes. · 28eb0e46
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      28eb0e46
  3. 03 1月, 2013 1 次提交
    • J
      MIPS: 64-bit: Fix build if !CONFIG_MODULES · 2f12fb20
      Joshua Kinard 提交于
      Fix build failure if building a monolithic kernel due to
      arch/mips/kernel/Kconfig selecting MODULES_USE_ELF_REL[A] without checking
      to see if MODULES is set or not.  This leads to 'struct module' not
      existing, which triggers a compile failure in arch/mips/kernel/module-rela.c
      when the compiler attempts to dereference me->name:
      
        CC      arch/mips/kernel/module-rela.o
      arch/mips/kernel/module-rela.c: In function ‘apply_r_mips_26_rela’:
      arch/mips/kernel/module-rela.c:38:74: error: dereferencing pointer to incomplete type
      arch/mips/kernel/module-rela.c:46:12: error: dereferencing pointer to incomplete type
      arch/mips/kernel/module-rela.c: In function ‘apply_relocate_add’:
      arch/mips/kernel/module-rela.c:133:13: error: dereferencing pointer to incomplete type
      make[2]: *** [arch/mips/kernel/module-rela.o] Error 1
      Signed-off-by: NJoshua Kinard <kumba@gentoo.org>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/4749/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2f12fb20
  4. 29 12月, 2012 6 次提交
  5. 27 12月, 2012 6 次提交
  6. 20 12月, 2012 3 次提交
  7. 14 12月, 2012 15 次提交
    • R
      MIPS: PMC-Sierra Yosemite: Remove support. · bdf20507
      Ralf Baechle 提交于
      Nobody seems to be interested anymore and upstream also never had an
      ethernet driver.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      bdf20507
    • R
      MIPS: wrppmc: Fix build of PCI code. · 5613d482
      Ralf Baechle 提交于
        CC      arch/mips/wrppmc/pci.o
      /home/ralf/src/linux/linux-mips/arch/mips/wrppmc/pci.c: In function ‘gt64120_pci_init’:
      /home/ralf/src/linux/linux-mips/arch/mips/wrppmc/pci.c:41:6: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors
      
      This warning exists in gcc 4.6.0 and newer.  Kernels 2.6.40 and newer use
      -Wunused-but-set-variable to suppress it.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      5613d482
    • R
      MIPS: IP22/IP28: Fix build of EISA code. · b2f711d4
      Ralf Baechle 提交于
        CC      arch/mips/sgi-ip22/ip22-eisa.o
      /home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c: In function ‘ip22_eisa_intr’:
      /home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c:77:11: error: variable ‘dma2’ set but not used [-Werror=unused-but-set-variable]
      /home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c:77:5: error: variable ‘dma1’ set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors
      
      This warning exists in gcc 4.6.0 and newer.  Kernels 2.6.40 and newer use
      -Wunused-but-set-variable to suppress it.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b2f711d4
    • R
      MIPS: RB532: Fix build of prom code. · 66315e15
      Ralf Baechle 提交于
        CC      arch/mips/rb532/prom.o
      /home/ralf/src/linux/linux-mips/arch/mips/rb532/prom.c: In function ‘prom_setup_cmdline’:
      /home/ralf/src/linux/linux-mips/arch/mips/rb532/prom.c:75:22: error: variable ‘prom_envp’ set but not used [-Werror=unused-but-set-variable]
      
      This warning exists in gcc 4.6.0 and newer.  Kernels 2.6.40 and newer use
      -Wunused-but-set-variable to suppress it.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      66315e15
    • R
      MIPS: PowerTV: Fix build. · ae1242a5
      Ralf Baechle 提交于
        CC      arch/mips/powertv/init.o
      /home/ralf/src/linux/linux-mips/arch/mips/powertv/init.c: In function ‘mips_nmi_setup’:
      /home/ralf/src/linux/linux-mips/arch/mips/powertv/init.c:80:8: error: variable ‘base’ set but not used [-Werror=unused-but-set-variable]
      /home/ralf/src/linux/linux-mips/arch/mips/powertv/init.c: In function ‘mips_ejtag_setup’:
      /home/ralf/src/linux/linux-mips/arch/mips/powertv/init.c:94:8: error: variable ‘base’ set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors
      
      As these two functions are, they don't serve any useful purpose so I've
      deleted them entirely.
      
      This warning exists in gcc 4.6.0 and newer.  Kernels 2.6.40 and newer use
      -Wunused-but-set-variable to suppress it.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ae1242a5
    • D
      MIPS: IP27: Correct fucked grammar in ops-bridge.c · 686957e7
      Dave Jones 提交于
      I had no idea just how broken IOC3 was until I read this.
      Signed-off-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      686957e7
    • R
      MIPS: Highmem: Fix build error if CONFIG_DEBUG_HIGHMEM is disabled · b99fbc10
      Ralf Baechle 提交于
        CC      arch/mips/mm/highmem.o
      /home/ralf/src/linux/linux-mips/arch/mips/mm/highmem.c: In function ‘__kunmap_atomic’:
      /home/ralf/src/linux/linux-mips/arch/mips/mm/highmem.c:70:6: error: variable ‘type’ set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors
      
      This warning exists in gcc 4.6.0 and newer.  Kernels 2.6.40 and newer use
      -Wunused-but-set-variable to suppress it.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b99fbc10
    • R
      MIPS: Fix potencial corruption · a16dad77
      Ralf Baechle 提交于
      Normally r4k_dma_cache_inv should only ever be called with cacheline
      aligned addresses.  If however, it isn't there is the theoretical
      possibility of data corruption.  There is no correct way of handling this
      and anyway, it should only happen if the DMA API is used incorrectly
      so drop
      
      There is a different corruption scenario with these CACHE instructions
      removed but again there is no way of handling this correctly and it can
      be triggered only through incorrect use of the DMA API.
      
      So just get rid of the complexity.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Reported-by: NJames Rodriguez <jamesr@juniper.net>
      a16dad77
    • R
      MIPS: Fix for warning from FPU emulation code · 51d943f0
      Ralf Baechle 提交于
      The default implementation of 'cpu_has_fpu' macro calls
      smp_processor_id() which causes this warning to be printed when
      preemption is enabled:
      
      [    4.664000] Algorithmics/MIPS FPU Emulator v1.5
      [    4.676000] BUG: using smp_processor_id() in preemptible [00000000] code: ini
      [    4.700000] caller is fpu_emulator_cop1Handler+0x434/0x27b8
      
      This problem got introduced in November 2009 by
      af1d2af877ef6c36990671bc86a5b9c5bb50b1da (lmo) [MIPS: Fix emulation of
      64-bit FPU on 64-bit CPUs.] rsp.  da0bac33
      (kernel.org) [MIPS: Fix emulation of 64-bit FPU on FPU-less 64-bit CPUs.]
      in 2.6.32.
      
      Fixed by rewriting cop1_64bit() to return a constant whenever possible
      but most importantly avoid the use pf cpu_has_fpu entirely.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Reported-by: NJayachandran C <jchandra@broadcom.com>
      Initial-patch-by: NJayachandran C <jchandra@broadcom.com>
      Patchwork: https://patchwork.linux-mips.org/patch/4225/
      51d943f0
    • M
      MIPS: Handle COP3 Unusable exception as COP1X for FP emulation · 051ff44a
      Maciej W. Rozycki 提交于
       Our FP emulator is hardcoded for the MIPS IV FP instruction set and does
      not match the FP ISA with the general ISA.  However for the few MIPS IV FP
      instructions that use the COP1X major opcode it relies on the Coprocessor
      Unusable exception to be delivered as a COP1 rather than COP3 exception.
      This includes indexed transfer (LDXC1, etc.) and FP multiply-accumulate
      (MADD.D, etc.) instructions.
      
       All the MIPS I, II, III and IV processors and some newer chips that do not
      implement the FPU use the COP3 exception however.  Therefore I believe the
      kernel should follow and redirect any COP3 Unusable traps to the emulator
      unless an actual FPU part or core is present.
      
       This is a change that implements it.  Any minor opcode encodings that are
      not recognised as valid FP instructions are rejected by the emulator and
      will result in a SIGILL signal being delivered as they currently do.  We
      do not support vendor-specific coprocessor 3 implementations supported
      with MIPS I and MIPS II ISA processors; we never set CP0.Status.CU3.
      
      [Ralf: On MIPS IV processors the kernel always enables the XX bit which
      replaces the CU3 bit off earlier architecture revisions.]
      
       If matching between the CPU and the FPU ISA is considered required one
      day, this can still be done in the emulator itself.  I think the CpU
      exception dispatcher is not the right place to do this anyway, as there
      are further differences between MIPS I, MIPS II, MIPS III, MIPS IV and
      MIPS32 FP ISAs.
      
       Corresponding explanation of this implementation is included within the
      change itself.
      Signed-off-by: NMaciej W. Rozycki <macro@codesourcery.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/project/linux-mips/list/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      051ff44a
    • H
      MIPS: Fix poweroff failure when HOTPLUG_CPU configured. · 8add1ecb
      Huacai Chen 提交于
      When poweroff machine, kernel_power_off() call disable_nonboot_cpus().
      And if we have HOTPLUG_CPU configured, disable_nonboot_cpus() is not an
      empty function but attempt to actually disable the nonboot cpus. Since
      system state is SYSTEM_POWER_OFF, play_dead() won't be called and thus
      disable_nonboot_cpus() hangs. Therefore, we make this patch to avoid
      poweroff failure.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Signed-off-by: NHongliang Tao <taohl@lemote.com>
      Signed-off-by: NHua Yan <yanh@lemote.com>
      Cc: Yong Zhang <yong.zhang@windriver.com>
      Cc: stable@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/4211/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      8add1ecb
    • F
      MIPS: MT: Fix build with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y · b88fb18e
      Florian Fainelli 提交于
      When CONFIG_UIDGID_STRICT_TYPE_CHECKS is enabled, plain integer checking
      between different uids/gids is explicitely turned into a build failure
      by making the k{uid,gid}_t types a structure containing a value:
      
      arch/mips/kernel/mips-mt-fpaff.c: In function 'check_same_owner':
      arch/mips/kernel/mips-mt-fpaff.c:53:22: error: invalid operands to
      binary == (have 'kuid_t' and 'kuid_t')
      arch/mips/kernel/mips-mt-fpaff.c:54:15: error: invalid operands to
      binary == (have 'kuid_t' and 'kuid_t')
      
      In order to ensure proper comparison between uids, using the helper
      function uid_eq() which performs the right thing whenever this config
      option is turned on or off.
      Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
      Patchwork: https://patchwork.linux-mips.org/patch/4717/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      b88fb18e
    • P
      MIPS: Remove unused smvp.h · a685bc3d
      Paul Bolle 提交于
      This header was added in commit 39b8d525
      (kernel.org) / b6e90cd0ae7a556080d9ea2ec1b8f6d9accad9d4 (lmo( ([MIPS] Add
      support for MIPS CMP platform.).  None of the functions it declared were
      ever included in the tree. Commit cb7f39d2
      (kernel.org) / b6e90cd0ae7a556080d9ea2ec1b8f6d9accad9d4 (lmo) [MIPS] Remove
      unused maltasmp.h.] removeed the sole file that included it because that
      file was itself unused.
      
      [ralf@linux-mips.org: The whole mess happened because somebody at MIPS
      thought it was a good idea to rename VSMP ("Vitual SMP") to SMVP.  Which
      is an IBMeque ETLA in contrast to VSMP, so public kernels as opposed to
      MTI's inhouse kernels never followed suit.]
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/3950/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      a685bc3d
    • D
      MIPS/EDAC: Improve OCTEON EDAC support. · e1ced097
      David Daney 提交于
      Some initialization errors are reported with the existing OCTEON EDAC
      support patch.  Also some parts have more than one memory controller.
      
      Fix the errors and add multiple controllers if present.
      Signed-off-by: NDavid Daney <david.daney@cavium.com>
      e1ced097
    • D