mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
4255f0d2a1
building kernel 2.6.32(pre), gives this compiler warning: /linus-linux-2.6/mm/vmalloc.c: In function 'pcpu_get_vm_areas': /linus-linux-2.6/mm/vmalloc.c:2104: warning: 'vmalloc_start' is used uninitialized in this function The reason is, that the code in mm/vmalloc defines a local variable called vmalloc_start, which is already defined as global variable in parisc's code. To avoid this kind of problems in future, I suggest to rename the parisc variable to parisc_vmalloc_start. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
#ifndef _ASM_FIXMAP_H
|
|
#define _ASM_FIXMAP_H
|
|
|
|
/*
|
|
* This file defines the locations of the fixed mappings on parisc.
|
|
*
|
|
* All of the values in this file are machine virtual addresses.
|
|
*
|
|
* All of the values in this file must be <4GB (because of assembly
|
|
* loading restrictions). If you place this region anywhere above
|
|
* __PAGE_OFFSET, you must adjust the memory map accordingly */
|
|
|
|
/* The alias region is used in kernel space to do copy/clear to or
|
|
* from areas congruently mapped with user space. It is 8MB large
|
|
* and must be 16MB aligned */
|
|
#define TMPALIAS_MAP_START ((__PAGE_OFFSET) - 16*1024*1024)
|
|
/* This is the kernel area for all maps (vmalloc, dma etc.) most
|
|
* usually, it extends up to TMPALIAS_MAP_START. Virtual addresses
|
|
* 0..GATEWAY_PAGE_SIZE are reserved for the gateway page */
|
|
#define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)
|
|
#define KERNEL_MAP_END (TMPALIAS_MAP_START)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void *parisc_vmalloc_start;
|
|
#define PCXL_DMA_MAP_SIZE (8*1024*1024)
|
|
#define VMALLOC_START ((unsigned long)parisc_vmalloc_start)
|
|
#define VMALLOC_END (KERNEL_MAP_END)
|
|
#endif /*__ASSEMBLY__*/
|
|
|
|
#endif /*_ASM_FIXMAP_H*/
|