Skip to content

Commit 0480fb5

Browse files
sravnborgandreas-gaisler
authored andcommitted
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 <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent c32d18e commit 0480fb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/sparc/vdso/vma.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,9 @@ static int stick_patch(const struct vdso_image *image, struct vdso_elfinfo *e, b
243243
* Allocate pages for the vdso and vvar, and copy in the vdso text from the
244244
* kernel image.
245245
*/
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)
248249
{
249250
int cnpages = (image->size) / PAGE_SIZE;
250251
struct page *dp, **dpp = NULL;

0 commit comments

Comments
 (0)