Apply patch: ncpfs-hg-commit-415.patch

This commit is contained in:
Mario Fetka
2026-04-28 20:56:02 +02:00
parent 4740ddf9ae
commit 31af4d974c
4 changed files with 100 additions and 10 deletions

View File

@@ -16,10 +16,10 @@ struct list_head {
struct list_head *next, *prev;
};
#define LIST_HEAD(name) \
#define NCP_LIST_HEAD(name) \
struct list_head name = { &name, &name }
#define INIT_LIST_HEAD(ptr) do { \
#define NCP_INIT_LIST_HEAD(ptr) do { \
(ptr)->next = (ptr); (ptr)->prev = (ptr); \
} while (0)
@@ -64,7 +64,7 @@ static __inline__ void __list_del(struct list_head * prev,
static __inline__ void list_del(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
INIT_LIST_HEAD(entry);
NCP_INIT_LIST_HEAD(entry);
}
static __inline__ int list_empty(struct list_head *head)