From 2e9e5c37b5394299c0d915f2978e364f8848f32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Wed, 20 Apr 2022 17:17:07 +0200 Subject: [PATCH] pc_usb_host_drv: supress '__printk_ratelimit' --- repos/pc/src/drivers/usb_host/pc/dummies.c | 10 ++++++++++ repos/pc/src/drivers/usb_host/pc/generated_dummies.c | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/repos/pc/src/drivers/usb_host/pc/dummies.c b/repos/pc/src/drivers/usb_host/pc/dummies.c index a9a6e04863..0d918424d0 100644 --- a/repos/pc/src/drivers/usb_host/pc/dummies.c +++ b/repos/pc/src/drivers/usb_host/pc/dummies.c @@ -564,3 +564,13 @@ int usb_acpi_set_power_state(struct usb_device *hdev, int index, bool enable) lx_emul_trace(__func__); return 0; } + + +#include + +int __printk_ratelimit(const char * func) +{ + lx_emul_trace(__func__); + /* suppress */ + return 0; +} diff --git a/repos/pc/src/drivers/usb_host/pc/generated_dummies.c b/repos/pc/src/drivers/usb_host/pc/generated_dummies.c index 7655a71d4a..ee2ef477fb 100644 --- a/repos/pc/src/drivers/usb_host/pc/generated_dummies.c +++ b/repos/pc/src/drivers/usb_host/pc/generated_dummies.c @@ -55,14 +55,6 @@ unsigned long __get_free_pages(gfp_t gfp_mask,unsigned int order) } -#include - -int __printk_ratelimit(const char * func) -{ - lx_emul_trace_and_stop(__func__); -} - - #include void __put_cred(struct cred * cred)