Skip to contentSkip to conversation

drivers/net/skfp/: fix LITTLE_ENDIAN

PATCH New Adrian Bunk 1 participant 1 message May 2, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/skfp/: fix LITTLE_ENDIAN

This patch fixes the LITTLE_ENDIAN #define and a function prototype.

---

This patch was already sent on:
- 20 Apr 2005

 drivers/net/skfp/h/osdef1st.h |    2 ++
 drivers/net/skfp/smt.c        |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/net/skfp/h/osdef1st.h renamed from drivers/net/skfp/h/osdef1st.h.old +2 -0
@@ -20,6 +20,8 @@
 // HWM (HardWare Module) Definitions
 // -----------------------
 
+#include <asm/byteorder.h>
+
 #ifdef __LITTLE_ENDIAN
 #define LITTLE_ENDIAN
 #else
drivers/net/skfp/smt.c renamed from drivers/net/skfp/smt.c.old +1 -1
@@ -86,7 +86,7 @@
 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);