All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org,
	reiserfs-dev@namesys.com
Subject: Re: [reiserfs-dev] [PATCH] Suppress compilation warnings on big endian platform for reiserfs
Date: Wed, 9 Jan 2002 17:30:56 +0300	[thread overview]
Message-ID: <20020109173056.B1161@namesys.com> (raw)
In-Reply-To: <20020109170303.A1025@namesys.com>
In-Reply-To: <20020109170303.A1025@namesys.com>

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

Hello!

    Argh! Stupid typo have flipped into the previous incarnation of this patch, so here is correct one.
    Please apply this one.

Bye,
    Oleg
On Wed, Jan 09, 2002 at 05:03:03PM +0300, Oleg Drokin wrote:
>     Please apply.

[-- Attachment #2: big-endian-const.diff --]
[-- Type: text/plain, Size: 1066 bytes --]

--- 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 offset_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;
 }

  reply	other threads:[~2002-01-09 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09 14:03 [PATCH] Suppress compilation warnings on big endian platform for reiserfs Oleg Drokin
2002-01-09 14:30 ` Oleg Drokin [this message]
2002-01-09 15:44   ` [reiserfs-dev] " Marcelo Tosatti
2002-01-09 15:47     ` Marcelo Tosatti
2002-01-09 17:03     ` Oleg Drokin
2002-01-09 15:56       ` Marcelo Tosatti
2002-01-09 17:12         ` Oleg Drokin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020109173056.B1161@namesys.com \
    --to=green@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=reiserfs-dev@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.