From patchwork Fri Feb 3 11:17:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 139353 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 B6E80B71B0 for ; Fri, 3 Feb 2012 22:17:13 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756163Ab2BCLQ7 (ORCPT ); Fri, 3 Feb 2012 06:16:59 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:44305 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756051Ab2BCLQ6 (ORCPT ); Fri, 3 Feb 2012 06:16:58 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 2DFFE1B4002; Fri, 3 Feb 2012 11:16:57 +0000 (UTC) From: Mike Frysinger To: netdev@vger.kernel.org, "David S. Miller" Subject: [PATCH] net: move ethtool include to where its used Date: Fri, 3 Feb 2012 06:17:02 -0500 Message-Id: <1328267822-25690-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.8.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The linux/mii.h headers has long been standalone for userspace. But a recent commit added linux/ethtool.h to the include list even when it isn't used. Since we only need this with __KERNEL__, move the include down to the right spot. Now userland no longer needs to pull this in. Signed-off-by: Mike Frysinger --- include/linux/mii.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/mii.h b/include/linux/mii.h index 2783eca..415b397 100644 --- a/include/linux/mii.h +++ b/include/linux/mii.h @@ -9,7 +9,6 @@ #define __LINUX_MII_H__ #include -#include /* Generic MII registers. */ #define MII_BMCR 0x00 /* Basic mode control register */ @@ -151,6 +150,7 @@ struct mii_ioctl_data { #ifdef __KERNEL__ +#include #include struct ethtool_cmd;