Commit 9fe47e69 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: amd64 - rest

return void in floppy.h and "conditionally long" constants in page.h.

Would be useful to teach as(1) about C notation for long...
parent 1eacdec6
...@@ -170,7 +170,7 @@ static unsigned long vdma_mem_alloc(unsigned long size) ...@@ -170,7 +170,7 @@ static unsigned long vdma_mem_alloc(unsigned long size)
static void _fd_dma_mem_free(unsigned long addr, unsigned long size) static void _fd_dma_mem_free(unsigned long addr, unsigned long size)
{ {
if((unsigned long) addr >= (unsigned long) high_memory) if((unsigned long) addr >= (unsigned long) high_memory)
return vfree((void *)addr); vfree((void *)addr);
else else
free_pages(addr, get_order(size)); free_pages(addr, get_order(size));
} }
......
...@@ -65,15 +65,20 @@ extern unsigned long vm_stack_flags, vm_stack_flags32; ...@@ -65,15 +65,20 @@ extern unsigned long vm_stack_flags, vm_stack_flags32;
extern unsigned long vm_data_default_flags, vm_data_default_flags32; extern unsigned long vm_data_default_flags, vm_data_default_flags32;
extern unsigned long vm_force_exec32; extern unsigned long vm_force_exec32;
#define __START_KERNEL 0xffffffff80100000UL
#define __START_KERNEL_map 0xffffffff80000000UL
#define __PAGE_OFFSET 0x0000010000000000UL /* 1 << 40 */
#else
#define __START_KERNEL 0xffffffff80100000
#define __START_KERNEL_map 0xffffffff80000000
#define __PAGE_OFFSET 0x0000010000000000 /* 1 << 40 */
#endif /* !__ASSEMBLY__ */ #endif /* !__ASSEMBLY__ */
/* to align the pointer to the (next) page boundary */ /* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
/* See Documentation/x86_64/mm.txt for a description of the memory map. */ /* See Documentation/x86_64/mm.txt for a description of the memory map. */
#define __START_KERNEL 0xffffffff80100000
#define __START_KERNEL_map 0xffffffff80000000
#define __PAGE_OFFSET 0x0000010000000000 /* 1 << 40 */
#define __PHYSICAL_MASK_SHIFT 40 #define __PHYSICAL_MASK_SHIFT 40
#define __PHYSICAL_MASK ((1UL << __PHYSICAL_MASK_SHIFT) - 1) #define __PHYSICAL_MASK ((1UL << __PHYSICAL_MASK_SHIFT) - 1)
#define __VIRTUAL_MASK_SHIFT 48 #define __VIRTUAL_MASK_SHIFT 48
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment