1. 30 Sep, 2023 1 commit
  2. 23 Sep, 2023 2 commits
  3. 22 Sep, 2023 4 commits
  4. 20 Sep, 2023 2 commits
  5. 18 Sep, 2023 6 commits
  6. 16 Sep, 2023 1 commit
  7. 15 Sep, 2023 18 commits
  8. 14 Sep, 2023 1 commit
  9. 13 Sep, 2023 4 commits
  10. 12 Sep, 2023 1 commit
    • Peter Ujfalusi's avatar
      ALSA: core: Use dev_name of card_dev as debugfs directory name · 091c2848
      Peter Ujfalusi authored
      There is no need to use temporary string for the debugfs directory name as
      we can use the device name of the card.
      
      This change will also fixes the following compiler warning/error (W=1):
      
      sound/core/init.c: In function ‘snd_card_init’:
      sound/core/init.c:367:28: error: ‘%d’ directive writing between 1 and 10 bytes into a region of size 4 [-Werror=format-overflow=]
        367 |         sprintf(name, "card%d", idx);
            |                            ^~
      sound/core/init.c:367:23: note: directive argument in the range [0, 2147483646]
        367 |         sprintf(name, "card%d", idx);
            |                       ^~~~~~~~
      sound/core/init.c:367:9: note: ‘sprintf’ output between 6 and 15 bytes into a destination of size 8
        367 |         sprintf(name, "card%d", idx);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      
      The idx is guarantied to be less than SNDRV_CARDS (max 256 or 8) by the
      code in snd_card_init(), however the compiler does not see that.
      
      The warnings got brought to light by a recent patch upstream:
      commit 6d4ab2e9 ("extrawarn: enable format and stringop overflow warnings in W=1")
      Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
      Suggested-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
      Link: https://lore.kernel.org/r/20230912110113.3166-1-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      091c2848