From 3ad62b55541bc55d0211d7613edd6243b96bd647 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Sun, 1 Nov 2015 11:47:29 -0500 Subject: [PATCH] LU-7366 build: resolve compile issues on Ubuntu 15.04 Ubuntu 15.04 has been released which uses a 4.2 kernel and gcc 5.2. The gcc version fails to build lustre due to missing headers in the GSS userland code and a variable not being uninitialized in the llite layer. Change-Id: I3615414ac039277a6ef6c6af1a541590b9d79566 Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/17008 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: John L. Hammond Reviewed-by: Frank Zago Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- lustre/llite/symlink.c | 2 +- lustre/utils/gss/lgss_utils.h | 1 + lustre/utils/gss/svcgssd_proc.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/llite/symlink.c b/lustre/llite/symlink.c index 4b1a9da..e635037 100644 --- a/lustre/llite/symlink.c +++ b/lustre/llite/symlink.c @@ -160,7 +160,7 @@ static const char *ll_follow_link(struct dentry *dentry, void **cookie) { struct inode *inode = d_inode(dentry); struct ptlrpc_request *request; - char *symname; + char *symname = NULL; int rc; ENTRY; diff --git a/lustre/utils/gss/lgss_utils.h b/lustre/utils/gss/lgss_utils.h index 51a8f45..1c0e377 100644 --- a/lustre/utils/gss/lgss_utils.h +++ b/lustre/utils/gss/lgss_utils.h @@ -39,6 +39,7 @@ #ifndef LGSS_UTILS_H #define LGSS_UTILS_H +#include #include #include #include diff --git a/lustre/utils/gss/svcgssd_proc.c b/lustre/utils/gss/svcgssd_proc.c index 1ff7859..588b524 100644 --- a/lustre/utils/gss/svcgssd_proc.c +++ b/lustre/utils/gss/svcgssd_proc.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include -- 1.8.3.1