]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix --enable-debug-kmem-tracking option
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Jul 2013 17:14:35 +0000 (10:14 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Jul 2013 16:23:54 +0000 (09:23 -0700)
commitb1424adda53eba1b6342aab4547330acc6d783fd
treeb49741f4344e6758e0173266108462d3f57cba48
parent5bc941f3cd1142abc3d7d2261a7a077bfe949367
Fix --enable-debug-kmem-tracking option

This code has gotten something stale and no longer builds cleanly
against modern kernels.  The two issues addressed here are as
follows:

* The hlist_*_rcu interfaces in the kernel have been relatively
  unstable.  Since this isn't performance critical code just use
  the long standing hlist_* variants.

* In older kernels the hash_ptr() function takes a 'void *' but
  in newer kernels it expects a 'const void *'.  To silence the
  compiler warnings about this explicitly cast it to a 'void *'.
  The memset function is a similar case but it always expects
  a 'void *'.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #256
module/spl/spl-kmem.c