]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libspl/include/assert.h
Move libspl_assertf into .c file
authorArvind Sankar <nivedita@alum.mit.edu>
Sat, 4 Jul 2020 22:24:13 +0000 (18:24 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 10 Jul 2020 21:25:24 +0000 (14:25 -0700)
commitb6437ea41c7611481925d72d294677434639b847
treeeec95e7d4fd2a809f88f27f25bf7bfba8e43771b
parent2054f35e564b59e23950ee573e91dbae3fd2ccd9
Move libspl_assertf into .c file

Variadic functions cannot be inlined. libspl_assertf ends up being
duplicated in every file that uses it.

Fix this by moving the function into a new assert.c. Also move the
definition of aok into the new file instead of zone.c.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
lib/libspl/Makefile.am
lib/libspl/assert.c [new file with mode: 0644]
lib/libspl/include/assert.h
lib/libspl/zone.c
tests/zfs-tests/tests/functional/checksum/Makefile.am
tests/zfs-tests/tests/functional/checksum/edonr_test.c