Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755773Ab3H1VPu (ORCPT ); Wed, 28 Aug 2013 17:15:50 -0400 Received: from mga09.intel.com ([134.134.136.24]:5495 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233Ab3H1VPq (ORCPT ); Wed, 28 Aug 2013 17:15:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,978,1367996400"; d="scan'208";a="369959097" Date: Wed, 28 Aug 2013 14:15:46 -0700 From: Sarah Sharp To: Sedat Dilek Cc: Dmitry Kasatkin , Greg Kroah-Hartman , Stephen Rothwell , linux-next , LKML , linux-usb@vger.kernel.org Subject: Re: linux-next: Tree for Aug 28 [ xhci build breakage ] Message-ID: <20130828211546.GH26483@xanatos> References: <521DD43D.7070605@samsung.com> <521DD6BD.4030700@samsung.com> <20130828165938.GA26483@xanatos> <521E3259.6040201@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1382 Lines: 39 On Wed, Aug 28, 2013 at 07:39:14PM +0200, Sedat Dilek wrote: > On Wed, Aug 28, 2013 at 7:24 PM, Dmitry Kasatkin wrote: > Still noone answered me why "drivers/usb/host/xhci-ring.c" does NOT > include (dev_info_ratelimited() and other defines). > I am expecting that... even I see... > > drivers/usb/host/.xhci-ring.o.cmd:715: include/linux/device.h \ > > ...where I don't know why this happens. > > ( For me this is a bit more important than """trimming""" my > responses, I keep the history... ) > > - Sedat - > > P.S.: List of includes in xhci-ring.c > > $ grep ^'#include' -nr drivers/usb/host/xhci-ring.c > 67:#include > 68:#include > 69:#include "xhci.h" > 70:#include "xhci-trace.h" Because a header that xhci-ring.c uses includes device.h instead. drivers/usb/host/xhci/xhci-ring.c includes drivers/usb/host/xhci.h which includes include/linux/usb.h which includes include/linux/device.h All USB host controllers depend on including usb.h, so I don't think there's a need for the driver to explicitly include device.h. Sarah Sharp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/