summaryrefslogtreecommitdiffstats
path: root/fs/afs/internal.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-02-10 16:34:07 +0000
committerDavid Howells <dhowells@redhat.com>2017-02-10 16:34:17 +0000
commitb4db2b35fc444409daf483006111a2a705550fff (patch)
tree3c7b9f49aadd58cbc3b53414a964bf5a27101a9c /fs/afs/internal.h
parentff548773106ec7f8031bc6172e0234bd2a02c19c (diff)
downloadop-kernel-dev-b4db2b35fc444409daf483006111a2a705550fff.zip
op-kernel-dev-b4db2b35fc444409daf483006111a2a705550fff.tar.gz
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/internal.h')
-rw-r--r--fs/afs/internal.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 79061fa..8acf367 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -561,6 +561,11 @@ extern int afs_mntpt_check_symlink(struct afs_vnode *, struct key *);
extern void afs_mntpt_kill_timer(void);
/*
+ * netdevices.c
+ */
+extern int afs_get_ipv4_interfaces(struct afs_interface *, size_t, bool);
+
+/*
* proc.c
*/
extern int afs_proc_init(void);
@@ -624,12 +629,6 @@ extern int afs_fs_init(void);
extern void afs_fs_exit(void);
/*
- * use-rtnetlink.c
- */
-extern int afs_get_ipv4_interfaces(struct afs_interface *, size_t, bool);
-extern int afs_get_MAC_address(u8 *, size_t);
-
-/*
* vlclient.c
*/
extern int afs_vl_get_entry_by_name(struct in_addr *, struct key *,
OpenPOWER on IntegriCloud