mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +00:00
dm: inline functions defined in header must be static
An inline function defined in headers must be static otherwise compilation may fail, depending on gcc optimization level, particularly if dropping -O2 from the Makefile dm doesn't compile reporting unresolved symbols. Tracked-On: #1406 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -227,8 +227,8 @@ enum USB_ERRCODE {
|
||||
#define USB_NATIVE_NUM_BUS 4
|
||||
|
||||
extern int usb_log_level;
|
||||
inline int usb_get_log_level(void) { return usb_log_level; }
|
||||
inline void usb_set_log_level(int level) { usb_log_level = level; }
|
||||
static inline int usb_get_log_level(void) { return usb_log_level; }
|
||||
static inline void usb_set_log_level(int level) { usb_log_level = level; }
|
||||
void usb_parse_log_level(char level);
|
||||
struct usb_devemu *usb_emu_finddev(char *name);
|
||||
int usb_native_is_bus_existed(uint8_t bus_num);
|
||||
|
Reference in New Issue
Block a user