porting a mm specific macro from 2.4 to 2.6

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

 



Hi,

I am porting a linux driver written for 2.4.28 to kernel 2.6.10. Have
question regarding a MACRO in my old driver.

#define __vpa(va)
((pte_val(*pte_offset(pmd_offset(pgd_offset_k(va),(va)),(va))) &
PAGE_MASK) + (va & ~PAGE_MASK))
Will the above MACRO work as is for 2.6.10 kernel? If not can someone help
me in making 2.6.10 compatible.

I saw in 2.6.10 pte_offset_kernel is introduced and also googling around
showed the pte_offset should be replaced by pte_offset_kernel.

Also my compilation fails when that MACRO expanded complaining
 "invalid type argument of `unary *'

The Linux kernel runs on Freescale's  MPC8248(ppc arch).

thanks in advance.
-vikas aggarwal
MS CS
SUNY, albany



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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