lkml.org 
[lkml]   [2002]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Suppress compilation warnings on big endian platform for reiserfs
Hello!

Please apply.

Bye,
Oleg
--- linux/include/linux/reiserfs_fs.h.orig Wed Jan 9 12:03:13 2002
+++ linux/include/linux/reiserfs_fs.h Wed Jan 9 16:57:37 2002
@@ -244,9 +244,9 @@
__u64 linear;
} __attribute__ ((__packed__)) offset_v2_esafe_overlay;

-static inline __u16 offset_v2_k_type( struct offset_v2 *v2 )
+static inline __u16 offset_v2_k_type( const struct offset_v2 *v2 )
{
- offset_v2_esafe_overlay tmp = *(offset_v2_esafe_overlay *)v2;
+ offset_v2_esafe_overlay tmp = *(const constoffset_v2_esafe_overlay *)v2;
tmp.linear = le64_to_cpu( tmp.linear );
return (tmp.offset_v2.k_type <= TYPE_MAXTYPE)?tmp.offset_v2.k_type:TYPE_ANY;
}
@@ -259,9 +259,9 @@
tmp->linear = le64_to_cpu(tmp->linear);
}

-static inline loff_t offset_v2_k_offset( struct offset_v2 *v2 )
+static inline loff_t offset_v2_k_offset( const struct offset_v2 *v2 )
{
- offset_v2_esafe_overlay tmp = *(offset_v2_esafe_overlay *)v2;
+ offset_v2_esafe_overlay tmp = *(const offset_v2_esafe_overlay *)v2;
tmp.linear = le64_to_cpu( tmp.linear );
return tmp.offset_v2.k_offset;
}
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.071 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site