* [PATCH] Add missing ifdef for VIA RNG code
@ 2006-02-23 0:21 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2006-02-23 0:21 UTC (permalink / raw)
To: jgarzik; +Cc: linux-kernel, trivial
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.
Signed-Off-By: Mark Brown <broonie@sirena.org.uk>
Index: hwrng/drivers/char/hw_random.c
===================================================================
--- hwrng.orig/drivers/char/hw_random.c 2006-02-10 07:22:48.000000000 +0000
+++ hwrng/drivers/char/hw_random.c 2006-02-22 22:59:05.000000000 +0000
@@ -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[] = {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-23 0:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 0:21 [PATCH] Add missing ifdef for VIA RNG code Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®