public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Russ Anderson <rja@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [patch] Update Altix BTE error return status patch
Date: Thu, 20 Dec 2007 23:46:52 +0000	[thread overview]
Message-ID: <20071220234652.GE18816@sgi.com> (raw)

[patch] Update Altix BTE error return status patch

I neglected to send Tony the most recent version of the 
patch ("Fix Altix BTE error return status").

This patch gets it up to date.  Without this patch 
on shub2, if there is no error xpcBteUnmappedError is 
returned instead of xpcSuccess.

Signed-off-by: Russ Anderson (rja@sgi.com)

---
 include/asm-ia64/sn/xpc.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: test/include/asm-ia64/sn/xpc.h
=================================--- test.orig/include/asm-ia64/sn/xpc.h	2007-12-20 10:20:44.000000000 -0600
+++ test/include/asm-ia64/sn/xpc.h	2007-12-20 16:41:23.283386520 -0600
@@ -1211,11 +1211,13 @@ xpc_IPI_init(int index)
 static inline enum xpc_retval
 xpc_map_bte_errors(bte_result_t error)
 {
+	if (error = BTE_SUCCESS)
+		return xpcSuccess;
+
 	if (is_shub2()) {
 		if (BTE_VALID_SH2_ERROR(error))
 			return xpcBteSh2Start + error;
-		else
-			return xpcBteUnmappedError;
+		return xpcBteUnmappedError;
 	}
 	switch (error) {
 	case BTE_SUCCESS:	return xpcSuccess;
-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com

                 reply	other threads:[~2007-12-20 23:46 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=20071220234652.GE18816@sgi.com \
    --to=rja@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox