1. 17 Aug, 2014 2 commits
    • Lars-Peter Clausen's avatar
      ASoC: samsung idma: Add proper annotation for casting iomem pointers · e8a70c25
      Lars-Peter Clausen authored
      It is not always possible to interchange iomem pointers with normal pointers,
      which why we have annotations for iomem pointers and warn when casting them to a
      normal pointer or vice versa. In this case the casting is fine and unfortunately
      necessary so add the proper annotations to tell code checkers that it is
      intentional. This silences the following warnings from sparse:
      	sound/soc/samsung/idma.c:354:20: warning: incorrect type in argument 1
      	 (different address spaces) expected void volatile [noderef]
      	  <asn:2>*addr got unsigned char *area
      	sound/soc/samsung/idma.c:372:22: warning: cast removes address space of
      	 expression
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      e8a70c25
    • Lars-Peter Clausen's avatar
      ASoC: odrodix2_max98090: Make non exported symbols static · d80a12f9
      Lars-Peter Clausen authored
      odroidx2_drvdata and odroidu3_drvdata are not used outside this module so make
      them static (and also const while we are at it).
      
      Fixes the following warnings from sparse:
          sound/soc/samsung/odroidx2_max98090.c:69:26: warning: symbol
           'odroidx2_drvdata' was not declared. Should it be static?
          sound/soc/samsung/odroidx2_max98090.c:74:26: warning: symbol
           'odroidu3_drvdata' was not declared. Should it be static?
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      d80a12f9
  2. 16 Aug, 2014 38 commits