From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from 6.mo69.mail-out.ovh.net (6.mo69.mail-out.ovh.net [46.105.50.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3v79FG15PkzDqRP for ; Wed, 25 Jan 2017 01:15:29 +1100 (AEDT) Received: from player798.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo69.mail-out.ovh.net (Postfix) with ESMTP id 38CAF1803D for ; Tue, 24 Jan 2017 12:48:11 +0100 (CET) Date: Tue, 24 Jan 2017 12:48:05 +0100 From: Greg Kurz To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Frederic Barrat , Ian Munsie Subject: Re: [PATCH] cxl: drop unused header asm/pnv-pci.h Message-ID: <20170124124805.6b8e798f@bahia.lan> In-Reply-To: <87k29kaih9.fsf@concordia.ellerman.id.au> References: <148482301037.30441.14177888563610790803.stgit@bahia> <87k29kaih9.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 24 Jan 2017 20:57:06 +1100 Michael Ellerman wrote: > Greg Kurz writes: > > > The kernel API does not use anything from this header file. > > That's actually hard to prove in general, because pnv-pci.h includes > linux/pci.h, linux/pci_hotplug.h, linux/irq.h, misc/cxl-base.h and > asm/opal-api.h. At least four of which aren't included directly by > api.c. > > But I'll take you word for it :) > Sorry for the lack of details... api.c doesn't do anything related to pci hotplug, nor to OPAL. This happens in pci.c. It includes cxl.h which includes misc/cxl-base.h. The only generic irq bits are irq_hw_number_t, provided by linux/types.h, and irq_find_mapping(), provided by linux/irqdomain.h, which is included by misc/cxl-base.h -> linux/interrupt.h -> asm/irq.h. Cheers (and congrats :) -- Greg > cheers > > > diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c > > index 1b35e33d2434..bcc030eacab7 100644 > > --- a/drivers/misc/cxl/api.c > > +++ b/drivers/misc/cxl/api.c > > @@ -11,7 +11,6 @@ > > #include > > #include > > #include > > -#include > > #include > > #include > > #include