From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751173AbdCQImB (ORCPT ); Fri, 17 Mar 2017 04:42:01 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:55960 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751065AbdCQIl7 (ORCPT ); Fri, 17 Mar 2017 04:41:59 -0400 Date: Fri, 17 Mar 2017 09:41:56 +0100 (CET) From: Thomas Gleixner To: Andi Kleen cc: LKML , Bjorn Helgaas , x86@kernel.org, Peter Anvin , Borislav Petkov , Peter Zijlstra , Stephane Eranian Subject: Re: [patch 6/7] x86/pci/mmcfg: Include 32/64 bit code into shared code In-Reply-To: <20170317002531.GN32070@tassilo.jf.intel.com> Message-ID: References: <20170316215002.726697858@linutronix.de> <20170316215057.374990930@linutronix.de> <20170317002531.GN32070@tassilo.jf.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Mar 2017, Andi Kleen wrote: > > --- a/arch/x86/pci/mmconfig-shared.c > > +++ b/arch/x86/pci/mmconfig-shared.c > > @@ -24,6 +24,12 @@ > > > > #define PREFIX "PCI: " > > > > +#ifdef CONFIG_X86_64 > > +# include "mmconfig_64.c" > > +#else > > +# include "mmconfig_32.c" > > +#endif > > This seems like a bad hack. If you want to access something from > multiple files just make it global, don't play preprocessor tricks. That's a leftover from an earlier iteration of the patches, where including the code made a significant text size difference. Forgot to recheck. With the current version the difference is minimal. I'll drop it. Thanks, tglx