Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   Linux (Home) -> Kernel RSS
Next:  RT and XFS  
Author Message
Jeff Mahoney

External


Since: Jul 06, 2005
Posts: 26



(Msg. 1) Posted: Wed Jul 13, 2005 1:30 am
Post subject: [PATCH] reiserfs: fix up case where indent misreads the code
Archived from groups: linux>kernel (more info?)

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 <jeffm.DeleteThis@suse.com>

diff -ruNpX dontdiff linux-2.6.13-rc2/fs/reiserfs/item_ops.c linux-2.6.13-rc2.lindent/fs/reiserfs/item_ops.c
--- linux-2.6.13-rc2/fs/reiserfs/item_ops.c 2005-07-12 21:00:32.000000000 -0400
+++ linux-2.6.13-rc2.lindent/fs/reiserfs/item_ops.c 2005-07-12 21:04:01.000000000 -0400
@@ -772,7 +772,7 @@ static struct item_operations errcatch_o
//
//
#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] = {
--
Jeff Mahoney
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.DeleteThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[patch 9/10] s390: spinlock corner case. - [patch 9/10] s390: spinlock corner case. From: Heiko Carstens <heiko.carstens@de.ibm.com> On s390 the lock value used for spinlocks consists of the lower 32 bits of the PSW that holds the lock. If this address happens to be on a four gigabyte bou...

[patch 1/1] arm/kernel: Audit return code of create_proc_* - From: Christophe Lucas <clucas@rotomalug.org> --- apm.c | 5 ++++- ecard.c | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) Index: quilt/arch/arm/kernel/apm.c..

[PATCH] Address BUG: using smp_processor_id() in preemptib.. - This patch fixes a warning in the disable_nonboot_cpus call in kernel/power/smp.c. Please apply. Signed-off by: Nigel Cunningham <nigel@suspend2.net> smp.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -ruNp..

[PATCH 2/6] i386 virtualization - Remove some dead debuggi.. - This code is quite dead. Release_thread is always guaranteed that the mm has already been released, thus dead_task->mm will always be NULL. Signed-off-by: Zachary Amsden <zach@vmware.com> Index: linux-2.6.13/arch/i386/kernel/process.c..

[PATCH 8/9] UML - Merge duplicated page table code - There is a lot of code which is duplicated between the 2 and 3 level implementation, with the only difference that the 3-level implementation is a bit more generalized (instead of accessing directly pte_t.pte, it uses the appropriate access macros). So....
       Linux (Home) -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact