Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d45a57da authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

ANDROID: GKI: USB: Gadget: add Android ABI padding to struct usb_gadget



Over time, this structure is being changed a bunch to fix issues found
in the gadget code as more and more people stress it.  So add padding to
handle any needed future changes that might occur.

Of course, now that the padding is there, there never will be any need
to change this structure again...

Bug: 151154716
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I496797469268cc5d3cfafdb19c141b6b6196fe72
parent c55dd6d1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <linux/types.h>
#include <linux/workqueue.h>
#include <linux/usb/ch9.h>
#include <linux/android_kabi.h>

#define UDC_TRACE_STR_MAX	512

@@ -429,6 +430,11 @@ struct usb_gadget {
	unsigned			connected:1;
	unsigned			lpm_capable:1;
	int				irq;

	ANDROID_KABI_RESERVE(1);
	ANDROID_KABI_RESERVE(2);
	ANDROID_KABI_RESERVE(3);
	ANDROID_KABI_RESERVE(4);
};
#define work_to_gadget(w)	(container_of((w), struct usb_gadget, work))