From: "Vikas Aggarwal" <va824363@albany.edu>
To: kernelnewbies@nl.linux.org
Cc: linuxppc-embedded@ozlabs.org
Subject: porting a mm specific macro from 2.4 to 2.6
Date: Mon, 25 Jul 2005 11:32:05 -0400 (EDT) [thread overview]
Message-ID: <13434.198.22.236.230.1122305525.squirrel@198.22.236.230> (raw)
In-Reply-To: <20050725071638.67632.qmail@web8503.mail.in.yahoo.com>
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
prev parent reply other threads:[~2005-07-25 15:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-25 7:16 Compilation error Susheel Raj
2005-07-25 8:07 ` Xilinx ML300 support in 2.6 Stefan Roese
2005-07-25 15:32 ` Vikas Aggarwal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13434.198.22.236.230.1122305525.squirrel@198.22.236.230 \
--to=va824363@albany.edu \
--cc=kernelnewbies@nl.linux.org \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).