From: Russ Anderson <rja@sgi.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org,
linux-next@vger.kernel.org
Subject: [PATCH trivial] ia64: Fix gru compiler warning
Date: Wed, 29 Oct 2008 17:29:18 -0500 [thread overview]
Message-ID: <20081029222918.GA71188@sgi.com> (raw)
Fix compiler warning in sgi-gru driver.
Signed-off-by: Russ Anderson <rja@sgi.com>
---
Andrew,
This patch gets rid of the gru compiler warnings.
In file included from drivers/misc/sgi-gru/gruhandles.h:25,
from drivers/misc/sgi-gru/grutables.h:151,
from drivers/misc/sgi-gru/grufile.c:41:
drivers/misc/sgi-gru/gru_instructions.h: In function `gru_flush_cache':
drivers/misc/sgi-gru/gru_instructions.h:292: warning: passing arg 1 of pointer to
function makes integer from pointer without a cast
drivers/misc/sgi-gru/gru_instructions.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: test/drivers/misc/sgi-gru/gru_instructions.h
===================================================================
--- test.orig/drivers/misc/sgi-gru/gru_instructions.h 2008-10-29 11:19:56.000000000 -0500
+++ test/drivers/misc/sgi-gru/gru_instructions.h 2008-10-29 14:23:43.230943026 -0500
@@ -29,7 +29,7 @@
#if defined(CONFIG_IA64)
#include <linux/compiler.h>
#include <asm/intrinsics.h>
-#define __flush_cache(p) ia64_fc(p)
+#define __flush_cache(p) ia64_fc((unsigned long)p)
/* Use volatile on IA64 to ensure ordering via st4.rel */
#define gru_ordered_store_int(p,v) \
do { \
--
Russ Anderson, OS RAS/Partitioning Project Lead
SGI - Silicon Graphics Inc rja@sgi.com
reply other threads:[~2008-10-29 22:29 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=20081029222918.GA71188@sgi.com \
--to=rja@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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;
as well as URLs for NNTP newsgroup(s).