From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754773AbdCQAit (ORCPT ); Thu, 16 Mar 2017 20:38:49 -0400 Received: from mga02.intel.com ([134.134.136.20]:34387 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752987AbdCQAis (ORCPT ); Thu, 16 Mar 2017 20:38:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,174,1486454400"; d="scan'208";a="61458038" Date: Thu, 16 Mar 2017 17:25:31 -0700 From: Andi Kleen To: Thomas Gleixner 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 Message-ID: <20170317002531.GN32070@tassilo.jf.intel.com> References: <20170316215002.726697858@linutronix.de> <20170316215057.374990930@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170316215057.374990930@linutronix.de> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > --- 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. -Andi