]> granicus.if.org Git - zfs/commit
Make clang happy with vdev_raidz_ code
authorMatthew Macy <mmacy@freebsd.org>
Thu, 10 Oct 2019 16:45:38 +0000 (09:45 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Oct 2019 16:45:37 +0000 (09:45 -0700)
commitc5858ff9462719be60b2ffb0065dd01508a63162
treeea8dfb5c8f7298f5102c5422cfc3e6bb608d9373
parent381d91de7de42222419ea8fbe2a956f9aebe3f7a
Make clang happy with vdev_raidz_ code

The macros are used to generate code for conditions without a
corresponding branch. This is not a problem in practice, but
clang has no way of knowing that. Add a default branch with a
VERIFY(0) to indicate that it "can't happen"

```
In file included from \
/usr/home/mmacy/devel/ZoF/module/zfs/vdev_raidz_math_sse2.c:607:
/usr/home/mmacy/devel/ZoF/module/zfs/vdev_raidz_math_impl.h:281:3: \
error: no case matching constant switch condition '3' [-Werror]
```

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9434
module/zfs/vdev_raidz_math_avx512f.c
module/zfs/vdev_raidz_math_sse2.c