mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 14:37:41 +00:00
pc: update framebuffer/intel for new Linux config
This is needed because now 'kobject_uevent.c' pulls netlink related code in. Issue #4455.
This commit is contained in:
parent
c9d9ec0d63
commit
838bae964b
repos/pc/src/drivers/framebuffer/intel/pc
File diff suppressed because it is too large
Load Diff
@ -711,3 +711,55 @@ void i915_gem_object_release_mmap_offset(struct drm_i915_gem_object * obj)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <net/net_namespace.h>
|
||||
|
||||
struct net init_net;
|
||||
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
void kfree_skb(struct sk_buff * skb)
|
||||
{
|
||||
if (!skb)
|
||||
return;
|
||||
|
||||
lx_emul_trace(__func__);
|
||||
printk("%s:%d: leaking skb: %p\n", __func__, __LINE__, skb);
|
||||
}
|
||||
|
||||
|
||||
#include <net/net_namespace.h>
|
||||
|
||||
int register_pernet_subsys(struct pernet_operations * ops)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#include <linux/firmware.h>
|
||||
|
||||
void release_firmware(const struct firmware * fw)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/firmware.h>
|
||||
|
||||
int request_firmware(const struct firmware ** firmware_p,const char * name,struct device * device)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
#include <linux/firmware.h>
|
||||
|
||||
int request_firmware_direct(const struct firmware ** firmware_p,const char * name,struct device * device)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
return -1;
|
||||
}
|
||||
|
@ -1,15 +1,13 @@
|
||||
/*
|
||||
* \brief Dummy definitions of Linux Kernel functions
|
||||
* \author Automatically generated file - do no edit
|
||||
* \date 2022-03-04
|
||||
* \date 2022-03-29
|
||||
*/
|
||||
|
||||
#include <lx_emul.h>
|
||||
|
||||
|
||||
#include "i915_drv.h"
|
||||
|
||||
|
||||
#include <linux/proc_fs.h>
|
||||
|
||||
void * PDE_DATA(const struct inode * inode)
|
||||
@ -26,6 +24,14 @@ int ___ratelimit(struct ratelimit_state * rs,const char * func)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
struct sk_buff * __alloc_skb(unsigned int size,gfp_t gfp_mask,int flags,int node)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/clk-provider.h>
|
||||
|
||||
const char * __clk_get_name(const struct clk * clk)
|
||||
@ -49,6 +55,14 @@ void __i915_gpu_coredump_free(struct kref * error_ref)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
struct sock * __netlink_kernel_create(struct net * net,int unit,struct module * module,struct netlink_kernel_cfg * cfg)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/pagevec.h>
|
||||
|
||||
void __pagevec_release(struct pagevec * pvec)
|
||||
@ -424,6 +438,14 @@ void dma_unmap_page_attrs(struct device * dev,dma_addr_t addr,size_t size,enum d
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
void do_trace_netlink_extack(const char * msg)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <drm/drm_ioctl.h>
|
||||
|
||||
int drm_invalid_op(struct drm_device * dev,void * data,struct drm_file * file_priv)
|
||||
@ -1567,6 +1589,46 @@ void memunmap(void * addr)
|
||||
}
|
||||
|
||||
|
||||
#include <net/netlink.h>
|
||||
|
||||
int netlink_rcv_skb(struct sk_buff * skb,int (* cb)(struct sk_buff *,struct nlmsghdr *,struct netlink_ext_ack *))
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
int netlink_broadcast(struct sock * ssk,struct sk_buff * skb,u32 portid,u32 group,gfp_t allocation)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
int netlink_has_listeners(struct sock * sk,unsigned int group)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
void netlink_kernel_release(struct sock * sk)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/netlink.h>
|
||||
|
||||
bool netlink_ns_capable(const struct sk_buff * skb,struct user_namespace * user_ns,int cap)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/irq.h>
|
||||
|
||||
struct irq_chip no_irq_chip;
|
||||
@ -1896,6 +1958,30 @@ void simple_release_fs(struct vfsmount ** mount,int * count)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
struct sk_buff * skb_copy_expand(const struct sk_buff * skb,int newheadroom,int newtailroom,gfp_t gfp_mask)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
void * skb_pull(struct sk_buff * skb,unsigned int len)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
void * skb_put(struct sk_buff * skb,unsigned int len)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/smp.h>
|
||||
|
||||
int smp_call_function_single(int cpu,void (* func)(void * info),void * info,int wait)
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* \brief Array defining order of Linux Kernel initcalls
|
||||
* \author Automatically generated file - do no edit
|
||||
* \date 2022-02-02
|
||||
* \date 2022-03-28
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
@ -18,6 +18,7 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_initialize_ptr_randomearly",
|
||||
"__initcall_init_mmap_min_addr0",
|
||||
"__initcall_pci_realloc_setup_params0",
|
||||
"__initcall_net_ns_init0",
|
||||
"__initcall_e820__register_nvs_regions1",
|
||||
"__initcall_reboot_init1",
|
||||
"__initcall_wq_sysfs_init1",
|
||||
@ -28,10 +29,17 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_init_elf_binfmt1",
|
||||
"__initcall_prandom_init_early1",
|
||||
"__initcall_cpuidle_init1",
|
||||
"__initcall_sock_init1",
|
||||
"__initcall_net_inuse_init1",
|
||||
"__initcall_net_defaults_init1",
|
||||
"__initcall_init_default_flow_dissectors1",
|
||||
"__initcall_netlink_proto_init1",
|
||||
"__initcall_genl_init1",
|
||||
"__initcall_irq_sysfs_init2",
|
||||
"__initcall_bdi_class_init2",
|
||||
"__initcall_mm_sysfs_init2",
|
||||
"__initcall_init_per_zone_wmark_min2",
|
||||
"__initcall_mpi_init2",
|
||||
"__initcall_pcibus_class_init2",
|
||||
"__initcall_pci_driver_init2",
|
||||
"__initcall_backlight_class_init2",
|
||||
@ -44,6 +52,7 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_thermal_init2",
|
||||
"__initcall_init_ladder2",
|
||||
"__initcall_amd_postcore_init2",
|
||||
"__initcall_kobject_uevent_init2",
|
||||
"__initcall_bts_init3",
|
||||
"__initcall_pt_init3",
|
||||
"__initcall_boot_params_ksysfs_init3",
|
||||
@ -52,6 +61,7 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_intel_pconfig_init3",
|
||||
"__initcall_ffh_cstate_init3",
|
||||
"__initcall_kcmp_cookies_init3",
|
||||
"__initcall_cryptomgr_init3",
|
||||
"__initcall_acpi_pci_init3",
|
||||
"__initcall_pci_arch_init3",
|
||||
"__initcall_init_vdso4",
|
||||
@ -66,15 +76,32 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_init_user_reserve4",
|
||||
"__initcall_init_admin_reserve4",
|
||||
"__initcall_init_reserve_notifier4",
|
||||
"__initcall_rsa_init4",
|
||||
"__initcall_crypto_cmac_module_init4",
|
||||
"__initcall_crypto_null_mod_init4",
|
||||
"__initcall_sha256_generic_mod_init4",
|
||||
"__initcall_crypto_ctr_module_init4",
|
||||
"__initcall_crypto_gcm_module_init4",
|
||||
"__initcall_crypto_ccm_module_init4",
|
||||
"__initcall_aes_init4",
|
||||
"__initcall_ghash_mod_init4",
|
||||
"__initcall_pci_slot_init4",
|
||||
"__initcall_fbmem_init4",
|
||||
"__initcall_acpi_init4",
|
||||
"__initcall_pnp_init4",
|
||||
"__initcall_misc_init4",
|
||||
"__initcall_dma_buf_init4",
|
||||
"__initcall_usb_common_init4",
|
||||
"__initcall_usb_init4",
|
||||
"__initcall_serio_init4",
|
||||
"__initcall_input_init4",
|
||||
"__initcall_power_supply_class_init4",
|
||||
"__initcall_proto_init4",
|
||||
"__initcall_net_dev_init4",
|
||||
"__initcall_neigh_init4",
|
||||
"__initcall_fib_notifier_init4",
|
||||
"__initcall_ethnl_init4",
|
||||
"__initcall_ieee80211_init4",
|
||||
"__initcall_pci_subsys_init4",
|
||||
"__initcall_nmi_warning_debugfs5",
|
||||
"__initcall_hpet_late_init5",
|
||||
@ -101,7 +128,11 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_pnp_system_init5",
|
||||
"__initcall_pnpacpi_init5",
|
||||
"__initcall_chr_dev_init5",
|
||||
"__initcall_firmware_class_init5",
|
||||
"__initcall_init_acpi_pm_clocksource5",
|
||||
"__initcall_sysctl_core_init5",
|
||||
"__initcall_eth_offload_init5",
|
||||
"__initcall_cfg80211_init5",
|
||||
"__initcall_pcibios_assign_resources5",
|
||||
"__initcall_pci_apply_final_quirks5s",
|
||||
"__initcall_acpi_reserve_resources5s",
|
||||
@ -130,6 +161,7 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_clockevents_init_sysfs6",
|
||||
"__initcall_utsname_sysctl_init6",
|
||||
"__initcall_perf_event_sysfs_init6",
|
||||
"__initcall_system_trusted_keyring_init6",
|
||||
"__initcall_kswapd_init6",
|
||||
"__initcall_workingset_init6",
|
||||
"__initcall_proc_vmalloc_init6",
|
||||
@ -137,6 +169,10 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_proc_filesystems_init6",
|
||||
"__initcall_start_dirtytime_writeback6",
|
||||
"__initcall_init_devpts_fs6",
|
||||
"__initcall_key_proc_init6",
|
||||
"__initcall_crypto_algapi_init6",
|
||||
"__initcall_asymmetric_key_init6",
|
||||
"__initcall_x509_key_init6",
|
||||
"__initcall_pci_proc_init6",
|
||||
"__initcall_ged_driver_init6",
|
||||
"__initcall_acpi_ac_init6",
|
||||
@ -160,6 +196,18 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_i915_init6",
|
||||
"__initcall_topology_sysfs_init6",
|
||||
"__initcall_cacheinfo_sysfs_init6",
|
||||
"__initcall_net_olddevs_init6",
|
||||
"__initcall_blackhole_netdev_init6",
|
||||
"__initcall_iwl_drv_init6",
|
||||
"__initcall_iwl_init6",
|
||||
"__initcall_iwl_mvm_init6",
|
||||
"__initcall_ehci_hcd_init6",
|
||||
"__initcall_ehci_pci_init6",
|
||||
"__initcall_ohci_hcd_mod_init6",
|
||||
"__initcall_ohci_pci_init6",
|
||||
"__initcall_uhci_hcd_init6",
|
||||
"__initcall_xhci_hcd_init6",
|
||||
"__initcall_xhci_pci_init6",
|
||||
"__initcall_i8042_init6",
|
||||
"__initcall_serport_init6",
|
||||
"__initcall_atkbd_init6",
|
||||
@ -167,6 +215,7 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_pkg_temp_thermal_init6",
|
||||
"__initcall_thermal_throttle_init_device6",
|
||||
"__initcall_pmc_atom_init6",
|
||||
"__initcall_sock_diag_init6",
|
||||
"__initcall_hpet_insert_resource7",
|
||||
"__initcall_update_mp_table7",
|
||||
"__initcall_lapic_insert_resource7",
|
||||
@ -178,12 +227,15 @@ static const char * lx_emul_initcall_order[] = {
|
||||
"__initcall_sched_init_debug7",
|
||||
"__initcall_cpu_latency_qos_init7",
|
||||
"__initcall_printk_late_init7",
|
||||
"__initcall_load_system_certificate_list7",
|
||||
"__initcall_check_early_ioremap_leak7",
|
||||
"__initcall_init_root_keyring7",
|
||||
"__initcall_prandom_init_late7",
|
||||
"__initcall_pci_resource_alignment_sysfs_init7",
|
||||
"__initcall_pci_sysfs_init7",
|
||||
"__initcall_sync_state_resume_initcall7",
|
||||
"__initcall_deferred_probe_initcall7",
|
||||
"__initcall_regulatory_init_db7",
|
||||
"__initcall_pci_mmcfg_late_insert_resources7",
|
||||
"__initcall_clk_disable_unused7s",
|
||||
"__initcall_con_initcon",
|
||||
|
Loading…
x
Reference in New Issue
Block a user