diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-05-15 18:20:49 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-16 15:41:35 +1000 |
commit | 89a5994118775450bef5bc7f09638b71cc8e49ec (patch) | |
tree | 8e5c177a4e00c884c6f4cb29016027224a510305 | |
parent | ad73840e911c20ae6ee619ffbbc533ee838a0fa9 (diff) | |
download | skiboot-89a5994118775450bef5bc7f09638b71cc8e49ec.zip skiboot-89a5994118775450bef5bc7f09638b71cc8e49ec.tar.gz skiboot-89a5994118775450bef5bc7f09638b71cc8e49ec.tar.bz2 |
hdata: Add no-op stub functions
These are useful for side-stepping various HW specific functions.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hdata/test/stubs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index bde19e1..8bbc68b 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.c @@ -99,6 +99,12 @@ STUB(op_display); STUB(fsp_preload_lid); STUB(fsp_wait_lid_loaded); STUB(fsp_adjust_lid_side); -STUB(mem_reserve_hw); -STUB(early_uart_init); STUB(backtrace); + +/* Add HW specific stubs here */ +static void noop_function(void) {} +#define NOOP_STUB(fnname) \ + void fnname(void) __attribute__((weak, alias ("noop_function"))) + +NOOP_STUB(early_uart_init); +NOOP_STUB(mem_reserve_hw); |