From 9a8ae71e0061647ffe3484beaabba45fd21c40ff Mon Sep 17 00:00:00 2001 From: "Samuel J. Greear" Date: Thu, 20 Oct 2011 22:31:34 -0600 Subject: [PATCH] DRM - Fix LINT build --- sys/conf/files | 6 ++++++ sys/dev/drm/drm_priv_hash.h | 4 ++++ sys/dev/drm/drm_subr_hash.c | 2 ++ 3 files changed, 12 insertions(+) diff --git a/sys/conf/files b/sys/conf/files index 77c6506642..6d840685cb 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1943,12 +1943,16 @@ dev/drm/drm_dma.c optional drm dev/drm/drm_drawable.c optional drm dev/drm/drm_drv.c optional drm dev/drm/drm_fops.c optional drm +dev/drm/drm_hashtab.c optional drm dev/drm/drm_ioctl.c optional drm dev/drm/drm_irq.c optional drm dev/drm/drm_lock.c optional drm dev/drm/drm_memory.c optional drm +dev/drm/drm_mm.c optional drm dev/drm/drm_pci.c optional drm dev/drm/drm_scatter.c optional drm +dev/drm/drm_sman.c optional drm +dev/drm/drm_subr_hash.c optional drm dev/drm/drm_sysctl.c optional drm dev/drm/drm_vm.c optional drm dev/drm/i915_dma.c optional i915drm drm @@ -1970,8 +1974,10 @@ dev/drm/r128_drv.c optional r128drm drm dev/drm/r128_state.c optional r128drm drm dev/drm/r128_irq.c optional r128drm drm dev/drm/r300_cmdbuf.c optional radeondrm drm +dev/drm/r600_blit.c optional radeondrm drm dev/drm/r600_cp.c optional radeondrm drm dev/drm/radeon_cp.c optional radeondrm drm +dev/drm/radeon_cs.c optional radeondrm drm dev/drm/radeon_drv.c optional radeondrm drm dev/drm/radeon_state.c optional radeondrm drm dev/drm/radeon_irq.c optional radeondrm drm diff --git a/sys/dev/drm/drm_priv_hash.h b/sys/dev/drm/drm_priv_hash.h index bc4e874f17..80f92a45de 100644 --- a/sys/dev/drm/drm_priv_hash.h +++ b/sys/dev/drm/drm_priv_hash.h @@ -121,6 +121,10 @@ hash32_strne(const void *buf, size_t len, int end, const char **ep, /* Added to act as private header files for hash function */ +void * +drm_hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask, + int flags); + void * drm_hashinit(int elements, struct malloc_type *type, u_long *hashmask); diff --git a/sys/dev/drm/drm_subr_hash.c b/sys/dev/drm/drm_subr_hash.c index 5feb5f4645..aab8c11d4d 100644 --- a/sys/dev/drm/drm_subr_hash.c +++ b/sys/dev/drm/drm_subr_hash.c @@ -113,6 +113,7 @@ static const int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531, /* * General routine to allocate a prime number sized hash table. */ +#if 0 void * drm_phashinit(int elements, struct malloc_type *type, u_long *nentries) { @@ -135,3 +136,4 @@ drm_phashinit(int elements, struct malloc_type *type, u_long *nentries) *nentries = hashsize; return (hashtbl); } +#endif -- 2.41.0