Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757472AbZCMLH3 (ORCPT ); Fri, 13 Mar 2009 07:07:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751625AbZCMLHS (ORCPT ); Fri, 13 Mar 2009 07:07:18 -0400 Received: from hera.kernel.org ([140.211.167.34]:58754 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbZCMLHQ (ORCPT ); Fri, 13 Mar 2009 07:07:16 -0400 Date: Fri, 13 Mar 2009 11:06:29 GMT From: Ingo Molnar To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com, markus.t.metzger@intel.com, tglx@linutronix.de, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, markus.t.metzger@intel.com, tglx@linutronix.de, mingo@elte.hu In-Reply-To: <20090313104218.A30096@sedona.ch.intel.com> References: <20090313104218.A30096@sedona.ch.intel.com> Subject: [tip:tracing/hw-branch-tracing] x86, bts: detect size of DS fields, fix Message-ID: Git-Commit-ID: 79258a354e0c69be94ae2871809a195bf4a647b1 X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Fri, 13 Mar 2009 11:06:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 41 Commit-ID: 79258a354e0c69be94ae2871809a195bf4a647b1 Gitweb: http://git.kernel.org/tip/79258a354e0c69be94ae2871809a195bf4a647b1 Author: Ingo Molnar AuthorDate: Fri, 13 Mar 2009 12:02:08 +0100 Commit: Ingo Molnar CommitDate: Fri, 13 Mar 2009 12:02:08 +0100 x86, bts: detect size of DS fields, fix Impact: build fix One usage site was missed in the sizeof_field -> sizeof_ptr_field rename. Cc: Markus Metzger LKML-Reference: <20090313104218.A30096@sedona.ch.intel.com> Signed-off-by: Ingo Molnar --- arch/x86/kernel/ds.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index 7363e01..5fd5333 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c @@ -983,7 +983,7 @@ ds_configure(const struct ds_configuration *cfg, printk("bts/pebs record: %u/%u bytes\n", ds_cfg.sizeof_rec[ds_bts], ds_cfg.sizeof_rec[ds_pebs]); - WARN_ON_ONCE(MAX_SIZEOF_DS < (12 * ds_cfg.sizeof_field)); + WARN_ON_ONCE(MAX_SIZEOF_DS < (12 * ds_cfg.sizeof_ptr_field)); } void __cpuinit ds_init_intel(struct cpuinfo_x86 *c) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/