Skip to contentSkip to conversation

ia64: Fix gru compiler warning

PATCH New Russ Anderson 1 participant 1 message Oct 29, 2008 Linux-next tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64: Fix gru compiler warning

Fix compiler warning in sgi-gru driver.

---
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 { \

Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          [email protected]