Skip to content

Commit

Permalink
sparc32: fix sparse "Should it be static?" in mm/
Browse files Browse the repository at this point in the history
Fix following warnings:
srmmu.c:870:13: warning: symbol 'srmmu_paging_init' was not declared. Should it be static?
iommu.c:430:13: warning: symbol 'ld_mmu_iommu' was not declared. Should it be static?
leon_mm.c:21:5: warning: symbol 'srmmu_swprobe_trace' was not declared. Should it be static?

Add proper prototypes or define static to fix them.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sravnborg authored and davem330 committed Apr 29, 2014
1 parent e8c29c8 commit a2b0aa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/mm/leon_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "mm_32.h"

int leon_flush_during_switch = 1;
int srmmu_swprobe_trace;
static int srmmu_swprobe_trace;

static inline unsigned long leon_get_ctable_ptr(void)
{
Expand Down
6 changes: 6 additions & 0 deletions arch/sparc/mm/mm_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ extern int flush_page_for_dma_global;
extern void (*poke_srmmu)(void);

void __init srmmu_paging_init(void);

/* iommu.c */
void ld_mmu_iommu(void);

/* io-unit.c */
void ld_mmu_iounit(void);
3 changes: 0 additions & 3 deletions arch/sparc/mm/srmmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,6 @@ static struct sparc32_cachetlb_ops smp_cachetlb_ops = {
/* Load up routines and constants for sun4m and sun4d mmu */
void __init load_mmu(void)
{
extern void ld_mmu_iommu(void);
extern void ld_mmu_iounit(void);

/* Functions */
get_srmmu_type();

Expand Down

0 comments on commit a2b0aa9

Please sign in to comment.