From patchwork Mon Jun 18 23:31:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 165623 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 81C15B7006 for ; Tue, 19 Jun 2012 09:33:25 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SglQB-00083x-Fg; Mon, 18 Jun 2012 23:31:47 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SglQ8-00083K-NR for linux-mtd@lists.infradead.org; Mon, 18 Jun 2012 23:31:45 +0000 Received: by pbbrq13 with SMTP id rq13so9410685pbb.36 for ; Mon, 18 Jun 2012 16:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=IUYFJePK67I5Sd4WCC5QzERJAp1osvvIHZmrm2FLiyA=; b=SKPCXNioVZp/w5dK8e2BTkFdBmBveVVvqJlq0+zeFAUe22fVwuInFVr23GyQ/48MMq VQZDDGRGq4xXYIPhvDkdPqTSMH8TrU1wmK/NZ9/sfwsEacWnElSK5dxyULhAsdZuMAsE jaSqbLRBM0UZ1l5XHiyN05k0+1jU/sDNHfBHyvHMYlcp1T8OpJSXHVH7Oe1LzLyVaExx cmf1UIz2gXpzQPYqA23ECpKeZr3Up/fnqjOfG/Cnkwwtt0iYafIF7GImQs7s+oTbwGWK bOxHo+Xz3FfT532p2+lYD4cVq9+QZ9tIKFtz0OC9ooRCyVYfAlbeTFf+t3220+Z4Z67+ W14A== Received: by 10.68.218.103 with SMTP id pf7mr57823309pbc.67.1340062303388; Mon, 18 Jun 2012 16:31:43 -0700 (PDT) Received: from localhost.localdomain (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPS id sy3sm25525724pbc.18.2012.06.18.16.31.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jun 2012 16:31:42 -0700 (PDT) From: Brian Norris To: Artem Bityutskiy Subject: [PATCH 1/2] UBIFS: correct usage of IS_ENABLED() Date: Mon, 18 Jun 2012 16:31:22 -0700 Message-Id: <1340062283-11421-2-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1340062283-11421-1-git-send-email-computersforpeace@gmail.com> References: <1340062283-11421-1-git-send-email-computersforpeace@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Brian Norris , linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org IS_ENABLED() arguments should be used with the CONFIG_* prefix. Signed-off-by: Brian Norris --- based on ubifs.git fs/ubifs/debug.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 84a7e6f..92df3b0 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -2918,7 +2918,7 @@ int dbg_debugfs_init_fs(struct ubifs_info *c) struct dentry *dent; struct ubifs_debug_info *d = c->dbg; - if (!IS_ENABLED(DEBUG_FS)) + if (!IS_ENABLED(CONFIG_DEBUG_FS)) return 0; n = snprintf(d->dfs_dir_name, UBIFS_DFS_DIR_LEN + 1, UBIFS_DFS_DIR_NAME, @@ -3013,7 +3013,7 @@ out: */ void dbg_debugfs_exit_fs(struct ubifs_info *c) { - if (IS_ENABLED(DEBUG_FS)) + if (IS_ENABLED(CONFIG_DEBUG_FS)) debugfs_remove_recursive(c->dbg->dfs_dir); } @@ -3099,7 +3099,7 @@ int dbg_debugfs_init(void) const char *fname; struct dentry *dent; - if (!IS_ENABLED(DEBUG_FS)) + if (!IS_ENABLED(CONFIG_DEBUG_FS)) return 0; fname = "ubifs"; @@ -3166,7 +3166,7 @@ out: */ void dbg_debugfs_exit(void) { - if (IS_ENABLED(DEBUG_FS)) + if (IS_ENABLED(CONFIG_DEBUG_FS)) debugfs_remove_recursive(dfs_rootdir); }