Skip to content

Commit 42fa9b2

Browse files
lifeixjren1
authored andcommitted
Minor cleanup not to use uart for release on platform uefi
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
1 parent ab2691d commit 42fa9b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hypervisor/include/debug/serial.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@
3333

3434
#ifdef HV_DEBUG
3535
int serial_init(void);
36+
void uart16550_set_property(int enabled, int port_mapped, uint64_t base_addr);
3637
#else
3738
static inline int serial_init(void) { return 0; }
39+
static inline void uart16550_set_property(__unused int enabled,
40+
__unused int port_mapped,
41+
__unused uint64_t base_addr)
42+
{
43+
}
3844
#endif
3945

40-
void uart16550_set_property(int enabled, int port_mapped, uint64_t base_addr);
41-
4246
#endif

0 commit comments

Comments
 (0)