ANDROID: Add headers to vendor_hooks.c for type visibility

Include headers in vendor_hooks.c to improve type visibilty.
With this change, 46 types that were unknown in the previous
XML were fully defined and 16 types that were previously opaque
became fully defined.

Of the 96 remaining opaque types, 43 are defined in C files, so
they are truly opaque and inaccessible to vendor modules. This
leaves 53 opaque types that need some investigation.

Bug: 233047575
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I2ede44177d7028cee93e69cc866b4c80e7229116
This commit is contained in:
Todd Kjos
2022-09-12 23:56:00 +00:00
parent e85a386df9
commit ca319dfc39
2 changed files with 5115 additions and 3128 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,9 +7,35 @@
*/
#ifndef __GENKSYMS__
#include <../kernel/printk/printk_ringbuffer.h>
#include <uapi/linux/android/binder.h>
#include <uapi/linux/hdreg.h>
#include <linux/bpf.h>
#include <linux/bpf_verifier.h>
#include <linux/coredump.h>
#include <linux/fileattr.h>
#include <linux/fsverity.h>
#include <linux/igmp.h>
#include <linux/ipc_namespace.h>
#include <linux/mtd/mtd.h>
#include <linux/pr.h>
#include <linux/skmsg.h>
#include <linux/statfs.h>
#include <linux/time_namespace.h>
#include <linux/timekeeper_internal.h>
#include <linux/zlib.h>
#include <net/ip6_fib.h>
#include <net/ip_tunnels.h>
#include <net/macsec.h>
#include <net/ioam6.h>
#include <net/netfilter/nf_flow_table.h>
#include <net/smc.h>
#include <net/tc_act/tc_gate.h>
#include <../fs/mount.h>
#include <../kernel/audit.h>
#include <../kernel/locking/mutex.h>
#include <../net/can/af_can.h>
#include <../net/tipc/bearer.h>
#include <../kernel/printk/printk_ringbuffer.h>
#endif
#define CREATE_TRACE_POINTS