From patchwork Tue Sep 22 09:23:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 1368876 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=TQ8r5Ig0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BwbjT5Wrkz9sR4 for ; Tue, 22 Sep 2020 19:34:05 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8089A825BA; Tue, 22 Sep 2020 11:32:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="TQ8r5Ig0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D0FA8825AE; Tue, 22 Sep 2020 11:32:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20631.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::631]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9200825A3 for ; Tue, 22 Sep 2020 11:32:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zhiqiang.hou@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TOn9bRhbTtd9whoAG6qzEDT9fZOhxD02VnUl1J4HcIngcqTHAkv4bbmfqYZS5xDwqyTfTcH+bBvIu6ZyvPHHc5iSh2zwgMQnmRvlKDrIDLLKN3ADMbJPyuSB1CImf2wtLPltjpCemH2/JwN5VE306tnzDF8N90jIoNaDjJ814CH+AO9f5XlAgNKjfR+0xN3UHoDmtB9+5WpwebqxBWqdsCumG6Wf2g3+x7pkdr2H55l9va+r+trB21NlmOXXWJRv+skEABw/EbPgOqq2X7t53a+ZoenkrUkPh4vcjGjM0T5OPWi2iuoEvmKg/B8fFevC4LZzalBmE35DJKaKt9v1nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JWoeEXUvV/KQJs2fZv78Pzzdkemcg1LeBTIQsL/PteM=; b=gCPe4dPPxJNoo0kuPg9nTnVEsDskp4K06S3zuzgUnEudpd9dlYCmPs3C/2pSQ2IgQO+ZMGbVAppV7Xc6MUYAZNtX+bhjExmTpyipOD+jfbO1lQV49WmYPl9VIONhjK3HnRWu9JNzbBk+ZZbQ5MWh2N4B5pdkMJil/PIEZlY3wDer44ao1816OfJvbfUq9Gt/7KAdPI8CXumG4J6RFhaqDkjTMbTADEJNeb/8DvpdHwP7WFVwZ1ChV0G3EpM4ir4lT56SUdS60D3L2hGb3+/veGB6aX5lh1lxW8nGLCjO7BCcbC1jDA5nU7cemz95Nczp8XpnLS+cXz5kY9e2oYV5mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JWoeEXUvV/KQJs2fZv78Pzzdkemcg1LeBTIQsL/PteM=; b=TQ8r5Ig04Ffpp3ALCk0Jp2TS63HZrIS+BYU0Crsd+WdwUKe45l2hdHbeGfxzB8IDHJuyp6lO9mWbOeEFU5S3V+vm3ruFbk2HPwvoPVZtu0QrnlaXvaN9UEAJ+qhTHO0j9oM0+p3DQQ7ZdK446lf7necrLtUYopIM4zJCscrR7Gc= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR0402MB2889.eurprd04.prod.outlook.com (2603:10a6:3:d6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.17; Tue, 22 Sep 2020 09:32:38 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::c872:d354:7cf7:deb9]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::c872:d354:7cf7:deb9%3]) with mapi id 15.20.3391.026; Tue, 22 Sep 2020 09:32:38 +0000 From: Zhiqiang Hou To: u-boot@lists.denx.de, bmeng.cn@gmail.com, olteanv@gmail.com, priyanka.jain@nxp.com Cc: Hou Zhiqiang Subject: [PATCHv6 07/18] powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled Date: Tue, 22 Sep 2020 17:23:36 +0800 Message-Id: <20200922092347.19141-8-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200922092347.19141-1-Zhiqiang.Hou@nxp.com> References: <20200922092347.19141-1-Zhiqiang.Hou@nxp.com> X-ClientProxiedBy: SG2PR06CA0169.apcprd06.prod.outlook.com (2603:1096:1:1e::23) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by SG2PR06CA0169.apcprd06.prod.outlook.com (2603:1096:1:1e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 09:32:36 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.73] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3eccf2d3-4643-49f3-b5a7-08d85eda71db X-MS-TrafficTypeDiagnostic: HE1PR0402MB2889: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1751; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: azpQ1a0T68lMmxuei3qY25HOY+odG36EEl2SBmhTAjKSW1MorFctBY/CUKZv6QF7TDHWngQXD3/H2HmzQAFyLx78d+r8m1PipWN4R7IkiIwekbNWspd+UEhnUp9VoPq8NTqYqhYthR44P1Hrp2f30U3sIR+PXCrQqEnqWPKXk9cc9sYEdQ3dWpT7yUIiQb7wGttDKdd12/JwL+HBEW6ycFgRa4Bb+FIzlPpp4VuD3LSaygMaAVfZgdosMHwad1w/zfv0T/iIdnl8yqFF+PtBXfC58dNN1x47cg1OfQJceYoOpwL/NcIykIey74rTeIJBVuNO3OJdoQpqODP9aIHswarGKTATe8vnHHx7HhnkpuXQIQDLRXQZe6UxubnKIbIdFaglGdxX7LZI5KlB+oCz4xik56ywaV6QO4s4olmzXFA= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(136003)(396003)(39860400002)(346002)(8676002)(66946007)(6636002)(5660300002)(316002)(8936002)(6512007)(4744005)(4326008)(66556008)(66476007)(2906002)(186003)(26005)(478600001)(86362001)(69590400008)(6506007)(1076003)(52116002)(16526019)(956004)(6486002)(36756003)(2616005)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: oJAwrMYg1CuDr7Dh/sOLdqW9jerADhCUxE1G8NC09MOWDy/0tkX648TWBwxq9W2Zrtn5iaYYmOtIE4HQmjV6JVLY7BWmv7ZzwDgrq1/qCORNeeZ8RJpfzsNNVcgS++FDEI77U6ef3BujdizS2DYAgXxjpkoTBl17acoJX2RuyETbh+nrH6APWOVY02ErqrgbILLIM3AQuCA1W6hkY+TD/rqskUcJbo4fiQ8wevriuk5GGaXnx5U3hcDh1hz/+btIyG9d9WZrpTqdVh00F0aKVckW1CMNOOK27k/Intn1LLYQJqk3nwC0kI5GVD8lf7KZg8SvK4ybkwJJiw5xIldXDOXYkH4llzFcW9ke+faS9Elz5viWiZQ5Z7CRs07k/L3tDiDKrmiZhD57ZHdWmH1H5ZXYLlZxeVrqhrkoEaEy0RAguFLKH2wHSamUKksbn5b/kXqca3qocnSP9vc6JATt8Z0HYt+YSJO60ZbqxDxCrX6jOnDGj4ipxuUwH2xWPqbn+1Ysgrf+dR5mTGEItzNB3MB2T3kW0dNaDfonAwYMGNFCHi945el6Asho50JGG36ZMwZmqMNuWuULuEpXs5sM1ZrcRajFrFlLArkoqI72gIHaiWxf4J8WblJot+1wpdrLMAWL8/tQpeZLs6D5szH/JA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3eccf2d3-4643-49f3-b5a7-08d85eda71db X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 09:32:38.2998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wdo98AnFl1tap35RX7SEdHuE8YibZTgD6PvlW4eqdFSZ326bW1DCREPqFznEUYclMrTIBLD7GEnrDc7rzRqSUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2889 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Hou Zhiqiang The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. arch/powerpc/cpu/mpc8xxx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c index 2b24e755fa..67857c3760 100644 --- a/arch/powerpc/cpu/mpc8xxx/cpu.c +++ b/arch/powerpc/cpu/mpc8xxx/cpu.c @@ -347,6 +347,7 @@ int fixup_cpu(void) * Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ +#ifndef CONFIG_DM_ETH int cpu_eth_init(struct bd_info *bis) { #if defined(CONFIG_ETHER_ON_FCC) @@ -370,3 +371,4 @@ int cpu_eth_init(struct bd_info *bis) #endif return 0; } +#endif