]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
CIFS: Fix build failure with smb2
authorTobias Regnery <tobias.regnery@gmail.com>
Thu, 30 Mar 2017 10:34:14 +0000 (12:34 +0200)
committerSteve French <smfrench@gmail.com>
Fri, 7 Apr 2017 13:04:41 +0000 (08:04 -0500)
I saw the following build error during a randconfig build:

fs/cifs/smb2ops.c: In function 'smb2_new_lease_key':
fs/cifs/smb2ops.c:1104:2: error: implicit declaration of function 'generate_random_uuid' [-Werror=implicit-function-declaration]

Explicit include the right header to fix this issue.

Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c

index 063e59d543f92e30a243a6df0ae0e0a508d05b72..7b12a727947efc48df3ce8ea7698936d0702da21 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/vfs.h>
 #include <linux/falloc.h>
 #include <linux/scatterlist.h>
+#include <linux/uuid.h>
 #include <crypto/aead.h>
 #include "cifsglob.h"
 #include "smb2pdu.h"