summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-03 11:19:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-11 16:16:58 +0100
commit89f1040d09f2fb4da2a2e056e320662a5b87671d (patch)
tree157ded450e4ecd734cb5ab19b85963264cda8345 /include/linux
parent4fd8bfb0f354cc2583ef90fa4b3c64e241bbcfc2 (diff)
downloadbarebox-89f1040d09f2fb4da2a2e056e320662a5b87671d.tar.gz
barebox-89f1040d09f2fb4da2a2e056e320662a5b87671d.tar.xz
list: rename debugging hooks
Linux recently renamed the name of these helpers, so have barebox follow suit before implementing them out of line when optional list debugging is enabled. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240103101948.2630473-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/list.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/list.h b/include/linux/list.h
index 1341806b59..60b0111f46 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -37,18 +37,18 @@ static inline void INIT_LIST_HEAD(struct list_head *list)
}
#ifdef CONFIG_DEBUG_LIST
-extern bool __list_add_valid(struct list_head *new,
- struct list_head *prev,
- struct list_head *next);
-extern bool __list_del_entry_valid(struct list_head *entry);
+extern bool __list_add_valid_or_report(struct list_head *new,
+ struct list_head *prev,
+ struct list_head *next);
+extern bool __list_del_entry_valid_or_report(struct list_head *entry);
#else
-static inline bool __list_add_valid(struct list_head *new,
- struct list_head *prev,
- struct list_head *next)
+static inline bool __list_add_valid_or_report(struct list_head *new,
+ struct list_head *prev,
+ struct list_head *next)
{
return true;
}
-static inline bool __list_del_entry_valid(struct list_head *entry)
+static inline bool __list_del_entry_valid_or_report(struct list_head *entry)
{
return true;
}
@@ -64,7 +64,7 @@ static inline void __list_add(struct list_head *new,
struct list_head *prev,
struct list_head *next)
{
- if (!__list_add_valid(new, prev, next))
+ if (!__list_add_valid_or_report(new, prev, next))
return;
next->prev = new;
@@ -129,7 +129,7 @@ static inline void __list_del_clearprev(struct list_head *entry)
static inline void __list_del_entry(struct list_head *entry)
{
- if (!__list_del_entry_valid(entry))
+ if (!__list_del_entry_valid_or_report(entry))
return;
__list_del(entry->prev, entry->next);