The patch titled rename-net_random-to-random32-fixes has been added to the -mm tree. Its filename is rename-net_random-to-random32-fixes.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ 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 revert-pci-quirk-for-ibm-dock-ii-cardbus-controllers.patch remove_mapping-fix.patch proc_numbuf-is-wrong.patch rename-net_random-to-random32-fixes.patch git-acpi.patch i386-acpi-build-fix.patch acpi-asus-s3-resume-fix.patch sony_apci-resume.patch git-cifs-fixup.patch cifs-kconfig-dont-select-connector.patch git-dvb-build-fix.patch w1-kconfig-fix.patch git-geode-fixup.patch git-gfs2.patch git-infiniband.patch git-input-fixup.patch git-input-build-fix.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 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 spinlock-debug-all-cpu-backtrace-fix.patch spinlock-debug-all-cpu-backtrace-fix-2.patch spinlock-debug-all-cpu-backtrace-fix-3.patch xfs-rename-uio_read.patch touchkit-ps-2-touchscreen-driver-regs-fix.patch get-rid-of-zone_table.patch new-scheme-to-preempt-swap-token-tidy.patch radix-tree-rcu-lockless-readside.patch acx1xx-wireless-driver.patch swsusp-add-resume_offset-command-line-parameter-rev-2.patch deprecate-smbfs-in-favour-of-cifs.patch edac-new-opteron-athlon64-memory-controller-driver.patch add-address_space_operationsbatch_write.patch add-config_headers_check-option-to-automatically-run-make-headers_check-nobble.patch kbuild-dont-put-temp-files-in-the-source-tree.patch lockdep-annotate-nfs-nfsd-in-kernel-sockets-tidy.patch bug-test-1.patch log2-implement-a-general-integer-log2-facility-in-the-kernel-fix.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 reiser4-rename-generic_sounding_globalspatch-fix.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 warn-if-setting-non-uptodate-page-dirty.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