Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Fix prototype warning for init_vdso_image

Fix the following warning:
arch/sparc/vdso/vma.c:246:12: warning: no previous prototype for ‘init_vdso_image’

init_vdso_image has no users outside vma.c, make it static.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240330-sparc64-warnings-v1-1-37201023ee2f@ravnborg.org
Signed-off-by: Andreas Larsson <andreas@gaisler.com>

authored by

Sam Ravnborg and committed by
Andreas Larsson
0480fb5b c32d18e7

+3 -2
+3 -2
arch/sparc/vdso/vma.c
··· 243 243 * Allocate pages for the vdso and vvar, and copy in the vdso text from the 244 244 * kernel image. 245 245 */ 246 - int __init init_vdso_image(const struct vdso_image *image, 247 - struct vm_special_mapping *vdso_mapping, bool elf64) 246 + static int __init init_vdso_image(const struct vdso_image *image, 247 + struct vm_special_mapping *vdso_mapping, 248 + bool elf64) 248 249 { 249 250 int cnpages = (image->size) / PAGE_SIZE; 250 251 struct page *dp, **dpp = NULL;