From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754710AbZEVE23 (ORCPT ); Fri, 22 May 2009 00:28:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751800AbZEVE1j (ORCPT ); Fri, 22 May 2009 00:27:39 -0400 Received: from 136-022.dsl.LABridge.com ([206.117.136.22]:2903 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbZEVE1f (ORCPT ); Fri, 22 May 2009 00:27:35 -0400 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: cpufreq@vger.kernel.org, Dave Jones , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , x86@kernel.org, Len Brown , Mike Travis , Rusty Russell , Thomas Gleixner , Venkatesh Pallipadi , Alan Cox Subject: [PATCH V2 3/3] kernel.h: Remove unused printk_once Date: Thu, 21 May 2009 21:27:32 -0700 Message-Id: <3e86690997bc030d12ba1515586e3e9217075ca9.1242965307.git.joe@perches.com> X-Mailer: git-send-email 1.6.3.1.10.g659a0.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Joe Perches --- include/linux/kernel.h | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 179fdac..46234af 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -243,18 +243,6 @@ extern int printk_ratelimit(void); extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, unsigned int interval_msec); -/* - * Print a one-time message (analogous to WARN_ONCE() et al): - */ -#define printk_once(x...) ({ \ - static int __print_once = 1; \ - \ - if (__print_once) { \ - __print_once = 0; \ - printk(x); \ - } \ -}) - void log_buf_kexec_setup(void); #else static inline int vprintk(const char *s, va_list args) @@ -268,9 +256,6 @@ static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ unsigned int interval_msec) \ { return false; } -/* No effect, but we still get type checking even in the !PRINTK case: */ -#define printk_once(x...) printk(x) - static inline void log_buf_kexec_setup(void) { } -- 1.6.3.1.10.g659a0.dirty