]> git.proxmox.com Git - mirror_zfs.git/commit
Fix debug object on stack warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Nov 2014 01:01:20 +0000 (20:01 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Jan 2015 21:52:20 +0000 (13:52 -0800)
commit03a783534ad9ea1db71d978f9f850f9dd13ccd51
tree1a75683d5ff1e4ebc0d8bacd96ac40d728523a2d
parenta3c1eb77721a0d511b4fe7111bb2314686570c4b
Fix debug object on stack warning

When running the SPLAT tests on a kernel with CONFIG_DEBUG_OBJECTS=y
enabled the following warning is generated.

  ODEBUG: object is on stack, but not annotated
  WARNING: at lib/debugobjects.c:300 __debug_object_init+0x221/0x480()

This is caused by the test cases placing a debug object on the stack
rather than the heap.  This isn't harmful since they are small objects
but to make CONFIG_DEBUG_OBJECTS=y happy the objects have been relocated
to the heap.  This impacted taskq tests 1, 3, and 7.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #424
module/splat/splat-taskq.c