Skip to content

Commit

Permalink
Do not include <linux/futex.h> if Aliens as disabled.
Browse files Browse the repository at this point in the history
Remove unused inline function 'async_callback_queuer_cast()'.
  • Loading branch information
IdWV committed Jan 4, 2025
1 parent 61a3ad1 commit d2f02c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/async/alien.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
/*
This file is part of the async plugin for ucode
*/
#include <linux/futex.h>
#include <stdatomic.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <err.h>
#include <errno.h>
Expand All @@ -36,6 +33,9 @@ This file is part of the async plugin for ucode
#include "queuer.h"

#ifdef ASYNC_HAS_ALIENS
#include <linux/futex.h>
#include <stdatomic.h>
#include <sys/syscall.h>

static int
async_futex( _Atomic uint32_t *uaddr, int futex_op, uint32_t val,
Expand Down
2 changes: 2 additions & 0 deletions lib/async/queuer.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ struct async_callback_queuer_chain
struct async_callback callback;
};

/*
static inline async_callback_queuer_t *
async_callback_queuer_cast(struct uc_async_callback_queuer *handler)
{
return (async_callback_queuer_t *)handler;
}
*/

static inline async_callback_queuer_t const *
async_callback_queuer_cast_const(struct uc_async_callback_queuer const *handler)
Expand Down

0 comments on commit d2f02c6

Please sign in to comment.