From f3a472335eba316f5fb4e2f830f3c32c03e08ff9 Mon Sep 17 00:00:00 2001 From: bseljak Date: Thu, 23 Dec 2021 12:59:52 +0100 Subject: [PATCH] Update serial.h For backward compatibility, keep structure of serial_rs485 the same size. Fix for: bfdca4682564e499b4cf1a3d1904387d2cb528c3 --- include/uapi/linux/serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/serial.h b/include/uapi/linux/serial.h index 2d98e65d2a783b..c94d778d814d1a 100644 --- a/include/uapi/linux/serial.h +++ b/include/uapi/linux/serial.h @@ -130,7 +130,7 @@ struct serial_rs485 { __u32 delay_rts_after_send; /* Delay after send (milliseconds) */ __u32 delay_rts_before_send_ns; /* Delay (nanoseconds) */ __u32 delay_rts_after_send_ns; /* Delay (nanoseconds) */ - __u32 padding[5]; /* Memory is cheap, new structs + __u32 padding[3]; /* Memory is cheap, new structs are a royal PITA .. */ };