From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752101Ab0DBSU5 (ORCPT ); Fri, 2 Apr 2010 14:20:57 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:35209 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735Ab0DBSUu (ORCPT ); Fri, 2 Apr 2010 14:20:50 -0400 Date: Fri, 2 Apr 2010 20:20:34 +0200 From: Ingo Molnar To: Suresh Siddha Cc: "Jan.Grossmann@kielnet.net" , "linux-pci@vger.kernel.org" , "jbarnes@virtuousgeek.org" , "Woodhouse, David" , "Han, Weidong" , "Song, Youquan" , LKML , "H. Peter Anvin" , "x86@kernel.org" , "stable@kernel.org" , Thomas Gleixner Subject: Re: BUG: null pointer deref in dmar_ir_support Message-ID: <20100402182034.GA27304@elte.hu> References: <4BAD1676.9090704@kielnet.net> <1270057394.2866.9.camel@sbs-t61.sc.intel.com> <4BB395B0.6090007@kielnet.net> <1270083887.7835.78.camel@sbs-t61.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1270083887.7835.78.camel@sbs-t61.sc.intel.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Suresh Siddha wrote: > @@ -1640,8 +1640,10 @@ int __init APIC_init_uniprocessor(void) > } > #endif > > +#ifndef CONFIG_SMP > enable_IR_x2apic(); > default_setup_apic_routing(); > +#endif Instead of adding yet another ugly #ifdef please hide these details properly, by making enable_IR_x2apic() and default_setup_apic_routing() a NOP on !SMP. Thanks, Ingo