Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp998125ybl; Fri, 16 Aug 2019 07:20:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCunOSkoiIFndPUWAB0EyIynfz2ekaANieC47rOibSNyEFSVytShYYIlPLfWUr/vBQSDlx X-Received: by 2002:a17:902:f30e:: with SMTP id gb14mr9623310plb.32.1565965259804; Fri, 16 Aug 2019 07:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565965259; cv=none; d=google.com; s=arc-20160816; b=MQOIsot6pON1F3V2sZF+fM06i9jk7yD6HsT7AE1WPCT0hQgRcOTlDGofitZoWgfxdQ xjsltLj065xgYtWu0JmooZOmhPgz6VqVVr4q5f6WcyBaYuv/ASnwyWNHV0MDTNpdzH9c WiTuBTKUXEQDolBOgF6KGcfL92+eGo/DHTusZS0BJjbZH6XN7ZrfjoxgM8y5jZtG22+l gE33pJzlj5VN+oL+n/ZQUuwGZ4HCiy4F05YHl8Mezp4URHeWcvugazq94u5fUrtzkVXY JX7MpGMiq9BGlCxx82MaSp24V9eD8bkPkAfAkYMCcuCA/sQ7LDbOLeUXTahPxZnaBBM3 FgwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=va4/mg1ZLfWHJjo+CZh+UaJnu8SGLlO86ZAtRbHpjSM=; b=jPUZ6gWsrwttCLG83MiiyaXZItdqSO6nZfwg8eoLaQrq41n4H+2oFt33uikGrHfFXf 0m9BqIvWAQFXCh3nyPhxHDKfhNwmxOKxM83YKDXqLN5xiEDJzYgBT7ktW89EQ3OFX7pL SbdsLi6+gCnM5kGOMRd0MWSHjVgIYKDZo7GHifg41iDpPUmf82ZzUwRtbeWQuPkccPx+ Q9LEG4OsF7znBAPYTiFTJ4XgjESBaFhfRfbdGYBQu4ZZHVYvpP1gU4/yAM9CDbiiyTy9 WIf/qPT9yneq68bhPLcc5Be1qUOgSotNM09XTj9GDz25+Vwc2sDhHREVxn5+v93s2JYl PSIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si3112595pjo.64.2019.08.16.07.20.44; Fri, 16 Aug 2019 07:20:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbfHPOSz (ORCPT + 99 others); Fri, 16 Aug 2019 10:18:55 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4708 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726786AbfHPOSz (ORCPT ); Fri, 16 Aug 2019 10:18:55 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 95EB0A9EC821E413B7E4; Fri, 16 Aug 2019 22:15:16 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Fri, 16 Aug 2019 22:15:08 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] soundwire: Fix -Wunused-function warning Date: Fri, 16 Aug 2019 22:14:09 +0800 Message-ID: <20190816141409.49940-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_ACPI is not set, gcc warning this: drivers/soundwire/slave.c:16:12: warning: 'sdw_slave_add' defined but not used [-Wunused-function] move them to #ifdef CONFIG_ACPI block. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/soundwire/slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/slave.c b/drivers/soundwire/slave.c index f39a581..34c7e65 100644 --- a/drivers/soundwire/slave.c +++ b/drivers/soundwire/slave.c @@ -6,6 +6,7 @@ #include #include "bus.h" +#if IS_ENABLED(CONFIG_ACPI) static void sdw_slave_release(struct device *dev) { struct sdw_slave *slave = dev_to_sdw_dev(dev); @@ -60,7 +61,6 @@ static int sdw_slave_add(struct sdw_bus *bus, return ret; } -#if IS_ENABLED(CONFIG_ACPI) /* * sdw_acpi_find_slaves() - Find Slave devices in Master ACPI node * @bus: SDW bus instance -- 2.7.4