OpenCloudOS-Kernel/sound/pci/trident
Takashi Iwai d6b340d7cb ALSA: trident: Suppress gcc string warning
The meddlesome gcc warns about the possible shortname string in
trident driver code:
  sound/pci/trident/trident.c: In function ‘snd_trident_probe’:
  sound/pci/trident/trident.c:126:2: warning: ‘strcat’ accessing 17 or more bytes at offsets 36 and 20 may overlap 1 byte at offset 36 [-Wrestrict]
  strcat(card->shortname, card->driver);

It happens since gcc calculates the possible string size from
card->driver, but this can't be true since we did set the string just
before that, and they are much shorter.

For shutting it up, use the exactly same string set to card->driver
for strcat() to card->shortname, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-07-26 15:01:37 +02:00
..
Makefile [ALSA] Remove sequencer instrument layer 2008-01-31 17:29:13 +01:00
trident.c ALSA: trident: Suppress gcc string warning 2018-07-26 15:01:37 +02:00
trident.h ALSA: trident: Remove always NULL parameters 2015-01-02 16:34:06 +01:00
trident_main.c treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
trident_memory.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00