ANDROID: fix up abi breakage in struct dwc3

Commit cf52c320cf ("USB: dwc3: fix memory leak with using
debugfs_lookup()") added a new field to struct dwc3.  Fix this up by
using one of the reserved fields in the structure to handle the abi
break and update the .xml file to preserve things.

type 'struct dwc3' changed
  member 'union { struct dentry * debug_root; struct { u64 android_kabi_reserved2; }; union { }; }' was added
  member 'u64 android_kabi_reserved2' was removed

Fixes: cf52c320cf ("USB: dwc3: fix memory leak with using debugfs_lookup()")
Bug: 161946584
Change-Id: I7bf60deb89e4d5c4a9bc4cbcf68912cef21358ce
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2023-04-25 17:54:50 +00:00
parent 62e7ec9145
commit 3666d46424
2 changed files with 1234 additions and 1193 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1315,12 +1315,11 @@ struct dwc3 {
int max_cfg_eps;
int last_fifo_depth;
int num_ep_resized;
struct dentry *debug_root;
ANDROID_KABI_USE(1, struct{ u8 clear_stall_protocol; u8 padding1;
u8 padding2; u8 padding3; u8 padding4; u8 padding5;
u8 padding6; u8 padding7; });
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_USE(2, struct dentry *debug_root);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};