Commit b1940954 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: gasket: remove gasket_interrupt_trigger_eventfd()

No one calls it, so just remove the dead code.

Cc: Rob Springer <rspringer@google.com>
Cc: John Joseph <jnjoseph@google.com>
Cc: Ben Chan <benchan@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f09b915b
...@@ -504,18 +504,6 @@ int gasket_interrupt_clear_eventfd( ...@@ -504,18 +504,6 @@ int gasket_interrupt_clear_eventfd(
return 0; return 0;
} }
int gasket_interrupt_trigger_eventfd(
struct gasket_interrupt_data *interrupt_data, int interrupt)
{
struct eventfd_ctx *ctx = interrupt_data->eventfd_ctxs[interrupt];
if (!ctx)
return -EINVAL;
eventfd_signal(ctx, 1);
return 0;
}
struct msix_entry *gasket_interrupt_get_msix_entries( struct msix_entry *gasket_interrupt_get_msix_entries(
struct gasket_interrupt_data *interrupt_data) struct gasket_interrupt_data *interrupt_data)
{ {
......
...@@ -101,19 +101,6 @@ int gasket_interrupt_set_eventfd( ...@@ -101,19 +101,6 @@ int gasket_interrupt_set_eventfd(
int gasket_interrupt_clear_eventfd( int gasket_interrupt_clear_eventfd(
struct gasket_interrupt_data *interrupt_data, int interrupt); struct gasket_interrupt_data *interrupt_data, int interrupt);
/*
* Signals the eventfd associated with interrupt.
* @data: Pointer to device interrupt data.
* @interrupt: The device interrupt to signal for.
*
* Simulates a device interrupt by signaling the eventfd associated with
* interrupt, if any.
* Returns 0 if the eventfd was successfully triggered, a negative error code
* otherwise (if, for example, no eventfd was associated with interrupt).
*/
int gasket_interrupt_trigger_eventfd(
struct gasket_interrupt_data *interrupt_data, int interrupt);
/* /*
* The below functions exist for backwards compatibility. * The below functions exist for backwards compatibility.
* No new uses should be written. * No new uses should be written.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment