mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
The xarray.c file contains the only call to radix_tree_node_rcu_free(), and it comes with its own extern declaration for it. This means the function definition causes a missing-prototype warning: lib/radix-tree.c:288:6: error: no previous prototype for 'radix_tree_node_rcu_free' [-Werror=missing-prototypes] Instead, move the declaration for this function to a new header that can be included by both, and do the same for the radix_tree_node_cachep variable that has the same underlying problem but does not cause a warning with gcc. [[email protected]: fix building radix tree test suite] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Peng Zhang <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
9 lines
244 B
C
9 lines
244 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/* radix-tree helpers that are only shared with xarray */
|
|
|
|
struct kmem_cache;
|
|
struct rcu_head;
|
|
|
|
extern struct kmem_cache *radix_tree_node_cachep;
|
|
extern void radix_tree_node_rcu_free(struct rcu_head *head);
|