Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit f14c04f

Browse files
committed
fix the lustre compilation problems for older lustre versions. Add the prototype for the static function to avoid a warning message.
1 parent 9674a0c commit f14c04f

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

ompi/mca/fs/lustre/fs_lustre.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ extern int mca_fs_lustre_stripe_width;
3131

3232
BEGIN_C_DECLS
3333

34+
35+
#ifndef LOV_MAX_STRIPE_COUNT
36+
#define LOV_MAX_STRIPE_COUNT 160
37+
#endif
38+
39+
3440
int mca_fs_lustre_component_init_query(bool enable_progress_threads,
3541
bool enable_mpi_threads);
3642
struct mca_fs_base_module_1_0_0_t *

ompi/mca/fs/lustre/fs_lustre_file_open.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,8 @@
3333
#include <lustre/liblustreapi.h>
3434
#include <lustre/lustre_user.h>
3535

36-
/*
37-
* file_open_lustre
38-
*
39-
* Function: - opens a new file
40-
* Accepts: - same arguments as MPI_File_open()
41-
* Returns: - Success if new file handle
42-
*/
36+
static void *alloc_lum();
37+
4338
static void *alloc_lum()
4439
{
4540
int v1, v3, join;
@@ -52,6 +47,13 @@ static void *alloc_lum()
5247
return malloc(MAX(v1, v3));
5348
}
5449

50+
/*
51+
* file_open_lustre
52+
*
53+
* Function: - opens a new file
54+
* Accepts: - same arguments as MPI_File_open()
55+
* Returns: - Success if new file handle
56+
*/
5557

5658
int
5759
mca_fs_lustre_file_open (struct ompi_communicator_t *comm,

0 commit comments

Comments
 (0)