Skip to content
Snippets Groups Projects
  1. Feb 28, 2022
  2. Jun 12, 2021
  3. Mar 17, 2021
  4. Feb 25, 2021
  5. Jan 25, 2021
  6. Sep 25, 2020
  7. Mar 06, 2020
  8. Jan 03, 2020
  9. Dec 11, 2019
  10. Nov 06, 2019
  11. Oct 07, 2019
  12. May 30, 2019
  13. May 21, 2019
  14. Feb 01, 2019
  15. Sep 04, 2018
  16. Jul 18, 2018
  17. Nov 29, 2017
  18. Aug 19, 2017
  19. Aug 17, 2017
  20. Jun 16, 2017
  21. May 30, 2017
    • Bhumika Goyal's avatar
      ALSA: declare snd_kcontrol_new structures as const · 905e46ac
      Bhumika Goyal authored
      
      Declare snd_kcontrol_new structures as const as they are only passed an
      argument to the function snd_ctl_new1. This argument is of type const,
      so snd_kcontrol_new structures having this property can be made const.
      Done using Coccinelle:
      
      @r disable optional_qualifier@
      identifier x;
      position p;
      @@
      static struct snd_kcontrol_new x@p={...};
      
      @ok@
      identifier r.x;
      position p;
      @@
      snd_ctl_new1(&x@p,...)
      
      @bad@
      position p != {r.p,ok.p};
      identifier r.x;
      @@
      x@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.x;
      @@
      +const
      struct snd_kcontrol_new x;
      
      Cross compiled these files:
      sound/aoa/codecs/tas.c - powerpc
      sound/mips/{hal2.c/sgio2audio.c} - mips
      sound/ppc/{awacs.c/beep.c/tumbler.c} - powerpc
      sound/soc/sh/siu_dai.c - sh
      Could not find an architecture to compile sound/sh/aica.c.
      
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Acked-by: default avatarMark Brown <broonie@kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      905e46ac
  22. May 25, 2017
  23. Jan 16, 2017
    • Arnd Bergmann's avatar
      ALSA: mips: avoid potential uninitialized variable use · 8b169cb2
      Arnd Bergmann authored
      
      MIPS allmodconfig results in this warning:
      
      sound/mips/hal2.c: In function 'hal2_gain_get':
      sound/mips/hal2.c:224:35: error: 'r' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      sound/mips/hal2.c:223:35: error: 'l' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      sound/mips/hal2.c: In function 'hal2_gain_put':
      sound/mips/hal2.c:260:13: error: 'new' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      sound/mips/hal2.c:260:13: error: 'old' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      Returning an error for all unexpected cases shuts up the warning
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      8b169cb2
  24. Feb 08, 2016
  25. Jun 15, 2015
  26. Apr 05, 2015
  27. Oct 21, 2014
  28. Oct 20, 2014
  29. May 28, 2014
  30. Apr 09, 2014
  31. Feb 14, 2014
  32. Nov 06, 2013
  33. May 06, 2013
Loading