Skip to content

Commit b536adb

Browse files
sravnborgandreas-gaisler
authored andcommitted
sparc64: Fix prototype warnings in adi_64.c
Fix the following warnings: arch/sparc/kernel/adi_64.c:124:21: warning: no previous prototype for ‘find_tag_store’ arch/sparc/kernel/adi_64.c:156:21: warning: no previous prototype for ‘alloc_tag_store’ arch/sparc/kernel/adi_64.c:299:6: warning: no previous prototype for ‘del_tag_store’ None of the functions were used outside the file, so declare them 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 8f00d28 commit b536adb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

arch/sparc/kernel/adi_64.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ void __init mdesc_adi_init(void)
121121
mdesc_release(hp);
122122
}
123123

124-
tag_storage_desc_t *find_tag_store(struct mm_struct *mm,
125-
struct vm_area_struct *vma,
126-
unsigned long addr)
124+
static tag_storage_desc_t *find_tag_store(struct mm_struct *mm,
125+
struct vm_area_struct *vma,
126+
unsigned long addr)
127127
{
128128
tag_storage_desc_t *tag_desc = NULL;
129129
unsigned long i, max_desc, flags;
@@ -153,9 +153,9 @@ tag_storage_desc_t *find_tag_store(struct mm_struct *mm,
153153
return tag_desc;
154154
}
155155

156-
tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
157-
struct vm_area_struct *vma,
158-
unsigned long addr)
156+
static tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
157+
struct vm_area_struct *vma,
158+
unsigned long addr)
159159
{
160160
unsigned char *tags;
161161
unsigned long i, size, max_desc, flags;
@@ -296,7 +296,7 @@ tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
296296
return tag_desc;
297297
}
298298

299-
void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *mm)
299+
static void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *mm)
300300
{
301301
unsigned long flags;
302302
unsigned char *tags = NULL;

0 commit comments

Comments
 (0)