OSDN Git Service

topology: Add missing ATTRIBUTE_UNUSED
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 May 2020 14:35:45 +0000 (16:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 May 2020 14:38:27 +0000 (16:38 +0200)
... to shut up the compiler warnings.

Fixes: b6c9afb4f59b ("topology: implement snd_tplg_decode")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/pcm.c

index 61159d3..b15b950 100644 (file)
@@ -2053,20 +2053,22 @@ next:
 }
 
 /* decode dai from the binary input */
-int tplg_decode_dai(snd_tplg_t *tplg,
-                   size_t pos,
-                   struct snd_soc_tplg_hdr *hdr,
-                   void *bin, size_t size)
+int tplg_decode_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
+                   size_t pos ATTRIBUTE_UNUSED,
+                   struct snd_soc_tplg_hdr *hdr ATTRIBUTE_UNUSED,
+                   void *bin ATTRIBUTE_UNUSED,
+                   size_t size ATTRIBUTE_UNUSED)
 {
        SNDERR("not implemented");
        return -ENXIO;
 }
 
 /* decode cc from the binary input */
-int tplg_decode_cc(snd_tplg_t *tplg,
-                  size_t pos,
-                  struct snd_soc_tplg_hdr *hdr,
-                  void *bin, size_t size)
+int tplg_decode_cc(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
+                  size_t pos ATTRIBUTE_UNUSED,
+                  struct snd_soc_tplg_hdr *hdr ATTRIBUTE_UNUSED,
+                  void *bin ATTRIBUTE_UNUSED,
+                  size_t size ATTRIBUTE_UNUSED)
 {
        SNDERR("not implemented");
        return -ENXIO;