Received: by 10.223.164.202 with SMTP id h10csp715390wrb; Tue, 14 Nov 2017 08:29:05 -0800 (PST) X-Google-Smtp-Source: AGs4zMYDIfRn5SQt+82esDBsXSQzgdD6RG+8uqWU921DAx+QDuY6Ponn2eYVFNKiqAz6kLjlMg56 X-Received: by 10.99.102.196 with SMTP id a187mr8350414pgc.346.1510676945436; Tue, 14 Nov 2017 08:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510676945; cv=none; d=google.com; s=arc-20160816; b=wQE2vNtSztgth1uEYP3C5qPqlzvMEdVEd4kcbj+Cif18/brP5n1hpLofZblK6Bt7zZ SsUYNHfVMxnA3hRz/IuAIs/Z8h8U3touPOGqDeVoIW802nDLUPTO8PYpFgHJUMCFynPG Y3Uv3rNZahdeiTpzQlTpVJyw6plWzIOrF66JDwOBmrHgrnRXDPNGVEbqb2915rOFB8Zl cMR2H54bhk3YzHOMaCSXuTE42SKz88LLr5nrW6XoA1d1+uyS24vUsZ7m8ZGK2KsE0/lo 5+t8+Jj3xNMbbNExVmjQTAjJn/P8wPVof1zC/lHnSb9wMzMOVIKh2boMMsSu1XImn2ni B+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=hTmP/VTnVEQiPeG+2wZnda+3uEcdVsmdk6einbbHcdw=; b=bWTYhw9z5XOC5MIGluXXDchrPzR5bZhlNuRBAGoRkw5tuGVz8XWrSc9zgUOjmY6gJq fqw0QZkK+uYuHZvdYYSWO2T19XlfC5TtFiISOnb5414NJPry6SvjqBgOpWF+KPM0U3Eb 2o8GvgSG4jUgg5FboYyxuHUHZa+24fzM6otmWHWgyrk4DY15+9AdS8EncMPk1d06Owb2 jmoh9a/DaZo2XyiO9t3Vy2GFk2ATOIlWIQiXoE69QvBiQxopwpE4n6Xa9ZBVN/978lmg KZGqZogAaGCfBBJYtNDGkT3HOLaXSsvF1ksN+AEhC1lbVdfUzBExPLr6FbpUQusivk3P A8pw== 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 y1si17855294pff.367.2017.11.14.08.28.52; Tue, 14 Nov 2017 08:29:05 -0800 (PST) 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 S1755576AbdKNPrB (ORCPT + 88 others); Tue, 14 Nov 2017 10:47:01 -0500 Received: from 19pmail.ess.barracuda.com ([64.235.154.231]:38416 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753792AbdKNPqx (ORCPT ); Tue, 14 Nov 2017 10:46:53 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1403.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 14 Nov 2017 15:46:37 +0000 Received: from mredfearn-linux.mipstec.com (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 14 Nov 2017 07:45:37 -0800 From: Matt Redfearn To: Ralf Baechle , James Hogan CC: , Matt Redfearn , , Boris Brezillon , Neil Armstrong , Krzysztof Kozlowski , "Tony Lindgren" , Vladimir Zapolskiy , Shawn Guo Subject: [PATCH 2/2] MIPS: RB532: Avoid undefined mac_pton without GENERIC_NET_UTILS Date: Tue, 14 Nov 2017 15:44:23 +0000 Message-ID: <1510674263-14065-2-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510674263-14065-1-git-send-email-matt.redfearn@mips.com> References: <1510674263-14065-1-git-send-email-matt.redfearn@mips.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] X-BESS-ID: 1510674389-321459-22243-73736-3 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186917 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently MIPS allnoconfig with CONFIG_MIKROTIK_RB532=y fails to link due to missing support for mac_pton(): LD vmlinux arch/mips/rb532/devices.o: In function `setup_kmac': devices.c:(.init.text+0xc): undefined reference to `mac_pton' Rather than adding dependencies to the platform to force inclusion of GENERIC_NET_UTILS which is selected by CONFIG_NET, just exclude the setup of the MAC address if CONFIG_NET is not selected in the kernel config. Signed-off-by: Matt Redfearn --- arch/mips/rb532/devices.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 32ea3e6731d6..354d258396ff 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -310,6 +310,8 @@ static int __init plat_setup_devices(void) return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs)); } +#ifdef CONFIG_NET + static int __init setup_kmac(char *s) { printk(KERN_INFO "korina mac = %s\n", s); @@ -322,4 +324,6 @@ static int __init setup_kmac(char *s) __setup("kmac=", setup_kmac); +#endif /* CONFIG_NET */ + arch_initcall(plat_setup_devices); -- 2.7.4 From 1584137140070970947@xxx Wed Nov 15 13:01:44 +0000 2017 X-GM-THRID: 1584130856174921837 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread