Re: [PATCH 3/7] docs: gpio: note lineinfo padding must be zero filled
From: Bartosz Golaszewski
Date: Tue Sep 01 2026 - 04:39:56 EST
On Mon, 31 Aug 2026 16:31:21 +0200, "Iván Ezequiel Rodriguez"
<ivanrwcm25@xxxxxxxxx> said:
> GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL reject
> non-zero lineinfo.padding with -EINVAL; align the uapi comment with
> gpio_v2_line_request.padding.
>
> Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@xxxxxxxxx>
> ---
> include/uapi/linux/gpio.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
> index f7cb8ae87df7..5515b718886e 100644
> --- a/include/uapi/linux/gpio.h
> +++ b/include/uapi/linux/gpio.h
> @@ -218,7 +218,7 @@ struct gpio_v2_line_request {
> * gpio_v2_line_flag, such as %GPIO_V2_LINE_FLAG_ACTIVE_LOW,
> * %GPIO_V2_LINE_FLAG_OUTPUT etc, added together
> * @attrs: the configuration attributes associated with the line
> - * @padding: reserved for future use
> + * @padding: reserved for future use, must be zero filled
> */
> struct gpio_v2_line_info {
> char name[GPIO_MAX_NAME_SIZE];
> --
> 2.43.0
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>