Skip to content

Commit

Permalink
at91: vmalloc fix missing AT91_VIRT_BASE define
Browse files Browse the repository at this point in the history
VMALLOC_END is defined in terms of AT91_VIRT_BASE but this needs
mach/hardware.h for it's definition.

In file included from arch/arm/mach-at91/board-usb-a926x.c:26:0:
include/linux/mm.h: In function 'is_vmalloc_addr':
include/linux/mm.h:305:41: error: 'AT91_VIRT_BASE' undeclared (first use in this function)
include/linux/mm.h:305:41: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD committed Nov 9, 2011
1 parent b3c41f4 commit 30458ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-at91/include/mach/vmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef __ASM_ARCH_VMALLOC_H
#define __ASM_ARCH_VMALLOC_H

#include <mach/hardware.h>

#define VMALLOC_END (AT91_VIRT_BASE & PGDIR_MASK)

#endif

0 comments on commit 30458ed

Please sign in to comment.