From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbaBVVhZ (ORCPT ); Sat, 22 Feb 2014 16:37:25 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47625 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbaBVVhY (ORCPT ); Sat, 22 Feb 2014 16:37:24 -0500 X-Originating-IP: 50.43.14.201 Date: Sat, 22 Feb 2014 13:36:40 -0800 From: Josh Triplett To: "H. Peter Anvin" Cc: Borislav Petkov , Andrew Morton , Andi Kleen , Feng Tang , Ingo Molnar , Jacob Shin , Jan Beulich , Jussi Kivilinna , "Kirill A. Shutemov" , Paul Gortmaker , Peter Zijlstra , "Rafael J. Wysocki" , Rob Landley , Seiji Aguchi , Stephane Eranian , Suravee Suthikulpanit , Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 2/2] x86: Support compiling out human-friendly processor feature names Message-ID: <20140222213640.GA3409@thin> References: <296de15c8addece6dada4ddac982b3934d8ff6fa.1393096111.git.josh@joshtriplett.org> <4bdaeab748d3b51ef24576ca030b5eb80455aff8.1393098813.git.josh@joshtriplett.org> <20140222204936.GA2534@pd.tnic> <20140222210038.GA19867@thin> <1b6550ce-40bd-4fc4-a3e4-37997da17973@email.android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b6550ce-40bd-4fc4-a3e4-37997da17973@email.android.com> 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 On Sat, Feb 22, 2014 at 01:18:14PM -0800, H. Peter Anvin wrote: > On February 22, 2014 1:00:39 PM PST, Josh Triplett wrote: > >On Sat, Feb 22, 2014 at 09:49:36PM +0100, Borislav Petkov wrote: > >> On Sat, Feb 22, 2014 at 11:57:10AM -0800, Josh Triplett wrote: > >> > diff --git a/arch/x86/boot/cpu.c b/arch/x86/boot/cpu.c > >> > index 6ec6bb6..29207f6 100644 > >> > --- a/arch/x86/boot/cpu.c > >> > +++ b/arch/x86/boot/cpu.c > >> > @@ -16,7 +16,9 @@ > >> > */ > >> > > >> > #include "boot.h" > >> > +#ifdef CONFIG_X86_FEATURE_NAMES > >> > #include "cpustr.h" > >> > +#endif > >> > >> You probably could get rid of this ifdef too by moving it into > >cpustr.h > >> after teaching arch/x86/boot/mkcpustr.c to issue it... > > > >That would require building and running mkcpustr, which doesn't happen > >when !CONFIG_X86_FEATURE_NAMES. (And it'd require adding ifdefs to > >mkcpustr instead, which seems counterproductive.) > > Didn't that change since v1? No, even after removing the ifdefs around the build rules as you suggested (and v3's fixes for the resulting build issues, notably changing some -y's to -$(CONFIG_X86_FEATURE_NAMES)), the makefiles still manage to not build mkcpustr or cpustr.h, because nothing depends on it. I could change the build rules to generate an empty cpustr.h and avoid this ifdef, but that'd require an additional ifdef block in the Makefile. - Josh Triplett