44 lines
1.6 KiB
Diff
44 lines
1.6 KiB
Diff
|
From 6ad2a9763d9aaab30c0470d039877b1bb61dda3b Mon Sep 17 00:00:00 2001
|
|||
|
From: Mengdong Lin <mengdong.lin@linux.intel.com>
|
|||
|
Date: Tue, 27 Dec 2016 18:08:58 +0800
|
|||
|
Subject: [PATCH 01/43] ucm: Add ATTRIBUTE_UNUSED for unused parameters of
|
|||
|
execute_component_seq()
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
To fix the following warnings:
|
|||
|
|
|||
|
main.c: In function ‘execute_component_seq’:
|
|||
|
main.c:489:24: warning: unused parameter ‘value_list1’ [-Wunused-parameter]
|
|||
|
struct list_head *value_list1,
|
|||
|
^
|
|||
|
main.c:490:24: warning: unused parameter ‘value_list2’ [-Wunused-parameter]
|
|||
|
struct list_head *value_list2,
|
|||
|
^
|
|||
|
main.c:491:24: warning: unused parameter ‘value_list3’ [-Wunused-parameter]
|
|||
|
struct list_head *value_list3,
|
|||
|
^
|
|||
|
|
|||
|
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
|
|||
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|||
|
---
|
|||
|
src/ucm/main.c | 6 +++---
|
|||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|||
|
|
|||
|
--- a/src/ucm/main.c
|
|||
|
+++ b/src/ucm/main.c
|
|||
|
@@ -486,9 +486,9 @@ static int execute_sequence(snd_use_case
|
|||
|
*/
|
|||
|
static int execute_component_seq(snd_use_case_mgr_t *uc_mgr,
|
|||
|
struct component_sequence *cmpt_seq,
|
|||
|
- struct list_head *value_list1,
|
|||
|
- struct list_head *value_list2,
|
|||
|
- struct list_head *value_list3,
|
|||
|
+ struct list_head *value_list1 ATTRIBUTE_UNUSED,
|
|||
|
+ struct list_head *value_list2 ATTRIBUTE_UNUSED,
|
|||
|
+ struct list_head *value_list3 ATTRIBUTE_UNUSED,
|
|||
|
char *cdev)
|
|||
|
{
|
|||
|
struct use_case_device *device = cmpt_seq->device;
|