-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sparc64: Kill sparse warnings in mm/init.h
1) Several exported symbols need extern decls, they are exported not for C code but for assembler routines. 2) PAGE_EXEC isn't used, delete 3) Several larger than 32-bit constants need "UL" markers Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
David S. Miller
committed
Sep 12, 2008
1 parent
b539c46
commit af1ee56
Showing
2 changed files
with
56 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifndef _SPARC64_MM_INIT_H | ||
#define _SPARC64_MM_INIT_H | ||
|
||
/* Most of the symbols in this file are defined in init.c and | ||
* marked non-static so that assembler code can get at them. | ||
*/ | ||
|
||
#define MAX_PHYS_ADDRESS (1UL << 42UL) | ||
#define KPTE_BITMAP_CHUNK_SZ (256UL * 1024UL * 1024UL) | ||
#define KPTE_BITMAP_BYTES \ | ||
((MAX_PHYS_ADDRESS / KPTE_BITMAP_CHUNK_SZ) / 8) | ||
|
||
extern unsigned long kern_linear_pte_xor[2]; | ||
extern unsigned long kpte_linear_bitmap[KPTE_BITMAP_BYTES / sizeof(unsigned long)]; | ||
extern unsigned int sparc64_highest_unlocked_tlb_ent; | ||
extern unsigned long sparc64_kern_pri_context; | ||
extern unsigned long sparc64_kern_pri_nuc_bits; | ||
extern unsigned long sparc64_kern_sec_context; | ||
extern void mmu_info(struct seq_file *m); | ||
|
||
struct linux_prom_translation { | ||
unsigned long virt; | ||
unsigned long size; | ||
unsigned long data; | ||
}; | ||
|
||
/* Exported for kernel TLB miss handling in ktlb.S */ | ||
extern struct linux_prom_translation prom_trans[512]; | ||
extern unsigned int prom_trans_ents; | ||
|
||
/* Exported for SMP bootup purposes. */ | ||
extern unsigned long kern_locked_tte_data; | ||
|
||
extern void prom_world(int enter); | ||
|
||
extern void free_initmem(void); | ||
|
||
#ifdef CONFIG_SPARSEMEM_VMEMMAP | ||
#define VMEMMAP_CHUNK_SHIFT 22 | ||
#define VMEMMAP_CHUNK (1UL << VMEMMAP_CHUNK_SHIFT) | ||
#define VMEMMAP_CHUNK_MASK ~(VMEMMAP_CHUNK - 1UL) | ||
#define VMEMMAP_ALIGN(x) (((x)+VMEMMAP_CHUNK-1UL)&VMEMMAP_CHUNK_MASK) | ||
|
||
#define VMEMMAP_SIZE ((((1UL << MAX_PHYSADDR_BITS) >> PAGE_SHIFT) * \ | ||
sizeof(struct page *)) >> VMEMMAP_CHUNK_SHIFT) | ||
extern unsigned long vmemmap_table[VMEMMAP_SIZE]; | ||
#endif | ||
|
||
#endif /* _SPARC64_MM_INIT_H */ |