lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <547E7357.9040606@cn.fujitsu.com>
Date:	Wed, 3 Dec 2014 10:20:07 +0800
From:	Gu Zheng <guz.fnst@...fujitsu.com>
To:	<linux-mtd@...ts.infradead.org>
CC:	<dwmw2@...radead.org>, <computersforpeace@...il.com>,
	<linux-kernel@...r.kernel.org>, Gu Zheng <guz.fnst@...fujitsu.com>
Subject: [RESEND PATCH 2/3] mtd: move the enum definition out of struct mtdblk_dev

Move the enum definition out of struct mtdblk_dev, just cleanup.

Signed-off-by: Gu Zheng <guz.fnst@...fujitsu.com>
---
 drivers/mtd/mtdblock.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index bb4c14f..acc00f1 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -34,6 +34,11 @@
 #include <linux/mutex.h>
 #include <linux/major.h>
 
+enum CACHE_STATES {
+	STATE_EMPTY,
+	STATE_CLEAN,
+	STATE_DIRTY
+};
 
 struct mtdblk_dev {
 	struct mtd_blktrans_dev mbd;
@@ -42,7 +47,7 @@ struct mtdblk_dev {
 	unsigned char *cache_data;
 	unsigned long cache_offset;
 	unsigned int cache_size;
-	enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state;
+	enum CACHE_STATES cache_state;
 };
 
 /*
-- 
1.7.7

.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ