- rename-net_random-to-random32-fixes.patch removed from -mm tree

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

 



The patch titled

     rename-net_random-to-random32-fixes

has been removed from the -mm tree.  Its filename is

     rename-net_random-to-random32-fixes.patch

This patch was dropped because it was folded into rename-net_random-to-random32.patch

------------------------------------------------------
Subject: rename-net_random-to-random32-fixes
From: Andrew Morton <akpm@xxxxxxxx>

- lots of build fixes

- rename `nrnd_state' to `rnd_state': it's not net any more.

- I hope it works after this :(

Cc: Stephen Hemminger <shemminger@xxxxxxxx>
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Cc: Stephane Eranian <eranian@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 lib/random32.c |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff -puN lib/random32.c~rename-net_random-to-random32-fixes lib/random32.c
--- a/lib/random32.c~rename-net_random-to-random32-fixes
+++ a/lib/random32.c
@@ -32,13 +32,19 @@
    s1 > 1, s2 > 7, s3 > 15.
 
 */
-struct nrnd_state {
+
+#include <linux/types.h>
+#include <linux/percpu.h>
+#include <linux/module.h>
+#include <linux/random.h>
+
+struct rnd_state {
 	u32 s1, s2, s3;
 };
 
-static DEFINE_PER_CPU(struct nrnd_state, net_rand_state);
+static DEFINE_PER_CPU(struct rnd_state, net_rand_state);
 
-static u32 __random32(struct nrnd_state *state)
+static u32 __random32(struct rnd_state *state)
 {
 #define TAUSWORTHE(s,a,b,c,d) ((s&c)<<d) ^ (((s <<a) ^ s)>>b)
 
@@ -49,7 +55,7 @@ static u32 __random32(struct nrnd_state 
 	return (state->s1 ^ state->s2 ^ state->s3);
 }
 
-static void __set_random32(struct nrnd_state *state, unsigned long s)
+static void __set_random32(struct rnd_state *state, unsigned long s)
 {
 	if (s == 0)
 		s = 1;      /* default seed is 1 */
@@ -78,7 +84,7 @@ static void __set_random32(struct nrnd_s
 u32 random32(void)
 {
 	unsigned long r;
-	struct nrnd_state *state = &get_cpu_var(net_rand_state);
+	struct rnd_state *state = &get_cpu_var(net_rand_state);
 	r = __random32(state);
 	put_cpu_var(state);
 	return r;
@@ -94,8 +100,8 @@ EXPORT_SYMBOL(random32);
  */
 void srandom32(u32 entropy)
 {
-	struct nrnd_state *state = &get_cpu_var(net_rand_state);
-	__net_srandom(state, state->s1^entropy);
+	struct rnd_state *state = &get_cpu_var(net_rand_state);
+	__set_random32(state, state->s1 ^ entropy);
 	put_cpu_var(state);
 }
 EXPORT_SYMBOL(srandom32);
@@ -104,14 +110,15 @@ EXPORT_SYMBOL(srandom32);
  *	Generate some initially weak seeding values to allow
  *	to start the random32() engine.
  */
-static void __init random32_init(void)
+static int __init random32_init(void)
 {
 	int i;
 
 	for_each_possible_cpu(i) {
-		struct nrnd_state *state = &per_cpu(net_rand_state,i);
-		__net_srandom(state, i+jiffies);
+		struct rnd_state *state = &per_cpu(net_rand_state,i);
+		__set_random32(state, i + jiffies);
 	}
+	return 0;
 }
 core_initcall(random32_init);
 
@@ -119,16 +126,16 @@ core_initcall(random32_init);
  *	Generate better values after random number generator
  *	is fully initalized.
  */
-static void __init random32_reseed(void)
+static int __init random32_reseed(void)
 {
 	int i;
 	unsigned long seed;
 
 	for_each_possible_cpu(i) {
-		struct nrnd_state *state = &per_cpu(net_rand_state,i);
+		struct rnd_state *state = &per_cpu(net_rand_state,i);
 
 		get_random_bytes(&seed, sizeof(seed));
-		__net_srandom(state, seed);
+		__set_random32(state, seed);
 	}
 	return 0;
 }
_

Patches currently in -mm which might be from akpm@xxxxxxxx are

origin.patch
ioc4-enable-build-on-non-sn2.patch
remove_mapping-fix.patch
proc_numbuf-is-wrong.patch
rename-net_random-to-random32.patch
rename-net_random-to-random32-fixes.patch
rename-net_random-to-random32-fix-2.patch
remove-carta_random32.patch
vmalloc-dont-pass-__gfp_zero-to-slab.patch
acpi_processor_latency_notifier-up-warning-fix.patch
swsusp-fix-memory-leaks.patch
knfsd-allow-lockd-to-drop-replys-as-appropriate-fixes.patch
revert-generic_file_buffered_write-handle-zero-length-iovec-segments.patch
revert-generic_file_buffered_write-deadlock-on-vectored-write.patch
generic_file_buffered_write-cleanup.patch
mm-fix-pagecache-write-deadlocks.patch
i386-acpi-build-fix.patch
acpi-cpufreq-remove-dead-code.patch
acpi-asus-s3-resume-fix.patch
sony_apci-resume.patch
speedstep-centrino-remove-dead-code.patch
revert-gregkh-driver-driver-core-fixes-sysfs_create_group-retval-in-topology.c.patch
git-dvb.patch
git-dvb-fixup.patch
git-infiniband.patch
git-input.patch
git-input-fixup.patch
git-libata-all.patch
mtd-maps-support-for-bios-flash-chips-on-intel-esb2-southbridge.patch
git-netdev-all.patch
libphy-dont-do-that.patch
drivers-net-ns83820c-add-paramter-to-disable-auto.patch
git-pcmcia-fixup.patch
git-serial-fixup.patch
revert-gregkh-pci-pci-check-that-mwi-bit-really-did-get-set.patch
git-scsi-target-fixup.patch
git-scsi-target-vs-git-block.patch
fix-gregkh-usb-usbatm-fix-tiny-race.patch
xpad-dance-pad-support.patch
git-watchdog.patch
x86_64-dump_trace-atomicity-fix.patch
spinlock-debug-all-cpu-backtrace.patch
i386-fix-cfi_signal_frame-copy-n-paste-error.patch
xfs-rename-uio_read.patch
touchkit-ps-2-touchscreen-driver.patch
get-rid-of-zone_table.patch
new-scheme-to-preempt-swap-token-tidy.patch
balance_pdgat-cleanup.patch
radix-tree-rcu-lockless-readside.patch
acx1xx-wireless-driver.patch
swsusp-add-resume_offset-command-line-parameter-rev-2.patch
s390-qdio-build-fix.patch
deprecate-smbfs-in-favour-of-cifs.patch
edac-new-opteron-athlon64-memory-controller-driver.patch
kbuild-dont-put-temp-files-in-the-source-tree.patch
lockdep-annotate-nfs-nfsd-in-kernel-sockets-tidy.patch
drivers-add-lcd-support-3-Kconfig-fix.patch
bug-test-1.patch
log2-implement-a-general-integer-log2-facility-in-the-kernel-fix.patch
log2-implement-a-general-integer-log2-facility-in-the-kernel-vs-git-cryptodev.patch
fs-cache-provide-a-filesystem-specific-syncable-page-bit-ext4.patch
fs-cache-make-kafs-use-fs-cache-fix.patch
fs-cache-make-kafs-use-fs-cache-vs-streamline-generic_file_-interfaces-and-filemap.patch
nfs-use-local-caching-12-fix.patch
fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-log2-fix.patch
swap_prefetch-vs-zoned-counters.patch
readahead-sysctl-parameters.patch
make-copy_from_user_inatomic-not-zero-the-tail-on-i386-vs-reiser4.patch
make-kmem_cache_destroy-return-void-reiser4.patch
reiser4-hardirq-include-fix.patch
reiser4-run-truncate_inode_pages-in-reiser4_delete_inode.patch
reiser4-get_sb_dev-fix.patch
reiser4-vs-zoned-allocator.patch
hpt3xx-rework-rate-filtering-tidy.patch
gtod-persistent-clock-support-i386.patch
hrtimers-state-tracking.patch
clockevents-drivers-for-i386.patch
gtod-mark-tsc-unusable-for-highres-timers.patch
round_jiffies-infrastructure-fix.patch
kevent-core-files-fix.patch
kevent-core-files-s390-hack.patch
kevent-socket-notifications-fix-2.patch
kevent-socket-notifications-fix-4.patch
kevent-timer-notifications-fix.patch
nr_blockdev_pages-in_interrupt-warning.patch
device-suspend-debug.patch
mutex-subsystem-synchro-test-module-fix.patch
slab-leaks3-default-y.patch
x86-kmap_atomic-debugging.patch
restore-rogue-readahead-printk.patch
put_bh-debug.patch
acpi_format_exception-debug.patch
mm-only-i_size_write-debugging.patch
jmicron-warning-fix.patch
squash-ipc-warnings.patch
squash-udf-warnings.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