Skip to content

Commit

Permalink
benchmark/disk: Make io_uring syscall declaration static
Browse files Browse the repository at this point in the history
Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
  • Loading branch information
freeekanayaka committed Sep 18, 2023
1 parent e35d5c7 commit 42a28ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/benchmark/disk_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ struct io_uring_cqe *cqes;
* provide wrappers for io_uring system calls.
* */

int _io_uring_setup(unsigned entries, struct io_uring_params *p)
static int _io_uring_setup(unsigned entries, struct io_uring_params *p)
{
return (int)syscall(__NR_io_uring_setup, entries, p);
}

int _io_uring_enter(int ring_fd,
unsigned int to_submit,
unsigned int min_complete,
unsigned int flags)
static int _io_uring_enter(int ring_fd,
unsigned int to_submit,
unsigned int min_complete,
unsigned int flags)
{
return (int)syscall(__NR_io_uring_enter, ring_fd, to_submit, min_complete,
flags, NULL, 0);
Expand Down

0 comments on commit 42a28ea

Please sign in to comment.