From patchwork Wed Jun 24 08:21:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Tripathi X-Patchwork-Id: 488005 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7E23814007F for ; Wed, 24 Jun 2015 18:22:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641AbbFXIWe (ORCPT ); Wed, 24 Jun 2015 04:22:34 -0400 Received: from denmail01-v4020.amcc.com ([192.195.68.30]:33824 "EHLO denmail01.amcc.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750847AbbFXIWb (ORCPT ); Wed, 24 Jun 2015 04:22:31 -0400 Received: from apm.com (pnqlwv037.amcc.com [10.48.19.137]) by denmail01.amcc.com (8.13.8/8.13.8) with ESMTP id t5O8M8eO025135; Wed, 24 Jun 2015 02:22:09 -0600 Received: (from stripath@localhost) by apm.com (8.13.8/8.13.8/Submit) id t5O8M80u012504; Wed, 24 Jun 2015 13:52:08 +0530 From: Suman Tripathi To: davem@davemloft.net, netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, kchudgar@apm.com, patches@apm.com, isubramanian@apm.com, Suman Tripathi Subject: [PATCH net-next v1 1/1] drivers: net: xgene: Fix the compilation error "error: implicit declaration of function 'acpi_evaluate_integer'" in APM X-Gene ethernet driver. Date: Wed, 24 Jun 2015 13:51:40 +0530 Message-Id: <1435134100-12460-2-git-send-email-stripathi@apm.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1435134100-12460-1-git-send-email-stripathi@apm.com> References: <1435134100-12460-1-git-send-email-stripathi@apm.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch guards the acpi_evaluate_interger function as it fails the build for NON_ACPI CONFIG. Signed-off-by: Iyappan Subramanian Signed-off-by: Suman Tripathi Reported-by: kbuild test robot --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 4e83d4c..70b9ef6 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = { .ndo_set_mac_address = xgene_enet_set_mac_address, }; +#ifdef CONFIG_ACPI static int xgene_get_port_id_acpi(struct device *dev, struct xgene_enet_pdata *pdata) { @@ -886,6 +887,7 @@ static int xgene_get_port_id_acpi(struct device *dev, return 0; } +#endif static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata) {