From patchwork Thu Oct 2 14:14:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 395962 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 7778B14016B for ; Fri, 3 Oct 2014 00:08:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752410AbaJBOIW (ORCPT ); Thu, 2 Oct 2014 10:08:22 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:57543 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751815AbaJBOIV (ORCPT ); Thu, 2 Oct 2014 10:08:21 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj1so2509718pad.1 for ; Thu, 02 Oct 2014 07:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=vqdrezbu2g8LQ3dsJ9n01Dm3589ZlsLOUVWu72Gp2GQ=; b=SVq+QAnVbE0eOOPtw64pE7YzmF4V+t3rzC9giWxoJxqTLMXWPQlo9rWkw5XMMI0QEl 5Un6hrSKuURKWrXGu2BscVt4CuOWpG/ObvO62IdX3u6o4j48Su8yOh3on26L0TuXnQb5 9BHQrDZi5HyVUT5qVw5k/cjn6Af1927y5PZeN+BbEhGX/iXek/UGDv6gzdwlXpXUfpX+ LnuqHpJHY4PSPxUXvpwqlRDelsPHF+64RDQf4WLvLOHWwtErKoopYzKdc1jk2C1fQD2v GiB7kR/dVPVIOeXi0sEJ+2JBtFQbryk5jPrTogL36Hbd2Jr6HjpBBtNYjtEErGYmYBeM 4Wkg== X-Received: by 10.66.157.231 with SMTP id wp7mr2547551pab.151.1412258900615; Thu, 02 Oct 2014 07:08:20 -0700 (PDT) Received: from ShengShiZhuChengdeMacBook-Pro.local ([223.72.65.51]) by mx.google.com with ESMTPSA id y11sm3704635pbv.54.2014.10.02.07.08.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 07:08:19 -0700 (PDT) Message-ID: <542D5DAC.4010001@gmail.com> Date: Thu, 02 Oct 2014 22:14:04 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: davem@davemloft.net, f.fainelli@gmail.com, leitec@staticky.com, andrew@lunn.ch CC: "netdev@vger.kernel.org" , Richard Weinberger , "linux-kernel@vger.kernel.org" Subject: [PATCH] drivers/net/dsa/Kconfig: Let NET_DSA_BCM_SF2 depend on HAS_IOMEM Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org NET_DSA_BCM_SF2 need HAS_IOMEM, so depend on it, the related error (with allmodconfig under um): CC [M] drivers/net/dsa/bcm_sf2.o drivers/net/dsa/bcm_sf2.c: In function ‘bcm_sf2_sw_setup’: drivers/net/dsa/bcm_sf2.c:487:3: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration] iounmap(*base); ^ Signed-off-by: Chen Gang Acked-by: Florian Fainelli --- drivers/net/dsa/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index ea0697e..9234d80 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig @@ -47,6 +47,7 @@ config NET_DSA_MV88E6171 config NET_DSA_BCM_SF2 tristate "Broadcom Starfighter 2 Ethernet switch support" + depends on HAS_IOMEM select NET_DSA select NET_DSA_TAG_BRCM select FIXED_PHY if NET_DSA_BCM_SF2=y