Received: by 2002:ac0:adbb:0:0:0:0:0 with SMTP id o56-v6csp77966imb; Fri, 25 May 2018 14:39:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXGLU3DONIVVTGIJp+XwV3EECFuYjr+29Z+cOG2HOegZL3EmPsh3p9zMcQ4x851NzkH2M5 X-Received: by 2002:a17:902:8bcb:: with SMTP id r11-v6mr4221586plo.51.1527284368727; Fri, 25 May 2018 14:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527284368; cv=none; d=google.com; s=arc-20160816; b=TzIBvw/XSokqUeg1mDLuGqNjVmFT+WhbOcMgZPe4Pyx5wrp4VlUNJmR+VThY4J+xrJ 0v6mYJz5DERK0h0A78UPj6e+rbpGx3sIeZl4aB1qe8YMlgZFJVODcE7vjrU67KTwjjPj XCVnIUbnIkR9tjjTM+P6aYMgnB0AM/lM0rh7Dzy6aFwsM8V1Y7ysg50dAoorynB3lflL OMoZJolGyII3jFOR2Gh9/pFyw0q0C/8d/eU9PUxoNxPcer+mUnR9WYSSHNqyBIJO8LTZ 0cvgA2KL+6QNVOcWGpYIXAUiqWHJJNfNw0dDpGAo0NWefuwTL/Rk37gK4m2LrEo73uAl IW7Q== 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 x23-v6si6070080pgx.576.2018.05.25.14.39.13; Fri, 25 May 2018 14:39:28 -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 S1030605AbeEYVhb (ORCPT + 99 others); Fri, 25 May 2018 17:37:31 -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.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:JPcAZwiNhgkavDN4Bhbk/23Cw2ovy58EOQxA6F2SAFu0GgyFDtP Omm2Kow9Tl7wz6EiYtaG1l7zy2PgPpxKdl3BqHGYTrYr2UQJcXiotF9/FEiS2afQyo9z7tg CR83l6vOKfn8a8gmSYuZfzOElbejpF60LEzWVkzX/VSXplVh/0ZbaFsZpo1ZGcCqClciCxe 9YEN6nqN3HiAjZff9uDDw== X-UI-Out-Filterresults: notjunk:1;V01:K0:69QVh6dSxvg=:igmiAMIV/BrVqUjhyriCM0 YFjkoCnwGc2Q3/jSRoL0I1bdTQjOSlu11IY8mdkgqIpnyzNm1Tx7RxveqKfPTAg3ifzdOOSqu GzYzkRUp5hWV4bU4Gos0s4zVh7tpU01/u16yfzwfrvS8PRf+X5Z8EUBiP1q49xRcMOpqTWgNN YniXCT+s2hy0BXCc3cuWX5qHD1r7xbyTSlxmbZzgA+Q2h7SzlFuFKYvbpUM+v2mBAqxNgMTw+ ueRXZVQqkNIYrTWpsj2sbwVfQjxfVxgaL+x5srRQX7ORCScIJt2Ehelkf2q6vFy0XVL0hjZpt ZMpXz/n3K3Z1CCqHZTJ/biKe1UrFnUuX6A1P/DWOEy5ByUQyt/VXhQIr7KKKklAdtLhCTkboJ wLVq1uH7HgFHqvdE9Q5JiVJSAHw+iGo30AoISyvAVk75MSmd+T5BtayAGXit/Q7j0/zUWSORR sb7TUJh8IjcwXozRaxA2CyTvar2Hr844/7vYQjrfnLHfq9/J660z2+Ibek9GV0oH/CU8Q6pne tkNY2y9YsXUKTHbeYLdbDE+GKrHoDsW5IOl91UTG2yGYBo0hEPf2r31VqZmXGhwKyANAtSCdA zfMCBIflmCf8rWgz8Tejn4QUPT8qGO74m1aFgtN7JpUkcGKKpzt3YXQds5Vf7ZcNn7xU7U9Bk LqiXD91ft6evQMT8Bfli5ICMzM+dkeALBCf3XYxLbdm1A1o4iFV0LtmEKqzngeKAiaOk= Sender: linux-kernel-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(+) 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) { -- 2.9.0