From patchwork Sun Aug 23 18:26:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Slusarz X-Patchwork-Id: 31879 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 67CDBB7B3E for ; Mon, 24 Aug 2009 04:26:17 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933448AbZHWS0N (ORCPT ); Sun, 23 Aug 2009 14:26:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933514AbZHWS0N (ORCPT ); Sun, 23 Aug 2009 14:26:13 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:62122 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933448AbZHWS0M (ORCPT ); Sun, 23 Aug 2009 14:26:12 -0400 Received: by bwz19 with SMTP id 19so1150292bwz.37 for ; Sun, 23 Aug 2009 11:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=5o+ZyNJ5z6HHIEE/dfF4BdMRuaHAT0SChFs0kGcbO3E=; b=HkmShvYY+flyNxnZXnWgZ1n5aNlW0F0+XuVlJ06LXP3UiL6rtIJt0a6NtHa0jyUAdh X+tFguC4GhGe/A/D4UVgb/Ds0F4N7ihyzK0h4zq33GB4in027LU/T++zd88FM5hqDIum s8ZjnXMRIvOjpSXKAG+5KF9BS0IrP2gcj8qJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=byzmL/3/UvPPTXQVZfAwasmlTZWi/En1tFEHJsxfrfxOyUuiR/e3N4lHIIScvgvVU0 +rFNg2H/2qskPRiRUOThyExHIewRKaSIgCnJ6bH/RTpFPc4qBGGPK8n08kYUvJAlFqxk yvB9o5aFX3XgXHsB6XpZFUuGRwkKVI7j5EQ0g= Received: by 10.103.81.21 with SMTP id i21mr1460533mul.57.1251051972802; Sun, 23 Aug 2009 11:26:12 -0700 (PDT) Received: from ?192.168.1.104? (acet161.neoplus.adsl.tpnet.pl [83.9.195.161]) by mx.google.com with ESMTPS id i7sm18272215mue.48.2009.08.23.11.26.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Aug 2009 11:26:12 -0700 (PDT) Message-ID: <4A9189C3.2020706@gmail.com> Date: Sun, 23 Aug 2009 20:26:11 +0200 From: Marcin Slusarz User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: "David S. Miller" CC: linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , LKML , Andrew Morton Subject: [PATCH resend] ide: use printk_once Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Marcin Slusarz Subject: ide: use printk_once Signed-off-by: Marcin Slusarz Acked-by: David S. Miller Cc: linux-ide@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz --- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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