From: Colin Ian King Date: Tue, 9 Aug 2022 18:15:44 +0000 (+0100) Subject: ALSA: usb-audio: make read-only array marker static const X-Git-Tag: v6.1-rc5~574^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b2394bad503bfada6f677ad2574b2ef8178b1bf;p=platform%2Fkernel%2Flinux-starfive.git ALSA: usb-audio: make read-only array marker static const Don't populate the read-only array marker on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20220809181544.3046429-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index e692ae0..d45d1d7 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -1269,7 +1269,7 @@ static inline void fill_playback_urb_dsd_dop(struct snd_usb_substream *subs, unsigned int wrap = subs->buffer_bytes; u8 *dst = urb->transfer_buffer; u8 *src = runtime->dma_area; - u8 marker[] = { 0x05, 0xfa }; + static const u8 marker[] = { 0x05, 0xfa }; unsigned int queued = 0; /*