]> git.proxmox.com Git - mirror_spl.git/commit
This patch add a CTASSERT macro for compile time assertion.
authorYuxuan Shui <yshuiv7@gmail.com>
Fri, 1 Nov 2013 16:14:05 +0000 (00:14 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Apr 2014 16:28:53 +0000 (09:28 -0700)
commit6c48cd8ac223eb00cb4dadebcbe4ce1dfdfc6b76
treeb22afd33a29f169a49eb5d1f30a0b992df86c563
parentacf0ade362cb8b26d67770114ee6fa17816e6b65
This patch add a CTASSERT macro for compile time assertion.

This macro makes the compile to spit "mixed definition and code"
warning, I can't find a way to avoid it.

This patch lays some groundwork for the persistent l2arc feature.
See https://www.illumos.org/issues/3525.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #303
include/sys/debug.h