Commit 0c38a3e2 authored by Linus Torvalds's avatar Linus Torvalds

Import 2.3.30pre5

parent 583f5775
......@@ -17,6 +17,7 @@
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/init.h>
#include <linux/bootmem.h> /* max_low_pfn */
#ifdef CONFIG_BLK_DEV_INITRD
#include <linux/blk.h>
......@@ -273,7 +274,7 @@ srm_paging_stop (void)
}
#endif
static void printk_memory_info(void)
static void __init printk_memory_info(void)
{
unsigned long codesize, reservedpages, datasize, initsize, tmp;
extern int page_is_ram(unsigned long) __init;
......@@ -302,7 +303,7 @@ static void printk_memory_info(void)
initsize >> 10);
}
void
void __init
mem_init(void)
{
max_mapnr = num_physpages = max_low_pfn;
......
......@@ -297,7 +297,7 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset)
#define kern_addr_valid(addr) (1)
#define io_remap_page_range(start, busaddr, size, prot) \
remap_page_range(start, virt_to_phys(__ioremap(busaddr), 0), size, prot)
remap_page_range(start, virt_to_phys(__ioremap(busaddr)), size, prot)
#define pte_ERROR(e) \
printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
......
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