diff options
author | Juergen Gross <jgross@suse.com> | 2023-09-27 09:58:05 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2023-11-14 11:29:28 +0300 |
commit | 686464514fbebb6c8de4415238319e414c3500a4 (patch) | |
tree | 1ad5a92374fbe96df35603fd3ea31c8b5ce6b004 /drivers/xen/events/events_internal.h | |
parent | f96c6c588ca81255566a5168e51c9cbbe7b86def (diff) | |
download | linux-686464514fbebb6c8de4415238319e414c3500a4.tar.xz |
xen/events: reduce externally visible helper functions
get_evtchn_to_irq() has only one external user while irq_from_evtchn()
provides the same functionality and is exported for a wider user base.
Modify the only external user of get_evtchn_to_irq() to use
irq_from_evtchn() instead and make get_evtchn_to_irq() static.
evtchn_from_irq() and irq_from_virq() have a single external user and
can easily be combined to a new helper irq_evtchn_from_virq() allowing
to drop irq_from_virq() and to make evtchn_from_irq() static.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen/events/events_internal.h')
-rw-r--r-- | drivers/xen/events/events_internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/xen/events/events_internal.h b/drivers/xen/events/events_internal.h index 4d3398eff9cd..19ae31695edc 100644 --- a/drivers/xen/events/events_internal.h +++ b/drivers/xen/events/events_internal.h @@ -33,7 +33,6 @@ struct evtchn_ops { extern const struct evtchn_ops *evtchn_ops; -int get_evtchn_to_irq(evtchn_port_t evtchn); void handle_irq_for_port(evtchn_port_t port, struct evtchn_loop_ctrl *ctrl); unsigned int cpu_from_evtchn(evtchn_port_t evtchn); |