From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1213C2BA2B for ; Fri, 10 Apr 2020 11:57:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E0A120769 for ; Fri, 10 Apr 2020 11:57:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbgDJL5d (ORCPT ); Fri, 10 Apr 2020 07:57:33 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:35970 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbgDJL5d (ORCPT ); Fri, 10 Apr 2020 07:57:33 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 85BE7B3CD520036BAC6B; Fri, 10 Apr 2020 19:57:23 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 19:57:17 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] soundwire: intel: Make sdw_intel_init static Date: Fri, 10 Apr 2020 19:57:08 +0800 Message-ID: <20200410115708.27708-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.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/soundwire/intel_init.c:193:6: warning: symbol 'sdw_intel_init' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/soundwire/intel_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c index 4b769409f6f8..ad7053463889 100644 --- a/drivers/soundwire/intel_init.c +++ b/drivers/soundwire/intel_init.c @@ -190,7 +190,8 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level, * This scans the namespace and creates SoundWire link controller devices * based on the info queried. */ -void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res) +static void *sdw_intel_init(acpi_handle *parent_handle, + struct sdw_intel_res *res) { acpi_status status; -- 2.17.1