From 0a2394dc5a095d1fecee7d3070492d0469a961aa Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Mon, 13 Apr 2020 11:25:50 -0700 Subject: [PATCH] ANDROID: GKI: export symbols from abi_gki_aarch64_qcom_whitelist Run the script, $ ../build/gki/add_EXPORT_SYMBOL_GPL < abi_gki_aarch64_qcom_whitelist This will export all the required symbols that are in this kernel. Signed-off-by: Will McVicker Bug: 153886473 Test: compile Change-Id: I703509d75104cd86f472481346e3efbd235121ab --- arch/arm64/mm/mmu.c | 1 + drivers/base/core.c | 1 + drivers/clocksource/arm_arch_timer.c | 1 + drivers/cpuidle/governor.c | 1 + drivers/gpu/drm/drm_atomic_helper.c | 2 ++ drivers/gpu/drm/drm_modes.c | 1 + fs/kernfs/symlink.c | 1 + kernel/params.c | 2 ++ kernel/power/main.c | 1 + kernel/power/qos.c | 1 + kernel/power/suspend.c | 1 + kernel/printk/printk.c | 2 ++ kernel/time/tick-sched.c | 1 + lib/ioremap.c | 1 + lib/plist.c | 1 + mm/memblock.c | 1 + mm/mmap.c | 1 + security/security.c | 1 + sound/usb/helper.c | 1 + 19 files changed, 22 insertions(+) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index 222fd54233e8..7078646140f7 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -720,6 +720,7 @@ int kern_addr_valid(unsigned long addr) return pfn_valid(pte_pfn(pte)); } +EXPORT_SYMBOL_GPL(kern_addr_valid); #ifdef CONFIG_SPARSEMEM_VMEMMAP #if !ARM64_SWAPPER_USES_SECTION_MAPS int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, diff --git a/drivers/base/core.c b/drivers/base/core.c index af196f1558ee..35a5e3f37424 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -2939,6 +2939,7 @@ int device_online(struct device *dev) return ret; } +EXPORT_SYMBOL_GPL(device_online); struct root_device { struct device dev; diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 921aca64858d..9566e2cb2bef 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -948,6 +948,7 @@ u32 arch_timer_get_rate(void) { return arch_timer_rate; } +EXPORT_SYMBOL_GPL(arch_timer_get_rate); bool arch_timer_evtstrm_available(void) { diff --git a/drivers/cpuidle/governor.c b/drivers/cpuidle/governor.c index 9fed1b829292..e3321b9cf501 100644 --- a/drivers/cpuidle/governor.c +++ b/drivers/cpuidle/governor.c @@ -95,6 +95,7 @@ int cpuidle_register_governor(struct cpuidle_governor *gov) return ret; } +EXPORT_SYMBOL_GPL(cpuidle_register_governor); /** * cpuidle_governor_latency_req - Compute a latency constraint for CPU diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index c22062cc9992..e2350dc56372 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -2818,6 +2818,7 @@ int __drm_atomic_helper_disable_plane(struct drm_plane *plane, return 0; } +EXPORT_SYMBOL_GPL(__drm_atomic_helper_disable_plane); static int update_output_state(struct drm_atomic_state *state, struct drm_mode_set *set) @@ -3003,6 +3004,7 @@ int __drm_atomic_helper_set_config(struct drm_mode_set *set, return 0; } +EXPORT_SYMBOL_GPL(__drm_atomic_helper_set_config); static int __drm_atomic_helper_disable_all(struct drm_device *dev, struct drm_modeset_acquire_ctx *ctx, diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index a3104d79b48f..7550435c3ac5 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -1753,6 +1753,7 @@ int drm_mode_convert_umode(struct drm_device *dev, return 0; } +EXPORT_SYMBOL_GPL(drm_mode_convert_umode); /** * drm_mode_is_420_only - if a given videomode can be only supported in YCBCR420 diff --git a/fs/kernfs/symlink.c b/fs/kernfs/symlink.c index 162f43b80c84..2269e53e4871 100644 --- a/fs/kernfs/symlink.c +++ b/fs/kernfs/symlink.c @@ -54,6 +54,7 @@ struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, kernfs_put(kn); return ERR_PTR(error); } +EXPORT_SYMBOL_GPL(kernfs_create_link); static int kernfs_get_target_path(struct kernfs_node *parent, struct kernfs_node *target, char *path) diff --git a/kernel/params.c b/kernel/params.c index ce89f757e6da..bd8d46c279f0 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -924,6 +924,7 @@ static const struct kset_uevent_ops module_uevent_ops = { }; struct kset *module_kset; +EXPORT_SYMBOL_GPL(module_kset); int module_sysfs_initialized; static void module_kobj_release(struct kobject *kobj) @@ -936,6 +937,7 @@ struct kobj_type module_ktype = { .release = module_kobj_release, .sysfs_ops = &module_sysfs_ops, }; +EXPORT_SYMBOL_GPL(module_ktype); /* * param_sysfs_init - wrapper for built-in params support diff --git a/kernel/power/main.c b/kernel/power/main.c index 6bcb47d366af..1ee81334d689 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -535,6 +535,7 @@ static inline void pm_print_times_init(void) {} #endif /* CONFIG_PM_SLEEP_DEBUG */ struct kobject *power_kobj; +EXPORT_SYMBOL_GPL(power_kobj); /** * state - control system sleep states. diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 035fce171345..278cb0e6217a 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -669,6 +669,7 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value, schedule_delayed_work(&req->work, usecs_to_jiffies(timeout_us)); } +EXPORT_SYMBOL_GPL(pm_qos_update_request_timeout); /** * pm_qos_remove_request - modifies an existing qos request diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index a85938dba6a5..365d1e81fed7 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -76,6 +76,7 @@ void s2idle_set_ops(const struct platform_s2idle_ops *ops) s2idle_ops = ops; unlock_system_sleep(); } +EXPORT_SYMBOL_GPL(s2idle_set_ops); static void s2idle_begin(void) { diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 7a2fdc097c8c..e44c7a4e89c7 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -448,12 +448,14 @@ char *log_buf_addr_get(void) { return log_buf; } +EXPORT_SYMBOL_GPL(log_buf_addr_get); /* Return log buffer size */ u32 log_buf_len_get(void) { return log_buf_len; } +EXPORT_SYMBOL_GPL(log_buf_len_get); /* human readable text of the record */ static char *log_text(const struct printk_log *msg) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index e70e9a789865..95c62850d9a4 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1067,6 +1067,7 @@ ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next) return ktime_sub(next_event, now); } +EXPORT_SYMBOL_GPL(tick_nohz_get_sleep_length); /** * tick_nohz_get_idle_calls_cpu - return the current idle calls counter value diff --git a/lib/ioremap.c b/lib/ioremap.c index 517f5853ffed..61ed878bd6f8 100644 --- a/lib/ioremap.c +++ b/lib/ioremap.c @@ -181,3 +181,4 @@ int ioremap_page_range(unsigned long addr, return err; } +EXPORT_SYMBOL_GPL(ioremap_page_range); diff --git a/lib/plist.c b/lib/plist.c index 30162b4be1c1..b2660a48a572 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -133,6 +133,7 @@ void plist_del(struct plist_node *node, struct plist_head *head) plist_check_head(head); } +EXPORT_SYMBOL_GPL(plist_del); /** * plist_requeue - Requeue @node at end of same-prio entries. diff --git a/mm/memblock.c b/mm/memblock.c index 6e317a527d3c..246c81672a97 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -803,6 +803,7 @@ int __init_memblock memblock_free(phys_addr_t base, phys_addr_t size) kmemleak_free_part_phys(base, size); return memblock_remove_range(&memblock.reserved, base, size); } +EXPORT_SYMBOL_GPL(memblock_free); int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size) { diff --git a/mm/mmap.c b/mm/mmap.c index 5cc77af2c0f8..a11ab08258b3 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2049,6 +2049,7 @@ unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info) VM_BUG_ON(gap_end < gap_start); return gap_end; } +EXPORT_SYMBOL_GPL(unmapped_area_topdown); /* Get an address range which is currently unmapped. * For shmat() with addr=0. diff --git a/security/security.c b/security/security.c index 4a32448e7d26..a25f7f46f896 100644 --- a/security/security.c +++ b/security/security.c @@ -939,6 +939,7 @@ int security_mmap_addr(unsigned long addr) { return call_int_hook(mmap_addr, 0, addr); } +EXPORT_SYMBOL_GPL(security_mmap_addr); int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) diff --git a/sound/usb/helper.c b/sound/usb/helper.c index 7712e2b84183..e6e7c9d384fa 100644 --- a/sound/usb/helper.c +++ b/sound/usb/helper.c @@ -75,6 +75,7 @@ void *snd_usb_find_csint_desc(void *buffer, int buflen, void *after, u8 dsubtype } return NULL; } +EXPORT_SYMBOL_GPL(snd_usb_find_csint_desc); /* * Wrapper for usb_control_msg().