summaryrefslogtreecommitdiffstats
path: root/fs/afs/netdevices.c
diff options
context:
space:
mode:
authorArnd Bergmann2017-02-10 17:34:07 +0100
committerDavid Howells2017-02-10 17:34:17 +0100
commitb4db2b35fc444409daf483006111a2a705550fff (patch)
tree3c7b9f49aadd58cbc3b53414a964bf5a27101a9c /fs/afs/netdevices.c
parentafs: Move UUID struct to linux/uuid.h (diff)
downloadkernel-qcow2-linux-b4db2b35fc444409daf483006111a2a705550fff.tar.gz
kernel-qcow2-linux-b4db2b35fc444409daf483006111a2a705550fff.tar.xz
kernel-qcow2-linux-b4db2b35fc444409daf483006111a2a705550fff.zip
afs: Use core kernel UUID generation
AFS uses a time based UUID to identify the host itself. This requires getting a timestamp which is currently done through the getnstimeofday() interface that we want to eventually get rid of. Instead of replacing it with a ktime-based interface, simply remove the entire function and use generate_random_uuid() instead, which has a v4 ("completely random") UUID instead of the time-based one. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/netdevices.c')
-rw-r--r--fs/afs/netdevices.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/afs/netdevices.c b/fs/afs/netdevices.c
index 7ad36506c256..40b2bab3e401 100644
--- a/fs/afs/netdevices.c
+++ b/fs/afs/netdevices.c
@@ -12,27 +12,6 @@
#include "internal.h"
/*
- * get a MAC address from a random ethernet interface that has a real one
- * - the buffer will normally be 6 bytes in size
- */
-int afs_get_MAC_address(u8 *mac, size_t maclen)
-{
- struct net_device *dev;
- int ret = -ENODEV;
-
- BUG_ON(maclen != ETH_ALEN);
-
- rtnl_lock();
- dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER);
- if (dev) {
- memcpy(mac, dev->dev_addr, maclen);
- ret = 0;
- }
- rtnl_unlock();
- return ret;
-}
-
-/*
* get a list of this system's interface IPv4 addresses, netmasks and MTUs
* - maxbufs must be at least 1
* - returns the number of interface records in the buffer