Jeff, can you apply this patch to hw_random.c? Thanks. The following patch allows hw_random.c to build on ia64. (The problem was just that the VIA stuff has i386 assembly in it. The current code only probes for VIA on i386 anyway, so this patch just adds more ifdefs so the VIA code is only built for i386.) ===== drivers/char/hw_random.c 1.13 vs edited ===== --- 1.13/drivers/char/hw_random.c Fri Jan 30 21:25:15 2004 +++ edited/drivers/char/hw_random.c Wed Mar 24 16:16:21 2004 @@ -92,10 +92,12 @@ static unsigned int amd_data_present (void); static u32 amd_data_read (void); +#ifdef __i386__ static int __init via_init(struct pci_dev *dev); static void via_cleanup(void); static unsigned int via_data_present (void); static u32 via_data_read (void); +#endif struct rng_operations { int (*init) (struct pci_dev *dev); @@ -137,8 +139,10 @@ /* rng_hw_amd */ { amd_init, amd_cleanup, amd_data_present, amd_data_read, 4 }, +#ifdef __i386__ /* rng_hw_via */ { via_init, via_cleanup, via_data_present, via_data_read, 1 }, +#endif }; /* @@ -341,6 +345,7 @@ /* FIXME: twiddle pmio, also? */ } +#ifdef __i386__ /*********************************************************************** * * VIA RNG operations @@ -456,6 +461,7 @@ { /* do nothing */ } +#endif /*********************************************************************** - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Tue Apr 6 17:32:06 2004
This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:25 EST