From patchwork Tue Feb 7 23:02:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9561469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1BF960413 for ; Tue, 7 Feb 2017 23:12:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 980AF28499 for ; Tue, 7 Feb 2017 23:12:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CB9B2849C; Tue, 7 Feb 2017 23:12:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66FD82849A for ; Tue, 7 Feb 2017 23:12:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932811AbdBGXLh (ORCPT ); Tue, 7 Feb 2017 18:11:37 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:32794 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932707AbdBGXLd (ORCPT ); Tue, 7 Feb 2017 18:11:33 -0500 Received: by mail-wm0-f65.google.com with SMTP id v77so30905252wmv.0; Tue, 07 Feb 2017 15:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lYhuQ4v0P99O+R7Th3fGSiwYdECJb1HWLx02D9ibDOY=; b=exgsBOvRVyw/sRZtZc67X5A6Mgsq8b50aI9nIQDkamcY2P2q1Ipvl+ARVYpCN/ajBp hK9tG+G2EwtApdRglKLuPSY1pAcxDpPM/zGFxgepWQSZd236MSb4eWnRMwgDvRWrw0PA lsTytzU3IJ5ekaQHtZey/FaflJQgPpnHFgsAqXYvoOYarRhAl9hIfJ3psECC4IUHqdSm cLdaU7wINf0aLbDRkQG6e1CnXYF8qqONT6ih5BWVLQ7+fZxH9ti11I4k7KKkgWS01OND qPeh8bNd99+B/ZlpS85OqmgNULMGYUXqw02d2dYBZ4FElvmqR90PgSgs/Ybq6rl0TiAd V8ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lYhuQ4v0P99O+R7Th3fGSiwYdECJb1HWLx02D9ibDOY=; b=T2MBSYmfuOY71nxU4fS594+YJhmUq1wKJYkTsYFm/9p5xw9ouNAH1tAXCEqDhldW/w P2WyZ14PdNbo5q5iEx4pwc8kR3+18B8pwcPFZCap8XmFRXfxBWkhHnV2eWZR2/IrIG3U kJ0UIEmNnOVuKDZFXLdIjdOnDb1ELlnivEzePVl9VTacDwjgtstXpSiUsRGOZYUrVvC5 L3+5xjjvVrSN+ojWIMTwATXuBQvmLb05H4zfyB+xWcF3zmdwk3ILA08Mte25cmh7+ZNK Izu/XzlKun74KliVqMwXDvhGjwj1xdGG56qtfRUIfLpjj6JTPhb9AJ1xJsWyxGj8Bdzv z0xg== X-Gm-Message-State: AMke39le/aIzrnqyoGcfB88oDHPlLIhX0PXJHlZgVNA/PdVXupKD4J1qPj4NyOIc0gqQnw== X-Received: by 10.28.215.200 with SMTP id o191mr14612330wmg.118.1486508654771; Tue, 07 Feb 2017 15:04:14 -0800 (PST) Received: from fainelli-desktop.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id b15sm9742283wra.4.2017.02.07.15.04.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 15:04:14 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org, linux-mips@linux-mips.org, linux-nfs@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, target-devel@vger.kernel.org Cc: Russell King , Andrew Lunn , Anna Schumaker , "David S. Miller" , Derek Chickles , Felix Manlunas , Florian Fainelli , "J. Bruce Fields" , Jeff Layton , Jiri Slaby , Kalle Valo , "Luis R. Rodriguez" , Madalin Bucur , Microchip Linux Driver Support , "Nicholas A. Bellinger" , Nick Kossifidis , Nicolas Ferre , Raghu Vatsavayi , Ralf Baechle , Satanand Burla , Thomas Petazzoni , Timur Tabi , Trond Myklebust , Vivien Didelot , Woojung Huh Subject: [PATCH net-next v2 03/12] net: macb: fix build errors when linux/phy*.h is removed from net/dsa.h Date: Tue, 7 Feb 2017 15:02:56 -0800 Message-Id: <20170207230305.18222-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170207230305.18222-1-f.fainelli@gmail.com> References: <20170207230305.18222-1-f.fainelli@gmail.com> Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Russell King drivers/net/ethernet/cadence/macb.h:862:33: sparse: expected ; at end of declaration drivers/net/ethernet/cadence/macb.h:862:33: sparse: Expected } at end of struct-union-enum-specifier drivers/net/ethernet/cadence/macb.h:862:33: sparse: got phy_interface drivers/net/ethernet/cadence/macb.h:877:1: sparse: Expected ; at the end of type declaration drivers/net/ethernet/cadence/macb.h:877:1: sparse: got } In file included from drivers/net/ethernet/cadence/macb_pci.c:29:0: drivers/net/ethernet/cadence/macb.h:862:2: error: unknown type name 'phy_interface_t' phy_interface_t phy_interface; ^~~~~~~~~~~~~~~ Add linux/phy.h to macb.h Signed-off-by: Russell King Acked-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index a2cf91223003..234a49eaccfd 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -10,6 +10,8 @@ #ifndef _MACB_H #define _MACB_H +#include + #define MACB_GREGS_NBR 16 #define MACB_GREGS_VERSION 2 #define MACB_MAX_QUEUES 8