From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757879Ab1I2XAH (ORCPT ); Thu, 29 Sep 2011 19:00:07 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:52561 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751620Ab1I2XAF (ORCPT ); Thu, 29 Sep 2011 19:00:05 -0400 Date: Thu, 29 Sep 2011 23:57:08 +0100 From: Alan Cox To: Randy Dunlap Cc: Stephen Rothwell , linux-next@vger.kernel.org, LKML , Andrew Morton , x86 maintainers Subject: Re: [PATCH -next] x86 mrst: fix build error when X86_MRST is not enabled Message-ID: <20110929235708.1bbd1166@lxorguk.ukuu.org.uk> In-Reply-To: <4E84D684.107@xenotime.net> References: <20110929165730.661cf28c9bb27b8a85432cd2@canb.auug.org.au> <4E84D684.107@xenotime.net> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWysKsSBQMIAwIZCwj///8wIhxoRDXH9QHCAAABeUlEQVQ4jaXTvW7DIBAAYCQTzz2hdq+rdg494ZmBeE5KYHZjm/d/hJ6NfzBJpp5kRb5PHJwvMPMk2L9As5Y9AmYRBL+HAyJKeOU5aHRhsAAvORQ+UEgAvgddj/lwAXndw2laEDqA4x6KEBhjYRCg9tBFCOuJFxg2OKegbWjbsRTk8PPhKPD7HcRxB7cqhgBRp9Dcqs+B8v4CQvFdqeot3Kov6hBUn0AJitrzY+sgUuiA8i0r7+B3AfqKcN6t8M6HtqQ+AOoELCikgQSbgabKaJW3kn5lBs47JSGDhhLKDUh1UMipwwinMYPTBuIBjEclSaGZUk9hDlTb5sUTYN2SFFQuPe4Gox1X0FZOufjgBiV1Vls7b+GvK3SU4wfmcGo9rPPQzgIabfj4TYQo15k3bTHX9RIw/kniir5YbtJF4jkFG+dsDK1IgE413zAthU/vR2HVMmFUPIHTvF6jWCpFaGw/A3qWgnbxpSm9MSmY5b3pM1gvNc/gQfwBsGwF0VCtxZgAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Sep 2011 13:35:16 -0700 Randy Dunlap wrote: > From: Randy Dunlap > > Fix build when CONFIG_X86_INTEL_MID is enabled but > CONFIG_X86_MRST is not enabled. Fixes this build error: This looks wrong. Unfortunately until we get kernel.org back its hard to do much about it and see what is in all the trees. > -#ifdef CONFIG_X86_INTEL_MID > +#ifdef CONFIG_X86_MRST > > static inline enum mrst_cpu_type mrst_identify_cpu(void) > { > return __mrst_cpu_chip; > } > > -#else /* !CONFIG_X86_INTEL_MID */ > +#else /* !CONFIG_X86_MRST */ > > #define mrst_identify_cpu() (0) > > -#endif /* !CONFIG_X86_INTEL_MID */ > +#endif /* !CONFIG_X86_MRST */ This breaks Medfield so NAK The correct behaviour should be INTEL_MID defined -> mrst_cpu_chip has meaning INTEL_MID not defined -> mrst_identify_chip is 0 your change makes it 0 for Medfield which means it will crash on boot.