From a462a8e74128af0d17f94584c038d2fa73b7c160 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Thu, 18 Feb 2021 17:22:12 +0100 Subject: [PATCH] usb_host: compile errors with DEBUG_LINUX_PRINTK Ref #3961 --- repos/dde_linux/src/drivers/usb_host/lx_emul.cc | 2 ++ repos/dde_linux/src/drivers/usb_host/lx_emul.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/repos/dde_linux/src/drivers/usb_host/lx_emul.cc b/repos/dde_linux/src/drivers/usb_host/lx_emul.cc index 10617519e5..d3f285a7a2 100644 --- a/repos/dde_linux/src/drivers/usb_host/lx_emul.cc +++ b/repos/dde_linux/src/drivers/usb_host/lx_emul.cc @@ -33,6 +33,8 @@ #include #include +unsigned long loops_per_jiffy = 1; /* needed by 'dwc_otg_attr.c' */ + namespace Genode { class Slab_backend_alloc; class Slab_alloc; diff --git a/repos/dde_linux/src/drivers/usb_host/lx_emul.h b/repos/dde_linux/src/drivers/usb_host/lx_emul.h index b022091edb..3d1e61aeb4 100644 --- a/repos/dde_linux/src/drivers/usb_host/lx_emul.h +++ b/repos/dde_linux/src/drivers/usb_host/lx_emul.h @@ -105,6 +105,8 @@ typedef unsigned long phys_addr_t; typedef unsigned __poll_t; typedef unsigned slab_flags_t; +extern unsigned long loops_per_jiffy; /* needed by 'dwc_otg_attr.c' */ + /********************** ** linux/compiler.h **