From 5940799827190d333b95a1e13e069cbbf30b11de Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 5 Aug 2021 09:04:13 +0200 Subject: [PATCH] ANDROID: GKI: add padding to struct hid_device struct hid_device was not being tracked as a "stable" symbol in the past, but that looks to change with some future abi requirements. So add needed padding now, to ensure that we can support this over the long-term. This does not change the existing api at all as this symbol was not supported yet. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: I8c3064fb7a19006a29dabbaf25c9ed1737f62e75 --- include/linux/hid.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/hid.h b/include/linux/hid.h index 26742ca14609..f5ebf6cbcfad 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -26,6 +26,7 @@ #include #include #include +#include /* * We parse each description item into this structure. Short items data @@ -629,6 +630,9 @@ struct hid_device { /* device report descriptor */ struct list_head debug_list; spinlock_t debug_list_lock; wait_queue_head_t debug_wait; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); }; #define to_hid_device(pdev) \