[PATCH] drivers/net/skfp/: fix LITTLE_ENDIAN
authorAdrian Bunk <bunk@stusta.de>
Mon, 2 May 2005 01:46:52 +0000 (03:46 +0200)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 26 Jun 2005 22:29:26 +0000 (18:29 -0400)
This patch fixes the LITTLE_ENDIAN #define and a function prototype.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/net/skfp/h/osdef1st.h
drivers/net/skfp/smt.c

index 5359eb5..763ca18 100644 (file)
@@ -20,6 +20,8 @@
 // HWM (HardWare Module) Definitions
 // -----------------------
 
+#include <asm/byteorder.h>
+
 #ifdef __LITTLE_ENDIAN
 #define LITTLE_ENDIAN
 #else
index 71935ea..c3a0d2f 100644 (file)
@@ -86,7 +86,7 @@ static void smt_send_sif_config(struct s_smc *smc, struct fddi_addr *dest,
 static void smt_send_sif_operation(struct s_smc *smc, struct fddi_addr *dest,
                                   u_long tid, int local);
 #ifdef LITTLE_ENDIAN
-static void smt_string_swap(void);
+static void smt_string_swap(char *data, const char *format, int len);
 #endif
 static void smt_add_frame_len(SMbuf *mb, int len);
 static void smt_fill_una(struct s_smc *smc, struct smt_p_una *una);