From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758659AbZIOTyr (ORCPT ); Tue, 15 Sep 2009 15:54:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758058AbZIOTym (ORCPT ); Tue, 15 Sep 2009 15:54:42 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:59571 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758050AbZIOTym (ORCPT ); Tue, 15 Sep 2009 15:54:42 -0400 Subject: [BUG] compile error with edac_mce_amd.c as module From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Borislav Petkov Cc: LKML , Ingo Molnar , Andrew Morton , Thomas Gleixner Content-Type: text/plain Organization: Kihon Technologies Inc. Date: Tue, 15 Sep 2009 15:54:39 -0400 Message-Id: <1253044479.20020.125.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The file drivers/edac/edac_mce_amd.c references a kernel variable that is not exported for modules. ERROR: "per_cpu__cpu_llc_id" [drivers/edac/edac_core.ko] undefined! The variable in question is located in arch/x86/kernel/smpboot.c /* Last level cache ID of each logical CPU */ DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID; and is not exported to modules. This is from the latest Linus repo. I can supply a config if requested. -- Steve