Misc cleanup for FreeBSD and clang (#1560)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-11-01 18:04:28 -05:00 • committed by Antonio SJ Musumeci
parent 2412ae7316
commit 41b65ae9e8
9 changed files with 25 additions and 64 deletions

View file

@ -177,48 +177,6 @@ fuse_hdr_arg(const struct fuse_in_header *hdr_)
return (void*)&hdr_[1];
}
static
void
list_add(struct list_head *new_,
struct list_head *prev_,
struct list_head *next_)
{
next_->prev = new_;
new_->next = next_;
new_->prev = prev_;
prev_->next = new_;
}
static
inline
void
list_add_head(struct list_head *new_,
struct list_head *head_)
{
list_add(new_,head_,head_->next);
}
static
inline
void
list_add_tail(struct list_head *new_,
struct list_head *head_)
{
list_add(new_,head_->prev,head_);
}
static
inline
void
list_del(struct list_head *entry)
{
struct list_head *prev = entry->prev;
struct list_head *next = entry->next;
next->prev = prev;
prev->next = next;
}
static
size_t
id_hash(uint64_t ino)