From patchwork Mon Jun 18 23:31:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 165622 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 CF1CFB700A for ; Tue, 19 Jun 2012 09:33:22 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SglQI-00084V-L0; Mon, 18 Jun 2012 23:31:54 +0000 Received: from mail-pz0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SglQ9-00083L-TX for linux-mtd@lists.infradead.org; Mon, 18 Jun 2012 23:31:46 +0000 Received: by dadm1 with SMTP id m1so7946175dad.36 for ; Mon, 18 Jun 2012 16:31:44 -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=6FHxeqOLXwwWoYbHf9190uTMImuh2OnPRPzBWH0Fiuk=; b=F3lcsz5R8SDabPy36qIhb3ii72xlDfC3/TMwc4BkHGbA71LZtsVqtg4NIY7MXd8QA2 70O6eYHiSiEiiHOqkzS8WEo+IvvH6yRHwo2q7SkZJBBbx5V/003Qp63hNDeIP2DCopa/ /e8vdVpNCM51o8mKKVwq3DbxL6AI9XS+mILuPyU9gAAG3UsJCchvh5l4NDt8aVgpdxfG fly+VaAZNrMX2oxjcpu3DssudQXLUIHyNY2gaZa39gE4uG7jp6guC9LmGrilq4iftBF0 4XHQcdJekeWNVTPjgP20CpgsxqFH2hm3Q/RU9fjspnG06WfnGHsllP0GPagi339nArNq XyFw== Received: by 10.68.213.7 with SMTP id no7mr5233873pbc.3.1340062304572; Mon, 18 Jun 2012 16:31:44 -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.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jun 2012 16:31:43 -0700 (PDT) From: Brian Norris To: Artem Bityutskiy Subject: [PATCH 2/2] UBI: correct usage of IS_ENABLED() Date: Mon, 18 Jun 2012 16:31:23 -0700 Message-Id: <1340062283-11421-3-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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -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 drivers/mtd/ubi/debug.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index 09d4f8d..7c13803 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c @@ -264,7 +264,7 @@ static struct dentry *dfs_rootdir; */ int ubi_debugfs_init(void) { - if (!IS_ENABLED(DEBUG_FS)) + if (!IS_ENABLED(CONFIG_DEBUG_FS)) return 0; dfs_rootdir = debugfs_create_dir("ubi", NULL); @@ -284,7 +284,7 @@ int ubi_debugfs_init(void) */ void ubi_debugfs_exit(void) { - if (IS_ENABLED(DEBUG_FS)) + if (IS_ENABLED(CONFIG_DEBUG_FS)) debugfs_remove(dfs_rootdir); } @@ -407,7 +407,7 @@ int ubi_debugfs_init_dev(struct ubi_device *ubi) struct dentry *dent; struct ubi_debug_info *d = ubi->dbg; - if (!IS_ENABLED(DEBUG_FS)) + if (!IS_ENABLED(CONFIG_DEBUG_FS)) return 0; n = snprintf(d->dfs_dir_name, UBI_DFS_DIR_LEN + 1, UBI_DFS_DIR_NAME, @@ -477,6 +477,6 @@ out: */ void ubi_debugfs_exit_dev(struct ubi_device *ubi) { - if (IS_ENABLED(DEBUG_FS)) + if (IS_ENABLED(CONFIG_DEBUG_FS)) debugfs_remove_recursive(ubi->dbg->dfs_dir); }