From patchwork Sun Aug 9 19:54:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Slusarz X-Patchwork-Id: 31041 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by bilbo.ozlabs.org (Postfix) with ESMTP id D8F36B7B6F for ; Mon, 10 Aug 2009 05:58:10 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753544AbZHITy4 (ORCPT ); Sun, 9 Aug 2009 15:54:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753290AbZHITyy (ORCPT ); Sun, 9 Aug 2009 15:54:54 -0400 Received: from an-out-0708.google.com ([209.85.132.248]:46204 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753193AbZHITyx (ORCPT ); Sun, 9 Aug 2009 15:54:53 -0400 Received: by an-out-0708.google.com with SMTP id d40so2890688and.1 for ; Sun, 09 Aug 2009 12:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=+0RxUGKtyNSjFrvkG5Zfn7fpnXEWadi9HFmNf59yV8M=; b=NStoBWteIkF/OV29bZE5Cg+0ysdyCWp74CnWAdfvcNTDcKn/gaqtNi8C7xiW0LTtAW 7ten8MRYmr6HJq4rsQfkJI50grJ5mDvBXZK53qSmU+DkSHE1Z5VV0ar4xUDx6ZJTTrGJ zpLL7taCtbzCe1HMQK1yPHAX7EkoA34kZnTnw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=eKrifsEe8VuiB5/KF5rMVpxG73a3OQigPcn3zX3hvBIbKZDej5JgzZLz/XJnF10Ffd u4hmC/PsDgAkpvbNZpz4yNpnx1j9foBJT6IwVmUgCpHz0MSsClDVM3mtJOZthGuk71yz 39Gm/Rd4z/A+fJIXJL27u5Jxqte42a8At3Txs= Received: by 10.100.138.7 with SMTP id l7mr2629879and.141.1249847693658; Sun, 09 Aug 2009 12:54:53 -0700 (PDT) Received: from joi ([72.14.241.8]) by mx.google.com with ESMTPS id d22sm10219731and.5.2009.08.09.12.54.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Aug 2009 12:54:52 -0700 (PDT) Received: by joi (sSMTP sendmail emulation); Sun, 09 Aug 2009 21:54:48 +0200 From: Marcin Slusarz To: LKML Cc: "David S. Miller" , linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz Subject: [PATCH 09/14] ide: use printk_once Date: Sun, 9 Aug 2009 21:54:04 +0200 Message-Id: <1249847649-11631-10-git-send-email-marcin.slusarz@gmail.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1249847649-11631-1-git-send-email-marcin.slusarz@gmail.com> References: <1249847649-11631-1-git-send-email-marcin.slusarz@gmail.com> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Signed-off-by: Marcin Slusarz Cc: "David S. Miller" Cc: linux-ide@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz Acked-by: David S. Miller --- drivers/ide/ide-proc.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 3242698..6e58e7e 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c @@ -236,14 +236,8 @@ static const struct ide_proc_devset ide_generic_settings[] = { static void proc_ide_settings_warn(void) { - static int warned; - - if (warned) - return; - - printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is " + printk_once(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is " "obsolete, and will be removed soon!\n"); - warned = 1; } static int proc_ide_read_settings