1. 01 11月, 2019 2 次提交
  2. 21 5月, 2019 1 次提交
  3. 29 9月, 2018 1 次提交
  4. 25 9月, 2018 2 次提交
  5. 21 9月, 2018 1 次提交
  6. 23 3月, 2018 1 次提交
  7. 22 2月, 2018 1 次提交
  8. 22 1月, 2018 1 次提交
  9. 16 1月, 2018 2 次提交
  10. 13 12月, 2017 1 次提交
  11. 27 11月, 2017 5 次提交
  12. 30 7月, 2017 1 次提交
  13. 29 6月, 2017 6 次提交
  14. 26 6月, 2017 6 次提交
  15. 24 6月, 2017 6 次提交
  16. 13 6月, 2017 1 次提交
  17. 15 5月, 2017 1 次提交
  18. 01 3月, 2017 1 次提交
    • A
      staging: fsl-mc: fix warning in DT ranges parser · a45e47f4
      Arnd Bergmann 提交于
      The fsl-mc-bus driver in staging contains a copy of the standard
      'ranges' property parsing algorithm with a hack to treat a missing
      property the same way as an empty one. This code produces false-positive
      warnings for me in an allmodconfig build:
      
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c: In function 'fsl_mc_bus_probe':
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c:645:6: error: 'mc_size_cells' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c:682:8: error: 'mc_addr_cells' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c:644:6: note: 'mc_addr_cells' was declared here
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c:684:8: error: 'paddr_cells' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      drivers/staging/fsl-mc/bus/fsl-mc-bus.c:643:6: note: 'paddr_cells' was declared here
      
      To avoid the warnings, I'm simplifying the argument handling to pass
      the number of valid ranges in the property as the function return code
      rather than passing it by reference. With this change, gcc can see that
      we don't evaluate the cell numbers for an missing ranges property.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLaurentiu Tudor <laurentiu.tudor@nxp.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a45e47f4