Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-11838 kernel: harden current_time autoconf test
[fs/lustre-release.git]
/
lustre
/
autoconf
/
lustre-core.m4
diff --git
a/lustre/autoconf/lustre-core.m4
b/lustre/autoconf/lustre-core.m4
index
f4d6a25
..
227fd38
100644
(file)
--- a/
lustre/autoconf/lustre-core.m4
+++ b/
lustre/autoconf/lustre-core.m4
@@
-2899,7
+2899,9
@@
LB_CHECK_COMPILE([if CURRENT_TIME has been replaced with current_time],
current_time, [
#include <linux/fs.h>
],[
current_time, [
#include <linux/fs.h>
],[
- struct timespec ts = current_time(NULL);
+ struct iattr attr;
+
+ attr.ia_atime = current_time(NULL);
],[
AC_DEFINE(HAVE_CURRENT_TIME, 1,
[current_time() has replaced CURRENT_TIME])
],[
AC_DEFINE(HAVE_CURRENT_TIME, 1,
[current_time() has replaced CURRENT_TIME])