Skip to content

Commit

Permalink
Merge pull request #111 from stephenchengCloud/private/stephenche/CP-…
Browse files Browse the repository at this point in the history
…49235

CP-49235: Build both for XS8 and XS9
  • Loading branch information
stephenchengCloud authored May 22, 2024
2 parents 428181b + ae73c00 commit 76f7076
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DDT_BUILD_OPTS := \
-D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE_SOURCE \
-D_LARGEFILE64_SOURCE \
-g

$(DDTDIR)/$(DDT_BIN): $(DDT_FILES)
$(CC) $(CCOPTS) $(DDT_BUILD_OPTS) -o $@ $^
Expand Down
11 changes: 6 additions & 5 deletions src/diskdatatest/fdpattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/fs.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "atomicio.h"

/* This tool is able to write test pattern to disk and verify it.
Expand Down Expand Up @@ -147,7 +148,7 @@ void free_block_buf()
block_buf = NULL;
}

inline void update_sect(char *sect_buf)
static inline void update_sect(char *sect_buf)
{
struct sector_slice *hdr = NULL;
unsigned long long i = 0;
Expand All @@ -158,7 +159,7 @@ inline void update_sect(char *sect_buf)
}
}

inline void update_block()
static inline void update_block()
{
unsigned long long i = 0;
for (; i < sects_of_block; i++) {
Expand All @@ -172,7 +173,7 @@ inline void update_block()
}
}

inline void verify_sect(const char *sect_buf)
static inline void verify_sect(const char *sect_buf)
{
const struct sector_slice *hdr = NULL;
bool sect_error = false;
Expand All @@ -198,7 +199,7 @@ inline void verify_sect(const char *sect_buf)
sect_errors++;
}

inline void verify_block()
static inline void verify_block()
{
unsigned long long i = 0;
for (; i < sects_of_block; i++) {
Expand Down Expand Up @@ -274,7 +275,7 @@ bool check_file_size(int fd)
return true;
}

inline double get_op_elapsed(const struct timeval *start)
static inline double get_op_elapsed(const struct timeval *start)
{
struct timeval current_time;
gettimeofday(&current_time, NULL);
Expand Down

0 comments on commit 76f7076

Please sign in to comment.