Skip to content

Commit 6a11ec4

Browse files
MichaelBrimCamStan
authored andcommitted
fix next_page_align unused function compiler error
1 parent f8e9cb8 commit 6a11ec4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

client/src/unifyfs.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,6 @@ static size_t get_superblock_size(unifyfs_client* client)
202202
return sb_size;
203203
}
204204

205-
static inline
206-
char* next_page_align(char* ptr)
207-
{
208-
size_t pgsz = get_page_size();
209-
intptr_t orig = (intptr_t) ptr;
210-
intptr_t aligned = orig;
211-
intptr_t offset = orig % pgsz;
212-
if (offset) {
213-
aligned += (pgsz - offset);
214-
}
215-
LOGDBG("orig=0x%p, next-page-aligned=0x%p", ptr, (char*)aligned);
216-
return (char*) aligned;
217-
}
218-
219205
/* initialize our global pointers into the given superblock */
220206
static void init_superblock_pointers(unifyfs_client* client,
221207
void* superblock)

0 commit comments

Comments
 (0)