1. 31 10月, 2013 2 次提交
    • W
      Kind of revert "powerpc: 52xx: provide a default in mpc52xx_irqhost_map()" · 509a02df
      Wolfram Sang 提交于
      This more or less reverts commit 6391f697.
      Instead of adding an unneeded 'default', mark the variable to prevent
      the false positive 'uninitialized var'. The other change (fixing the
      printout) needs revert, too. We want to know WHICH critical irq failed,
      not which level it had.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      Acked-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      509a02df
    • G
      powerpc/mpc512x: silence build warning upon disabled DIU · 45d20e83
      Gerhard Sittig 提交于
      a disabled Kconfig option results in a reference to a not implemented
      routine when the IS_ENABLED() macro is used for both conditional
      implementation of the routine as well as a C language source code test
      at the call site -- the "if (0) func();" construct only gets eliminated
      later by the optimizer, while the compiler already has emitted its
      warning about "func()" being undeclared
      
      provide an empty implementation for the mpc512x_setup_diu() and
      mpc512x_init_diu() routines in case of the disabled option, to avoid the
      compiler warning which is considered fatal and breaks compilation
      
      the bug appeared with commit 2abbbb63
      "powerpc/mpc512x: move common code to shared.c file", how to reproduce:
      
        make mpc512x_defconfig
        echo CONFIG_FB_FSL_DIU=n >> .config && make olddefconfig
        make
      
          CC      arch/powerpc/platforms/512x/mpc512x_shared.o
        .../arch/powerpc/platforms/512x/mpc512x_shared.c: In function 'mpc512x_init_early':
        .../arch/powerpc/platforms/512x/mpc512x_shared.c:456:3: error: implicit declaration of function 'mpc512x_init_diu' [-Werror=implicit-function-declaration]
        .../arch/powerpc/platforms/512x/mpc512x_shared.c: In function 'mpc512x_setup_arch':
        .../arch/powerpc/platforms/512x/mpc512x_shared.c:469:3: error: implicit declaration of function 'mpc512x_setup_diu' [-Werror=implicit-function-declaration]
        cc1: all warnings being treated as errors
        make[4]: *** [arch/powerpc/platforms/512x/mpc512x_shared.o] Error 1
      Signed-off-by: NGerhard Sittig <gsi@denx.de>
      CC: <stable@vger.kernel.org> # v3.11
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      45d20e83
  2. 30 10月, 2013 6 次提交
  3. 29 10月, 2013 7 次提交
  4. 11 10月, 2013 23 次提交
  5. 25 9月, 2013 1 次提交
  6. 11 9月, 2013 1 次提交