All of lore.kernel.org
 help / color / mirror / Atom feed
From: jbarnes@sgi.com (Jesse Barnes)
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] sn2 module fix
Date: Tue, 14 Oct 2003 23:06:44 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106617300403552@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106617270703267@msgid-missing>

On Tue, Oct 14, 2003 at 04:04:15PM -0700, Jesse Barnes wrote:
> Because we're the only platform with seperate in, out, and read
> routines, we have to include the file that defines them in our machvec
> header so that users of the functions will get the right defines and not
> use the non-inline function variants (which are only necessary for
> generic kernels).
> 
> Thanks,
> Jesse

How about I actually attach the patch?

Jesse

diff -Nru a/arch/ia64/sn/kernel/sn2/io.c b/arch/ia64/sn/kernel/sn2/io.c
--- a/arch/ia64/sn/kernel/sn2/io.c	Tue Oct 14 16:01:18 2003
+++ b/arch/ia64/sn/kernel/sn2/io.c	Tue Oct 14 16:01:18 2003
@@ -11,6 +11,8 @@
 
 #include <asm/sn/sn2/io.h>
 
+#ifdef CONFIG_IA64_GENERIC
+
 #undef __sn_inb
 #undef __sn_inw
 #undef __sn_inl
@@ -81,3 +83,5 @@
 {
 	return ___sn_readq (addr);
 }
+
+#endif
diff -Nru a/include/asm-ia64/machvec_sn2.h b/include/asm-ia64/machvec_sn2.h
--- a/include/asm-ia64/machvec_sn2.h	Tue Oct 14 16:01:18 2003
+++ b/include/asm-ia64/machvec_sn2.h	Tue Oct 14 16:01:18 2003
@@ -99,4 +99,6 @@
 #define platform_dma_sync_sg		sn_dma_sync_sg
 #define platform_dma_supported		sn_dma_supported
 
+#include <asm/sn/sn2/io.h>
+
 #endif /* _ASM_IA64_MACHVEC_SN2_H */

      reply	other threads:[~2003-10-14 23:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 23:04 [PATCH] sn2 module fix Jesse Barnes
2003-10-14 23:06 ` Jesse Barnes [this message]

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=marc-linux-ia64-106617300403552@msgid-missing \
    --to=jbarnes@sgi.com \
    --cc=linux-ia64@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 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.