From patchwork Wed Oct 6 14:53:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mundt X-Patchwork-Id: 235961 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o96ErHaH002190 for ; Wed, 6 Oct 2010 14:53:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932576Ab0JFOxR (ORCPT ); Wed, 6 Oct 2010 10:53:17 -0400 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:48103 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932572Ab0JFOxQ (ORCPT ); Wed, 6 Oct 2010 10:53:16 -0400 Received: from localhost (unknown [127.0.0.1]) by master.linux-sh.org (Postfix) with ESMTP id 000C06370A; Wed, 6 Oct 2010 14:53:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at linux-sh.org Received: from master.linux-sh.org ([127.0.0.1]) by localhost (master.linux-sh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ShObYAOOosb; Wed, 6 Oct 2010 23:53:11 +0900 (JST) Received: by master.linux-sh.org (Postfix, from userid 500) id A51E86370F; Wed, 6 Oct 2010 23:53:11 +0900 (JST) Date: Wed, 6 Oct 2010 23:53:11 +0900 From: Paul Mundt To: Robert Richter Cc: Matt Fleming , Will Deacon , Russell King , "linux-arm-kernel@lists.infradead.org" , "linux-sh@vger.kernel.org" , Peter Zijlstra , Ingo Molnar , Frederic Weisbecker , Arnaldo Carvalho de Melo , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Deng-Cheng Zhu , Grant Likely Subject: Re: [PATCH 4/7] ARM: oprofile: Move non-ARM code into separate init/exit Message-ID: <20101006145311.GA3754@linux-sh.org> References: <74092b0d162aafc21e408033cec6146e227363b5.1286222593.git.matt@console-pimps.org> <20101006133309.GP13563@erda.amd.com> <20101006144921.GQ13563@erda.amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101006144921.GQ13563@erda.amd.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 06 Oct 2010 14:53:18 +0000 (UTC) diff --git a/drivers/oprofile/oprof.c b/drivers/oprofile/oprof.c index b336cd9..76d97a5 100644 --- a/drivers/oprofile/oprof.c +++ b/drivers/oprofile/oprof.c @@ -252,6 +252,8 @@ static int __init oprofile_init(void) { int err; + memset(&oprofile_ops, 0, sizeof(struct oprofile_operations)); + err = oprofile_arch_init(&oprofile_ops); if (err < 0 || timer) { printk(KERN_INFO "oprofile: using timer interrupt.\n");