Skip to content

Commit 6ca0f81

Browse files
arndbakpm00
authored andcommitted
mm: percpu: unhide pcpu_embed_first_chunk prototype
Patch series "mm/init/kernel: missing-prototypes warnings". These are patches addressing -Wmissing-prototypes warnings in common kernel code and memory management code files that usually get merged through the -mm tree. This patch (of 12): This function is called whenever CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK or CONFIG_HAVE_SETUP_PER_CPU_AREA, but only declared when the former is set: mm/percpu.c:3055:12: error: no previous prototype for 'pcpu_embed_first_chunk' [-Werror=missing-prototypes] There is no real point in hiding declarations, so just remove the #ifdef here. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Cc: Boqun Feng <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Dennis Zhou <[email protected]> Cc: Eric Paris <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Helge Deller <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michal Simek <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Moore <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Russell King <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Waiman Long <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e994f5b commit 6ca0f81

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/percpu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,10 @@ extern void __init pcpu_free_alloc_info(struct pcpu_alloc_info *ai);
103103
extern void __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
104104
void *base_addr);
105105

106-
#ifdef CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK
107106
extern int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size,
108107
size_t atom_size,
109108
pcpu_fc_cpu_distance_fn_t cpu_distance_fn,
110109
pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn);
111-
#endif
112110

113111
#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
114112
void __init pcpu_populate_pte(unsigned long addr);

0 commit comments

Comments
 (0)