Re: reference to an undefined macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, Aug 1, 2010 at 3:33 PM, Parmenides <mobile.parmenides@xxxxxxxxx> wrote:
> Hi,
>
>    The following definition of PMD_SHIFT is from
> include/asm-i386/page.h of the kernel version 2.6.11
>
>                     #define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
>
> But, there is no the definition of PMD_SHIFT at all in page.h, and
> also no other header files included by it. How does this work?

I think you're supposed to #include <linux/mm.h>

This includes both asm/page.h and asm/pgtable.h, PMD_SHIFT is defined
by including asm/pgtable.h.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux