summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/random.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-11-11 12:20:35 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-11 14:32:14 -0500
commit38e9efcdb33270b4da72143d8e7ca4dcf7f0989b (patch)
treef585a528c9a1bd6f6349f037a3afeecab2ba4f6a /include/uapi/linux/random.h
parent4af712e8df998475736f3e2727701bd31e3751a9 (diff)
downloadblackbird-op-linux-38e9efcdb33270b4da72143d8e7ca4dcf7f0989b.tar.gz
blackbird-op-linux-38e9efcdb33270b4da72143d8e7ca4dcf7f0989b.zip
random32: move rnd_state to linux/random.h
struct rnd_state got mistakenly pulled into uapi header. It is not used anywhere and does also not belong there! Commit 5960164fde ("lib/random32: export pseudo-random number generator for modules"), the last commit on rnd_state before it got moved to uapi, says: This patch moves the definition of struct rnd_state and the inline __seed() function to linux/random.h. It renames the static __random32() function to prandom32() and exports it for use in modules. Hence, the structure was moved from lib/random32.c to linux/random.h so that it can be used within modules (FCoE-related code in this case), but not from user space. However, it seems to have been mistakenly moved to uapi header through the uapi script. Since no-one should make use of it from the linux headers, move the structure back to the kernel for internal use, so that it can be modified on demand. Joint work with Hannes Frederic Sowa. Cc: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/random.h')
-rw-r--r--include/uapi/linux/random.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/uapi/linux/random.h b/include/uapi/linux/random.h
index 7471b5b3b8ba..fff3528a078f 100644
--- a/include/uapi/linux/random.h
+++ b/include/uapi/linux/random.h
@@ -40,11 +40,4 @@ struct rand_pool_info {
__u32 buf[0];
};
-struct rnd_state {
- __u32 s1, s2, s3;
-};
-
-/* Exported functions */
-
-
#endif /* _UAPI_LINUX_RANDOM_H */
OpenPOWER on IntegriCloud