Re: 2.6.13-rc6-mm1

Brice Goglin
2005-08-19T13:12:19Z

Hi Andrew,

Got this warning:
drivers/char/drm/drm_agpsupport.c:429:5: warning: "LINUX_VERSION_CODE"
is not defined

This test is for old 2.4 code. The attached patch simply removes it.

Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>

Regards,
Brice

--- linux-mm/drivers/char/drm/drm_agpsupport.c.old 2005-08-19
15:07:01.000000000 +0200
+++ linux-mm/drivers/char/drm/drm_agpsupport.c 2005-08-19
15:07:14.000000000 +0200
@@ -426,13 +426,8 @@ drm_agp_head_t *drm_agp_init(drm_device_
return NULL;
}
head->memory = NULL;
-#if LINUX_VERSION_CODE <= 0x020408
- head->cant_use_aperture = 0;
- head->page_mask = ~(0xfff);
-#else
head->cant_use_aperture = head->agp_info.cant_use_aperture;
head->page_mask = head->agp_info.page_mask;
-#endif

return head;
}