Message ID | 20220331115312.30018-6-damien.hedde@greensocs.com |
---|---|
State | New |
Headers | show |
Series | Generalize the sysbus device machine allowance | expand |
On Thu, Mar 31, 2022 at 01:53:12PM +0200, Damien Hedde wrote: > Now we have renamed all calls to these old functions, we > can delete the temporary inline we've defined. > > Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> > Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com> > --- > include/hw/boards.h | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/include/hw/boards.h b/include/hw/boards.h > index 1814793175..7efba048e9 100644 > --- a/include/hw/boards.h > +++ b/include/hw/boards.h > @@ -52,11 +52,6 @@ void machine_parse_smp_config(MachineState *ms, > * it will get an error message. > */ > void machine_class_allow_dynamic_device(MachineClass *mc, const char *type); > -static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, > - const char *type) > -{ > - machine_class_allow_dynamic_device(mc, type); > -} > > /** > * device_type_is_dynamic_allowed: Check if type is an allowed device > @@ -72,11 +67,6 @@ static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, > * Note that if @type has a parent type in the list, it is allowed too. > */ > bool device_type_is_dynamic_allowed(MachineClass *mc, const char *type); > -static inline bool device_type_is_dynamic_sysbus(MachineClass *mc, > - const char *type) > -{ > - return device_type_is_dynamic_allowed(mc, type); > -} > > /** > * device_is_dynamic_sysbus: test whether device is a dynamic sysbus device > -- > 2.35.1 > >
diff --git a/include/hw/boards.h b/include/hw/boards.h index 1814793175..7efba048e9 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -52,11 +52,6 @@ void machine_parse_smp_config(MachineState *ms, * it will get an error message. */ void machine_class_allow_dynamic_device(MachineClass *mc, const char *type); -static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, - const char *type) -{ - machine_class_allow_dynamic_device(mc, type); -} /** * device_type_is_dynamic_allowed: Check if type is an allowed device @@ -72,11 +67,6 @@ static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, * Note that if @type has a parent type in the list, it is allowed too. */ bool device_type_is_dynamic_allowed(MachineClass *mc, const char *type); -static inline bool device_type_is_dynamic_sysbus(MachineClass *mc, - const char *type) -{ - return device_type_is_dynamic_allowed(mc, type); -} /** * device_is_dynamic_sysbus: test whether device is a dynamic sysbus device