Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] 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.

Signed-Off-By: Mark Brown <broonie@sirena.org.uk>
Signed-Off-By: Jeff Garzik <jeff@garzik.org>

authored by

Mark Brown and committed by
Jeff Garzik
28e02bac c499ec24

+2
+2
drivers/char/hw_random.c
··· 131 131 rng_hw_none, 132 132 rng_hw_intel, 133 133 rng_hw_amd, 134 + #ifdef __i386__ 134 135 rng_hw_via, 136 + #endif 135 137 rng_hw_geode, 136 138 }; 137 139