Skip to content

Commit 5b525b2

Browse files
committed
fs/lustre: Remove unneeded includes
The functionality was migrated to `fs/base/fs_base_get_parent_dir.c` long ago, but the includes stayed. Though in lustre 2.14 `lustre_user.h` moved the inclusion of `linux/fs.h` outside the `__KERNEL__` guard. This triggered now Debian bug #898743 [1], which states that including `sys/mount.h` after `linux/fs.h` breaks compilation. Thus the include removal also avoids this breakage. Closes #8508. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898743 Signed-off-by: Bert Wesarg <[email protected]>
1 parent 7121789 commit 5b525b2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

ompi/mca/fs/lustre/fs_lustre.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,6 @@
3232
#include "ompi/mca/fs/base/base.h"
3333
#include "ompi/mca/fs/lustre/fs_lustre.h"
3434

35-
#ifdef HAVE_SYS_STATFS_H
36-
#include <sys/statfs.h> /* or <sys/vfs.h> */
37-
#endif
38-
#ifdef HAVE_SYS_PARAM_H
39-
#include <sys/param.h>
40-
#endif
41-
#ifdef HAVE_SYS_MOUNT_H
42-
#include <sys/mount.h>
43-
#endif
44-
#ifdef HAVE_SYS_STAT_H
45-
#include <sys/stat.h>
46-
#endif
47-
48-
#include <sys/ioctl.h>
49-
5035
/*
5136
* *******************************************************************
5237
* ************************ actions structure ************************

0 commit comments

Comments
 (0)