Skip to contentSkip to conversation

rtc compile warning fix

sparc64 Tom 'spot' Callaway 1 participant 1 message Dec 22, 2004

lore
Share & tools
lore
#0 lore raw

Wli's change to sbus/char/rtc.c (see: http://marc.theaimsgroup.com/?
l=linux-sparc&m=110362936306577&w=2) causes sparc64 to throw warnings.

This is fixed upstream for sparc32 by adding asm/io.h as an include in asm/mostek.h. Doing the same for sparc64 resolves the warnings, so here's the patch.

~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE Red Hat Sales Engineer || Aurora Linux Project Leader

"If you are going through hell, keep going."
- Sir Winston Churchill

include/asm-sparc64/mostek.h renamed from include/asm-sparc64/mostek.h.BAD +1 -0
@@ -9,6 +9,7 @@
 #define _SPARC64_MOSTEK_H
 
 #include <asm/idprom.h>
+#include <asm/io.h>
 
 /*       M48T02 Register Map (adapted from Sun NVRAM/Hostid FAQ)
  *