All of lore.kernel.org
 help / color / mirror / Atom feed
From: lamont@smallone.fc.hp.com (LaMont Jones)
To: parisc-linux@parisc-linux.org
Cc: lamont@hp.com, bdale@gag.com
Subject: [parisc-linux] byteorder.h patch
Date: Tue, 8 Jul 2003 11:03:59 -0600	[thread overview]
Message-ID: <20030708170359.GA26021@smallone.fc.hp.com> (raw)

I guess I should have sent mail...

byteorder.h would try to use __u64 when it wasn't defined (__STRICT_ANSI__).
This is fixed in revision 1.7 of include/asm-parisc/byteorder.h.

lamont

Index: include/asm-parisc/byteorder.h
===================================================================
RCS file: /var/cvs/linux/include/asm-parisc/byteorder.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- include/asm-parisc/byteorder.h	8 Jul 2003 02:22:59 -0000	1.6
+++ include/asm-parisc/byteorder.h	8 Jul 2003 16:50:09 -0000	1.7
@@ -48,7 +48,8 @@
 	return x;
 }
 #define __arch__swab64(x) ___arch__swab64(x)
-#else
+#define __BYTEORDER_HAS_U64__
+#elif !defined(__STRICT_ANSI__)
 static __inline__ __const__ __u64 ___arch__swab64(__u64 x)
 {
 	__u32 t1 = (__u32) x;
@@ -57,12 +58,12 @@
 	___arch__swab32(t2);
 	return (((__u64) ___arch__swab32(t1) << 32) + ((__u64) ___arch__swab32(t2)));
 }
+#define __arch__swab64(x) ___arch__swab64(x)
+#define __BYTEORDER_HAS_U64__
 #endif
 
 #define __arch__swab16(x) ___arch__swab16(x)
 #define __arch__swab32(x) ___arch__swab32(x)
-#define __arch__swab64(x) ___arch__swab64(x)
-#define __BYTEORDER_HAS_U64__
 
 #endif /* __GNUC__ */
 

                 reply	other threads:[~2003-07-08 17:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030708170359.GA26021@smallone.fc.hp.com \
    --to=lamont@smallone.fc.hp.com \
    --cc=bdale@gag.com \
    --cc=lamont@hp.com \
    --cc=parisc-linux@parisc-linux.org \
    /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.