From patchwork Fri May 25 21:37:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137000 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp90089lji; Fri, 25 May 2018 14:37:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoZPvJfizNjEOsMwSwEirPX64a8bkjkYERFWOL2pgmTDKsL7eIiiGxBhHwoKJH+Bfuh22zS X-Received: by 2002:a65:5ac9:: with SMTP id d9-v6mr3289482pgt.342.1527284254740; Fri, 25 May 2018 14:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527284254; cv=none; d=google.com; s=arc-20160816; b=dsqUysDo4PQUzLHHZj99eLWHI6M4jU7rYqNBOWAB2aZuErWTSLKDWFCo1DxswDxlVP /DjnvRvf/445WZFATgOps8SYPJK3IJnBe7X5dNpRfdL8LnpTNFcdkq+6jn/VHkyZV5v8 pi2euHy+Spn3w5bC4sGhGGPSs1rrdFv0cfqfnvnYePKRCeORdNVgIgNCGX4ewB9FOKdB xSaBVfpgVALppAubmqqVRM0ODqVfSKlIhkmidsdK9LiFwG/8jSP5pX90Vp7FIUmvniFA 7buaLkFNxG8ri1R4k3aL5/6FR0aLBG7x/cgFA8MemreJG3jNikWSm+ZXDyZYIDAkBi1j B+Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=loyrwW0NWuFFL93EVfek5hB7LIax2xGRmhiUW8uYOBI=; b=THuFiHmL5+axY5mgThGdAWpscfHABzxIymwCDfkAAmxN9gXPdj7Bup5RUZVQPSkczj TynyY4AbpT4nQ0FH/bJnIvSuPUyndhGnyGjd0qwoT5dzHkuizaHhXUrA4rpmLA4Gs2Ax B3G0OkG6PhZrGHBr9LkIFYSfgTM2C8mnTQzHdqMjg477M+qqwv7KOYx0vknYolvMqgRS Ada9ecKimHz+wrnYNeOuXP/xp791BLmK+xFoRiQuKWXPX4pDddYx9fFatXOVh3EkiaH0 P5XViMWxhrQVXn6rLMqUsIndASpDY0RtRTvdsy2R8M8Mt3uLXCC4QpkhEfe2or91MRzn qTCQ== 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 c9-v6si13583280pge.633.2018.05.25.14.37.34; Fri, 25 May 2018 14:37:34 -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 S1030608AbeEYVhc (ORCPT + 30 others); Fri, 25 May 2018 17:37:32 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:51351 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030216AbeEYVh0 (ORCPT ); Fri, 25 May 2018 17:37:26 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0LiCiR-1g9Snv0VHP-00nNg9; Fri, 25 May 2018 23:37:16 +0200 From: Arnd Bergmann To: Timur Tabi , "David S. Miller" Cc: Arnd Bergmann , Hemanth Puranik , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH, net-next] qcom-emag: hide ACPI specific functions Date: Fri, 25 May 2018 23:37:10 +0200 Message-Id: <20180525213714.2120604-1-arnd@arndb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owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A couple of functions in this file are only used when building with ACPI enabled, leading to a build warning on most architectures: drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:284:25: error: 'qdf2400_ops' defined but not used [-Werror=unused-variable] static struct sgmii_ops qdf2400_ops = { ^~~~~~~~~~~ drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:276:25: error: 'qdf2432_ops' defined but not used [-Werror=unused-variable] static struct sgmii_ops qdf2432_ops = { This hides all the unused functions by putting them into the corresponding #ifdef. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c index 562420b834df..01b80e0a5367 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c +++ b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c @@ -108,6 +108,7 @@ static void emac_sgmii_link_init(struct emac_adapter *adpt) writel(val, phy->base + EMAC_SGMII_PHY_AUTONEG_CFG2); } +#ifdef CONFIG_ACPI static int emac_sgmii_irq_clear(struct emac_adapter *adpt, u8 irq_bits) { struct emac_sgmii *phy = &adpt->phy; @@ -288,6 +289,7 @@ static struct sgmii_ops qdf2400_ops = { .link_change = emac_sgmii_common_link_change, .reset = emac_sgmii_common_reset, }; +#endif static int emac_sgmii_acpi_match(struct device *dev, void *data) {