pc: unify string_helpers and get_option()

Issue #5036
This commit is contained in:
Christian Helmuth 2023-11-01 14:33:45 +01:00
parent fec1765cc4
commit 394a495b55
11 changed files with 14 additions and 169 deletions

View File

@ -1,7 +1,7 @@
/*
* \brief Dummy definitions of Linux Kernel functions
* \author Automatically generated file - do no edit
* \date 2023-03-22
* \date 2023-11-02
*/
#include <lx_emul.h>
@ -244,30 +244,6 @@ void bust_spinlocks(int yes)
}
#include <linux/fb.h>
void cfb_copyarea(struct fb_info * p,const struct fb_copyarea * area)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/fb.h>
void cfb_fillrect(struct fb_info * p,const struct fb_fillrect * rect)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/fb.h>
void cfb_imageblit(struct fb_info * p,const struct fb_image * image)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/swap.h>
void check_move_unevictable_pages(struct pagevec * pvec)
@ -292,22 +268,6 @@ void console_flush_on_panic(enum con_flush_mode mode)
}
#include <linux/console.h>
void console_lock(void)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/console.h>
int console_trylock(void)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/console.h>
void console_unblank(void)
@ -316,14 +276,6 @@ void console_unblank(void)
}
#include <linux/console.h>
void console_unlock(void)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/printk.h>
void console_verbose(void)
@ -513,14 +465,6 @@ void emergency_restart(void)
}
#include <linux/fb.h>
void fb_set_suspend(struct fb_info * info,int state)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/capability.h>
bool file_ns_capable(const struct file * file,struct user_namespace * ns,int cap)
@ -537,14 +481,6 @@ void finish_rcuwait(struct rcuwait * w)
}
#include <linux/fb.h>
void framebuffer_release(struct fb_info * info)
{
lx_emul_trace_and_stop(__func__);
}
extern void gen5_gt_enable_irq(struct intel_gt * gt,u32 mask);
void gen5_gt_enable_irq(struct intel_gt * gt,u32 mask)
{
@ -580,14 +516,6 @@ void gen6_rps_irq_handler(struct intel_rps * rps,u32 pm_iir)
}
#include <linux/kernel.h>
int get_option(char ** str,int * pint)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/i2c.h>
s32 i2c_smbus_read_block_data(const struct i2c_client * client,u8 command,u8 * values)
@ -2042,14 +1970,6 @@ int unregister_acpi_bus_type(struct acpi_bus_type * type)
}
#include <linux/fb.h>
void unregister_framebuffer(struct fb_info * fb_info)
{
lx_emul_trace_and_stop(__func__);
}
extern void unregister_irq_proc(unsigned int irq,struct irq_desc * desc);
void unregister_irq_proc(unsigned int irq,struct irq_desc * desc)
{

View File

@ -73,13 +73,6 @@ void register_syscore_ops(struct syscore_ops * ops)
lx_emul_trace(__func__);
}
#include <linux/kernel.h>
int get_option(char ** str,int * pint)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/rcutree.h>
void synchronize_rcu_expedited(void)

View File

@ -1,7 +1,7 @@
/*
* \brief Dummy definitions of Linux Kernel functions
* \author Automatically generated file - do no edit
* \date 2023-08-09
* \date 2023-11-02
*/
#include <lx_emul.h>

View File

@ -1,7 +1,7 @@
/*
* \brief Dummy definitions of Linux Kernel functions
* \author Automatically generated file - do no edit
* \date 2023-03-17
* \date 2023-11-02
*/
#include <lx_emul.h>
@ -179,14 +179,6 @@ void gen_pool_free_owner(struct gen_pool * pool,unsigned long addr,size_t size,v
}
#include <linux/kernel.h>
int get_option(char ** str,int * pint)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/uuid.h>
const u8 guid_index[16] = {};
@ -412,14 +404,6 @@ void seq_printf(struct seq_file * m,const char * f,...)
}
#include <linux/string.h>
char * skip_spaces(const char * str)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/smp.h>
void smp_call_function_many(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait)
@ -441,35 +425,11 @@ int smp_call_function_single(int cpu,smp_call_func_t func,void * info,int wait)
bool static_key_initialized;
#include <linux/string_helpers.h>
int string_escape_mem(const char * src,size_t isz,char * dst,size_t osz,unsigned int flags,const char * only)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/string.h>
char * strreplace(char * s,char old,char new)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysctl.h>
const int sysctl_vals[] = {};
#include <linux/string.h>
bool sysfs_streq(const char * s1,const char * s2)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/task_work.h>
int task_work_add(struct task_struct * task,struct callback_head * work,enum task_work_notify_mode notify)

View File

@ -98,6 +98,7 @@ lib/scatterlist.c
lib/siphash.c
lib/sort.c
lib/string.c
lib/string_helpers.c
lib/timerqueue.c
lib/vsprintf.c
lib/xarray.c

View File

@ -97,6 +97,7 @@ lib/scatterlist.c
lib/siphash.c
lib/sort.c
lib/string.c
lib/string_helpers.c
lib/timerqueue.c
lib/vsprintf.c
lib/xarray.c

View File

@ -277,6 +277,12 @@ bool parse_option_str(const char * str,const char * option)
}
int get_option(char ** str,int * pint)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/pci.h>
void pci_fixup_device(enum pci_fixup_pass pass,struct pci_dev * dev)

View File

@ -569,20 +569,6 @@ void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwr
}
#include <linux/kernel.h>
int get_option(char ** str,int * pint)
{
lx_emul_trace_and_stop(__func__);
}
char * strreplace(char * s,char old,char new)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/property.h>
int software_node_notify(struct device * dev,unsigned long action)

View File

@ -1,7 +1,7 @@
/*
* \brief Dummy definitions of Linux Kernel functions
* \author Automatically generated file - do no edit
* \date 2023-06-30
* \date 2023-11-02
*/
#include <lx_emul.h>
@ -1007,14 +1007,6 @@ int sk_reuseport_attach_filter(struct sock_fprog * fprog,struct sock * sk)
}
#include <linux/string.h>
char * skip_spaces(const char * str)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/smp.h>
void smp_call_function_many(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait)
@ -1067,14 +1059,6 @@ int stream_open(struct inode * inode,struct file * filp)
}
#include <linux/string_helpers.h>
int string_escape_mem(const char * src,size_t isz,char * dst,size_t osz,unsigned int flags,const char * only)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/printk.h>
int suppress_printk;
@ -1101,14 +1085,6 @@ int sysfs_rename_link_ns(struct kobject * kobj,struct kobject * targ,const char
}
#include <linux/string.h>
bool sysfs_streq(const char * s1,const char * s2)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/task_work.h>
struct callback_head * task_work_cancel(struct task_struct * task,task_work_func_t func)

View File

@ -210,6 +210,7 @@ lib/scatterlist.c
lib/siphash.c
lib/sort.c
lib/string.c
lib/string_helpers.c
lib/timerqueue.c
lib/vsprintf.c
lib/xarray.c

View File

@ -254,6 +254,7 @@ lib/scatterlist.c
lib/siphash.c
lib/sort.c
lib/string.c
lib/string_helpers.c
lib/timerqueue.c
lib/vsprintf.c
lib/xarray.c