From: Andreas Schwab <schwab@suse.de>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] DRM compile fix
Date: Mon, 26 Aug 2002 11:40:40 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590701905979@msgid-missing> (raw)
The struct page does not have a wait queue any more.
--- linux/drivers/char/drm/r128_cce.c.~1~
+++ linux/drivers/char/drm/r128_cce.c
@@ -685,10 +685,10 @@ int r128_do_cleanup_cce( drm_device_t *d
if( !dev_priv->is_pci && dev->agp->agp_info.chipset = INTEL_460GX ) {
unsigned long alt_rh_off (unsigned long) dev_priv->ring.head;
+ struct page *p = virt_to_page((void *)alt_rh_off);
- atomic_dec(&virt_to_page(alt_rh_off)->count);
- clear_bit(PG_locked, &virt_to_page(alt_rh_off)->flags);
- wake_up(&virt_to_page(alt_rh_off)->wait);
+ put_page(p);
+ unlock_page(p);
free_page(alt_rh_off);
}
#endif
--- linux/drivers/char/drm/radeon_cp.c.~1~
+++ linux/drivers/char/drm/radeon_cp.c
@@ -1028,10 +1028,10 @@ int radeon_do_cleanup_cp( drm_device_t *
if( !dev_priv->is_pci && dev->agp->agp_info.chipset = INTEL_460GX ) {
unsigned long alt_rh_off (unsigned long) dev_priv->ring.head;
+ struct page *p = virt_to_page((void *)alt_rh_off);
- atomic_dec(&virt_to_page(alt_rh_off)->count);
- clear_bit(PG_locked, &virt_to_page(alt_rh_off)->flags);
- wake_up(&virt_to_page(alt_rh_off)->wait);
+ put_page(p);
+ unlock_page(p);
free_page(alt_rh_off);
}
#endif
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
reply other threads:[~2002-08-26 11:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-linux-ia64-105590701905979@msgid-missing \
--to=schwab@suse.de \
--cc=linux-ia64@vger.kernel.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