From: Bartosz Golaszewski Date: Sun, 4 Aug 2019 08:07:57 +0000 (+0200) Subject: tests: mockup: add a comment explaining the kernel version definition X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fb15485948b46337a0b097aba6ed99c0ce9d9f5f;p=qemu-gpiodev%2Flibgpiod.git tests: mockup: add a comment explaining the kernel version definition The library only works on newer kernels. The specific features we're using have only available since linux v5.1.0. Add a comment explaining this limitation to the library code. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/mockup/gpio-mockup.c b/tests/mockup/gpio-mockup.c index b2dc7e1..c7a3152 100644 --- a/tests/mockup/gpio-mockup.c +++ b/tests/mockup/gpio-mockup.c @@ -19,6 +19,10 @@ #include "gpio-mockup.h" #define EXPORT __attribute__((visibility("default"))) +/* + * The gpio-mockup features (including the debugfs interface) we're using + * in this library have first been released in the linux kernel version below. + */ #define MIN_KERNEL_VERSION KERNEL_VERSION(5, 1, 0) struct gpio_mockup_chip {