From a406acdee08ed1ae27757ead88b9618add6398df Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 18 Apr 2023 08:07:02 +0000 Subject: [PATCH] ANDROID: preserve CRC for xhci symbols In release 5.10.178 a new .h file was included in the xhci code, which caused the CRCs to change as some structures changed into "real" structures instead of anonymous definitions. So preserve the CRCs by commenting out the #include if GENKSYMS is being calculated. Bug: 161946584 Fixes: ec20260950af ("xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a passthrough iommu") Signed-off-by: Greg Kroah-Hartman Change-Id: I59838b0af869d3e17fc73d72eb473190c50281fd --- drivers/usb/host/xhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index b2960ff34416..972cee01dbb9 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -9,7 +9,9 @@ */ #include +#ifndef __GENKSYMS__ /* ANDROID: KABI CRC preservation hack */ #include +#endif #include #include #include