From: Jeff Mahoney Date: Tue, 12 Jul 2005 23:19:30 +0000 (-0400) Subject: [PATCH] reiserfs: fix up case where indent misreads the code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7fa94c8868edfef8cb6a201fcc9a5078b7b961da;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [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: Jeff Mahoney Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/item_ops.c b/fs/reiserfs/item_ops.c index 0ce33db1acdf..e477aeba8c92 100644 --- a/fs/reiserfs/item_ops.c +++ b/fs/reiserfs/item_ops.c @@ -772,7 +772,7 @@ static struct item_operations errcatch_ops = { // // #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 struct item_operations * item_ops [TYPE_ANY + 1] = {