]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - tools/build/feature/test-libopencsd.c
Merge tag 'clang-format-for-linus-v5.1-rc5' of git://github.com/ojeda/linux
[thirdparty/kernel/stable.git] / tools / build / feature / test-libopencsd.c
CommitLineData
aa6292f4
MP
1// SPDX-License-Identifier: GPL-2.0
2#include <opencsd/c_api/opencsd_c_api.h>
3
a7ee4d62
RW
4/*
5 * Check OpenCSD library version is sufficient to provide required features
6 */
c8fa7a80 7#define OCSD_MIN_VER ((0 << 16) | (11 << 8) | (0))
a7ee4d62 8#if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
c8fa7a80 9#error "OpenCSD >= 0.11.0 is required"
a7ee4d62
RW
10#endif
11
aa6292f4
MP
12int main(void)
13{
14 (void)ocsd_get_version();
15 return 0;
16}