From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbcGND7Y (ORCPT ); Wed, 13 Jul 2016 23:59:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:34544 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbcGND7R (ORCPT ); Wed, 13 Jul 2016 23:59:17 -0400 Subject: Re: [PATCH 6/8] x86: xen: audit and remove any unnecessary uses of module.h To: Paul Gortmaker , linux-kernel@vger.kernel.org References: <20160714001901.31603-1-paul.gortmaker@windriver.com> <20160714001901.31603-7-paul.gortmaker@windriver.com> Cc: Boris Ostrovsky , David Vrabel , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, xen-devel@lists.xenproject.org From: Juergen Gross Message-ID: <57870E0E.9090601@suse.com> Date: Thu, 14 Jul 2016 05:59:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20160714001901.31603-7-paul.gortmaker@windriver.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/07/16 02:18, Paul Gortmaker wrote: > Historically a lot of these existed because we did not have > a distinction between what was modular code and what was providing > support to modules via EXPORT_SYMBOL and friends. That changed > when we forked out support for the latter into the export.h file. > > This means we should be able to reduce the usage of module.h > in code that is obj-y Makefile or bool Kconfig. The advantage > in doing so is that module.h itself sources about 15 other headers; > adding significantly to what we feed cpp, and it can obscure what > headers we are effectively using. > > Since module.h was the source for init.h (for __init) and for > export.h (for EXPORT_SYMBOL) we consider each obj-y/bool instance > for the presence of either and replace as needed. > > Cc: Boris Ostrovsky > Cc: David Vrabel > Cc: Juergen Gross > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: xen-devel@lists.xenproject.org > Signed-off-by: Paul Gortmaker Acked-by: Juergen Gross Juergen