Commit 06792e92 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k struct page fix

M68k: Fix for changes to struct page -- access list member of structure
correctly (and allocate page tables sanely as a result) (from Sam Creasey)
parent 1a2706b0
......@@ -33,7 +33,7 @@
typedef struct list_head ptable_desc;
static LIST_HEAD(ptable_list);
#define PD_PTABLE(page) ((ptable_desc *)virt_to_page(page))
#define PD_PTABLE(page) ((ptable_desc *)&(virt_to_page(page)->list))
#define PD_PAGE(ptable) (list_entry(ptable, struct page, list))
#define PD_MARKBITS(dp) (*(unsigned char *)&PD_PAGE(dp)->index)
......
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