diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-23 22:02:01 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-23 22:02:01 +0000 |
commit | cf0d6c024dcc0a125623909fd2f73749fe39a539 (patch) | |
tree | 21efff2b8117021e5b269b29cb2c9ae0d7f55312 /sys/dev/pci/drm/drmP.h | |
parent | f11a753cf71097ed779748d0aa41275c6d09b41d (diff) |
#define away unused arguments for the drm_alloc functions. to save some
size.
kill (empty) drm_mem_{un,}init() while here.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h index a130d495214..987c7a00a83 100644 --- a/sys/dev/pci/drm/drmP.h +++ b/sys/dev/pci/drm/drmP.h @@ -583,12 +583,15 @@ drm_pci_id_list_t *drm_find_description(int , int , drm_pci_id_list_t *); struct drm_file *drm_find_file_by_minor(struct drm_device *, int); /* Memory management support (drm_memory.c) */ -void drm_mem_init(void); -void drm_mem_uninit(void); -void *drm_alloc(size_t, int); -void *drm_calloc(size_t, size_t, int); -void *drm_realloc(void *, size_t, size_t, int); -void drm_free(void *, size_t, int); +void *_drm_alloc(size_t); +#define drm_alloc(size, area) _drm_alloc(size) +void *_drm_calloc(size_t, size_t); +#define drm_calloc(nmemb, size, area) _drm_calloc(nmemb, size) +void *_drm_realloc(void *, size_t, size_t); +#define drm_realloc(old, oldsz, size, area) _drm_realloc(old, oldsz, size) +void _drm_free(void *); +#define drm_free(ptr, size, area) do { _drm_free(ptr); (void)(size); \ +} while( /*CONSTCOND*/ 0) void *drm_ioremap(struct drm_device *, drm_local_map_t *); void drm_ioremapfree(drm_local_map_t *); int drm_mtrr_add(unsigned long, size_t, int); |