Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754433Ab1FGDaz (ORCPT ); Mon, 6 Jun 2011 23:30:55 -0400 Received: from ozlabs.org ([203.10.76.45]:45813 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979Ab1FGDay convert rfc822-to-8bit (ORCPT ); Mon, 6 Jun 2011 23:30:54 -0400 From: Rusty Russell To: richard -rw- weinberger Cc: Christian Dietrich , "Venkatesh Pallipadi \(Venki\)" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Avi Kivity , Marcelo Tosatti , Kevin Tian , Fengzhe Zhang , John Stultz , Lucas De Marchi , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, lguest@lists.ozlabs.org, trivial@kernel.org Subject: Re: [PATCH 8/8] arch/x86: use printk_ratelimited instead of printk_ratelimit In-Reply-To: References: <874o43ii1m.fsf@rustcorp.com.au> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i686-pc-linux-gnu) Date: Tue, 07 Jun 2011 12:41:02 +0930 Message-ID: <87mxhugwu1.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1478 Lines: 38 On Mon, 6 Jun 2011 10:11:53 +0200, richard -rw- weinberger wrote: > On Mon, Jun 6, 2011 at 8:35 AM, Rusty Russell wrote: > > On Sat, 4 Jun 2011 17:37:04 +0200, Christian Dietrich wrote: > >> Since printk_ratelimit() shouldn't be used anymore (see comment in > >> include/linux/printk.h), replace it with printk_ratelimited. > > > > Acked-by: Rusty Russell (lguest part) > > > >> diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c > >> index db832fd..23a6eff 100644 > >> --- a/arch/x86/lguest/boot.c > >> +++ b/arch/x86/lguest/boot.c > >> @@ -56,6 +56,7 @@ > >>  #include > >>  #include > >>  #include > >> +#include > >>  #include > >>  #include > >>  #include > > > > Is this new include really needed?  The printk_ratelimited() definition > > is in printk.h... > > Yes. > printk_ratelimited() needs DEFINE_RATELIMIT_STATE() which is defined > in ratelimit.h. Yech. I'm assuming that making printk.h include ratelimit.h makes a nasty mess? Thanks, Rusty. -- 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/