Skip to content

Commit

Permalink
Merge pull request #754 from MichaelBrim/next-page-align-unused
Browse files Browse the repository at this point in the history
fix next_page_align unused function compiler error
  • Loading branch information
adammoody authored Jan 9, 2023
2 parents 824de2b + 8ef0ad2 commit 04fee67
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions client/src/unifyfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,6 @@ static size_t get_superblock_size(unifyfs_client* client)
return sb_size;
}

static inline
char* next_page_align(char* ptr)
{
size_t pgsz = get_page_size();
intptr_t orig = (intptr_t) ptr;
intptr_t aligned = orig;
intptr_t offset = orig % pgsz;
if (offset) {
aligned += (pgsz - offset);
}
LOGDBG("orig=0x%p, next-page-aligned=0x%p", ptr, (char*)aligned);
return (char*) aligned;
}

/* initialize our global pointers into the given superblock */
static void init_superblock_pointers(unifyfs_client* client,
void* superblock)
Expand Down

0 comments on commit 04fee67

Please sign in to comment.