sparc64: Fix prototype warning for init_vdso_image
authorSam Ravnborg <sam@ravnborg.org>
Sat, 30 Mar 2024 09:57:37 +0000 (10:57 +0100)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 22 Apr 2024 13:33:06 +0000 (15:33 +0200)
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>
arch/sparc/vdso/vma.c

index 1bbf4335de4540598528240e6106896b8d6d5c4a..bab7a59575e882d911c5d1b0903f45cec353aef0 100644 (file)
@@ -243,8 +243,9 @@ static int stick_patch(const struct vdso_image *image, struct vdso_elfinfo *e, b
  * Allocate pages for the vdso and vvar, and copy in the vdso text from the
  * kernel image.
  */
-int __init init_vdso_image(const struct vdso_image *image,
-                          struct vm_special_mapping *vdso_mapping, bool elf64)
+static int __init init_vdso_image(const struct vdso_image *image,
+                                 struct vm_special_mapping *vdso_mapping,
+                                 bool elf64)
 {
        int cnpages = (image->size) / PAGE_SIZE;
        struct page *dp, **dpp = NULL;