ANDROID: make sure all types for hooks are defined in KMI

There are 2 remaining types directly referenced by vendor
hooks that were not fully-defined in the KMI:

struct gic_chip_data : defined in include/linux/irqchip/arm-gic-v3.h
struct swap_slots_cache : defined include/linux/swap_slots.h

libabigail is not finding definitions based on the instantiation
of the hooks, so force them to be defined by defining dummy exported
symbols.

Update XML with the now visible definitions

Bug: 233047575
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I521b2a596e1d7361d0f44a87ffe330186896b9f8
This commit is contained in:
Todd Kjos 2022-09-21 21:48:21 +00:00
parent b9ac329a83
commit c6f7a0ebd8
3 changed files with 287 additions and 337 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,3 +2,5 @@
# for type visibility
GKI_struct_selinux_state
GKI_struct_gic_chip_data
GKI_struct_swap_slots_cache

View File

@ -456,3 +456,16 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_check_page_look_around_ref);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_look_around);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_look_around_migrate_page);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_test_clear_look_around_ref);
/*
* For type visibility
*/
#ifdef CONFIG_ARM64
#include <linux/irqchip/arm-gic-v3.h>
const struct gic_chip_data *GKI_struct_gic_chip_data;
EXPORT_SYMBOL_GPL(GKI_struct_gic_chip_data);
#endif
#include <linux/swap_slots.h>
const struct swap_slots_cache *GKI_struct_swap_slots_cache;
EXPORT_SYMBOL_GPL(GKI_struct_swap_slots_cache);