+ fix-hwrng-built-in-initcalls-priority.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Fix HWRNG built-in initcalls priority
has been added to the -mm tree.  Its filename is
     fix-hwrng-built-in-initcalls-priority.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix HWRNG built-in initcalls priority
From: Michael Buesch <mb@xxxxxxxxx>

This changes all HWRNG driver initcalls to module_init().  We must probe
the RNGs after the major kernel subsystems are already up and running (like
PCI).

This fixes Bug 7730.
http://bugzilla.kernel.org/show_bug.cgi?id=7730

Signed-off-by: Michael Buesch <mb@xxxxxxxxx>
Cc: Jan Beulich <jbeulich@xxxxxxxxxx>
Cc: Jeff Garzik <jeff@xxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/hw_random/amd-rng.c    |    2 +-
 drivers/char/hw_random/geode-rng.c  |    2 +-
 drivers/char/hw_random/intel-rng.c  |    2 +-
 drivers/char/hw_random/ixp4xx-rng.c |    2 +-
 drivers/char/hw_random/via-rng.c    |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff -puN drivers/char/hw_random/amd-rng.c~fix-hwrng-built-in-initcalls-priority drivers/char/hw_random/amd-rng.c
--- a/drivers/char/hw_random/amd-rng.c~fix-hwrng-built-in-initcalls-priority
+++ a/drivers/char/hw_random/amd-rng.c
@@ -144,7 +144,7 @@ static void __exit mod_exit(void)
 	hwrng_unregister(&amd_rng);
 }
 
-subsys_initcall(mod_init);
+module_init(mod_init);
 module_exit(mod_exit);
 
 MODULE_AUTHOR("The Linux Kernel team");
diff -puN drivers/char/hw_random/geode-rng.c~fix-hwrng-built-in-initcalls-priority drivers/char/hw_random/geode-rng.c
--- a/drivers/char/hw_random/geode-rng.c~fix-hwrng-built-in-initcalls-priority
+++ a/drivers/char/hw_random/geode-rng.c
@@ -125,7 +125,7 @@ static void __exit mod_exit(void)
 	iounmap(mem);
 }
 
-subsys_initcall(mod_init);
+module_init(mod_init);
 module_exit(mod_exit);
 
 MODULE_DESCRIPTION("H/W RNG driver for AMD Geode LX CPUs");
diff -puN drivers/char/hw_random/intel-rng.c~fix-hwrng-built-in-initcalls-priority drivers/char/hw_random/intel-rng.c
--- a/drivers/char/hw_random/intel-rng.c~fix-hwrng-built-in-initcalls-priority
+++ a/drivers/char/hw_random/intel-rng.c
@@ -378,7 +378,7 @@ static void __exit mod_exit(void)
 	iounmap(mem);
 }
 
-subsys_initcall(mod_init);
+module_init(mod_init);
 module_exit(mod_exit);
 
 MODULE_DESCRIPTION("H/W RNG driver for Intel chipsets");
diff -puN drivers/char/hw_random/ixp4xx-rng.c~fix-hwrng-built-in-initcalls-priority drivers/char/hw_random/ixp4xx-rng.c
--- a/drivers/char/hw_random/ixp4xx-rng.c~fix-hwrng-built-in-initcalls-priority
+++ a/drivers/char/hw_random/ixp4xx-rng.c
@@ -64,7 +64,7 @@ static void __exit ixp4xx_rng_exit(void)
 	iounmap(rng_base);
 }
 
-subsys_initcall(ixp4xx_rng_init);
+module_init(ixp4xx_rng_init);
 module_exit(ixp4xx_rng_exit);
 
 MODULE_AUTHOR("Deepak Saxena <dsaxena@xxxxxxxxxxx>");
diff -puN drivers/char/hw_random/via-rng.c~fix-hwrng-built-in-initcalls-priority drivers/char/hw_random/via-rng.c
--- a/drivers/char/hw_random/via-rng.c~fix-hwrng-built-in-initcalls-priority
+++ a/drivers/char/hw_random/via-rng.c
@@ -176,7 +176,7 @@ static void __exit mod_exit(void)
 	hwrng_unregister(&via_rng);
 }
 
-subsys_initcall(mod_init);
+module_init(mod_init);
 module_exit(mod_exit);
 
 MODULE_DESCRIPTION("H/W RNG driver for VIA chipsets");
_

Patches currently in -mm which might be from mb@xxxxxxxxx are

intel-rng-workarounds.patch
fix-hwrng-built-in-initcalls-priority.patch
git-wireless.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux