summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2026-07-30 12:55:14 +0200
committerStefan Roese <[email protected]>2026-08-03 14:46:51 +0200
commitdcadbeed2a90b2e1cc98c369b299c3c59e9d712c (patch)
tree50e549477cec3d6027d76b65a14311b0e7525224 /include
parentbaa64b2f892890f00a377eac4a3e685472bb56b5 (diff)
cyclic: get rid of cyclic_get_list() helper
As the comment indicates, this was used to silence a warning without having to add casts everywhere gd->cyclic_list was referenced. But nowadays gd is not volatile qualified, so this helper is not needed and only obfuscates the code somewhat, because the head of the list being operated on with the hlist_ or list_ macros is usually not obtained via a function call. Remove the helper and refer to the list head using the idiomatic &gd->cyclic_list. Signed-off-by: Rasmus Villemoes <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/cyclic.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/cyclic.h b/include/cyclic.h
index df8b725e3d0..ec2c53b6ecf 100644
--- a/include/cyclic.h
+++ b/include/cyclic.h
@@ -78,15 +78,6 @@ void cyclic_unregister(struct cyclic_info *cyclic);
*/
int cyclic_unregister_all(void);
-/**
- * cyclic_get_list() - Get cyclic list pointer
- *
- * Return the cyclic list pointer
- *
- * @return: pointer to cyclic_list
- */
-struct hlist_head *cyclic_get_list(void);
-
#else
static inline void cyclic_register(struct cyclic_info *cyclic, cyclic_func_t func,