Commit 10451084 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix x86_64 compile warning in bad_page()

On x84_64, page->flags is no longer unsigned long.
parent ce5bc050
......@@ -73,7 +73,7 @@ static void bad_page(const char *function, struct page *page)
{
printk("Bad page state at %s (in process '%s', page %p)\n", function, current->comm, page);
printk("flags:0x%08lx mapping:%p mapped:%d count:%d\n",
page->flags, page->mapping,
(unsigned long)page->flags, page->mapping,
page_mapped(page), page_count(page));
printk("Backtrace:\n");
dump_stack();
......
......@@ -2885,7 +2885,8 @@ void ptrinfo(unsigned long addr)
#endif
page = virt_to_page((void*)addr);
printk("struct page at %p, flags %lxh.\n", page, page->flags);
printk("struct page at %p, flags %08lx\n",
page, (unsigned long)page->flags);
if (PageSlab(page)) {
kmem_cache_t *c;
struct slab *s;
......
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