Skip to contentSkip to conversation

Add missing ifdef for VIA RNG code

PATCH New Mark Brown 1 participant 1 message Feb 23, 2006 Char and misc drivers

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 Add missing ifdef for VIA RNG code

Almost all the code for the VIA RNG is guarded with __i386__ #ifdefs, the only exception being the enumeration of RNG types which is used to index into the rng_vector ops array. This patch adds an ifdef around that for consistency and since the guard makes a difference when adding new RNG types on non-i386 hardware.

drivers/char/hw_random.c +2 -0
Index: hwrng/drivers/char/hw_random.c
===================================================================
@@ -121,7 +121,9 @@ enum {
 	rng_hw_none,
 	rng_hw_intel,
 	rng_hw_amd,
+#ifdef __i386__
 	rng_hw_via,
+#endif
 };
 
 static struct rng_operations rng_vendor_ops[] = {