提交 7fa94c88 编写于 作者: J Jeff Mahoney 提交者: Linus Torvalds

[PATCH] reiserfs: fix up case where indent misreads the code

 indent(1) doesn't know how to handle the "do not compile" error. It results
 in the item_ops array declaration being indented a tab stop in when it should
 not be. This patch replaces it with a #error that describes why it's failing.
Signed-off-by: NJeff Mahoney <jeffm@suse.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 d5e404c1
...@@ -772,7 +772,7 @@ static struct item_operations errcatch_ops = { ...@@ -772,7 +772,7 @@ static struct item_operations errcatch_ops = {
// //
// //
#if ! (TYPE_STAT_DATA == 0 && TYPE_INDIRECT == 1 && TYPE_DIRECT == 2 && TYPE_DIRENTRY == 3) #if ! (TYPE_STAT_DATA == 0 && TYPE_INDIRECT == 1 && TYPE_DIRECT == 2 && TYPE_DIRENTRY == 3)
do not compile #error Item types must use disk-format assigned values.
#endif #endif
struct item_operations * item_ops [TYPE_ANY + 1] = { struct item_operations * item_ops [TYPE_ANY + 1] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册