public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Maxim Kuvyrkov <maxim@codesourcery.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@vger.kernel.org
Subject: [PATCH] Fix m68k's asm/swab.h for ColdFire
Date: Fri, 02 Oct 2009 13:15:32 +0400	[thread overview]
Message-ID: <4AC5C4B4.4010004@codesourcery.com> (raw)

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

This is a resubmit of the last portion of this patch 
(http://marc.info/?l=linux-m68k&m=123324772614580&w=2) that didn't make 
it into the sources.

Merging of uClinux and Linux headers brought in the code from the 
uClinux version, but the condition in the #elif was set wrong.

This patch fixes the #elif condition.

Thanks,

--
Maxim K.
CodeSourcery

[-- Attachment #2: 0004-Fix-m68k-s-asm-swab.h-for-ColdFire.patch --]
[-- Type: text/plain, Size: 877 bytes --]

>From c57261c33b9dbe953830698c1c0dcdbbf71cb28d Mon Sep 17 00:00:00 2001
From: Maxim Kuvyrkov <maxim@codesourcery.com>
Date: Fri, 2 Oct 2009 12:32:18 +0400
Subject: [PATCH 4/5] Fix m68k's asm/swab.h for ColdFire

The following patch makes asm/swab.h compatible with ColdFire ISA_B CPUs.

Signed-off-by: Maxim Kuvyrkov <maxim@codesourcery.com>
---
 arch/m68k/include/asm/swab.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/include/asm/swab.h b/arch/m68k/include/asm/swab.h
index 5b754aa..b7b37a4 100644
--- a/arch/m68k/include/asm/swab.h
+++ b/arch/m68k/include/asm/swab.h
@@ -14,7 +14,7 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
 }
 
 #define __arch_swab32 __arch_swab32
-#elif !defined(__uClinux__)
+#elif !defined(__mcoldfire__)
 
 static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
 {
-- 
1.6.4


             reply	other threads:[~2009-10-02  9:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02  9:15 Maxim Kuvyrkov [this message]
2009-10-26 14:56 ` [PATCH] Fix m68k's asm/swab.h for ColdFire Maxim Kuvyrkov

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=4AC5C4B4.4010004@codesourcery.com \
    --to=maxim@codesourcery.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox