1. 21 May, 2013 7 commits
    • Ralf Baechle's avatar
      MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait. · fb40bc3e
      Ralf Baechle authored
      Without this, the
      
          WARN_ON_ONCE(irqs_disabled());
      
      in the idle loop will be triggered.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      fb40bc3e
    • Ralf Baechle's avatar
      c9b6869d
    • Ralf Baechle's avatar
      f91a148a
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
      MIPS: clock.h: Remove declaration of cpu_wait. · 1a461c5b
      Ralf Baechle authored
      Duplicate and has no business in this header file.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      1a461c5b
    • Ralf Baechle's avatar
      Add include dependencies to <linux/printk.h>. · 154c2670
      Ralf Baechle authored
      If <linux/linkage.h> has not been included before <linux/printk.h>,
      a build error like the below one will result:
      
        CC      arch/mips/kernel/idle.o
      In file included from arch/mips/kernel/idle.c:17:0:
      include/linux/printk.h:109:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:109:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:110:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:110:1: error: expected ‘,’ or ‘;’ before ‘int’
      include/linux/printk.h:114:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:114:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:115:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:115:1: error: expected ‘,’ or ‘;’ before ‘int’
      include/linux/printk.h:117:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:117:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:118:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:118:1: error: ‘__cold__’ attribute ignored [-Werror=attributes]
      include/linux/printk.h:118:1: error: expected ‘,’ or ‘;’ before ‘asmlinkage’
      include/linux/printk.h:122:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:122:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:123:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:123:1: error: ‘__cold__’ attribute ignored [-Werror=attributes]
      include/linux/printk.h:123:1: error: expected ‘,’ or ‘;’ before ‘int’
      In file included from include/linux/kernel.h:14:0,
                       from include/linux/sched.h:15,
                       from arch/mips/kernel/idle.c:18:
      include/linux/dynamic_debug.h: In function ‘ddebug_dyndbg_module_param_cb’:
      include/linux/dynamic_debug.h:124:3: error: implicit declaration of function ‘printk’ [-Werror=implicit-function-declaration]
      
      Fixed by including <linux/linkage.h>.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      154c2670
  2. 19 May, 2013 1 commit
    • Ralf Baechle's avatar
      MIPS: Rewrite pfn_valid to work in modules, too. · 8b923214
      Ralf Baechle authored
      This fixes:
      
        MODPOST 393 modules
      ERROR: "min_low_pfn" [arch/mips/kvm/kvm.ko] undefined!
      make[3]: *** [__modpost] Error 1
      
      It would have been possible to just export min_low_pfn but in the end
      pfn_valid should return 1 for any pfn argument for which a struct page
      exists so using min_low_pfn was wrong anyway.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      8b923214
  3. 18 May, 2013 32 commits