From b19409549bffc4e5b4e3940d825cec5edb606959 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 13 Jul 2018 12:05:53 +0200 Subject: [PATCH] staging: gasket: remove gasket_interrupt_trigger_eventfd() No one calls it, so just remove the dead code. Cc: Rob Springer Cc: John Joseph Cc: Ben Chan Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gasket/gasket_interrupt.c | 12 ------------ drivers/staging/gasket/gasket_interrupt.h | 13 ------------- 2 files changed, 25 deletions(-) diff --git a/drivers/staging/gasket/gasket_interrupt.c b/drivers/staging/gasket/gasket_interrupt.c index 3ea168f..691996d 100644 --- a/drivers/staging/gasket/gasket_interrupt.c +++ b/drivers/staging/gasket/gasket_interrupt.c @@ -504,18 +504,6 @@ int gasket_interrupt_clear_eventfd( 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 gasket_interrupt_data *interrupt_data) { diff --git a/drivers/staging/gasket/gasket_interrupt.h b/drivers/staging/gasket/gasket_interrupt.h index f0586a6..5b65d05 100644 --- a/drivers/staging/gasket/gasket_interrupt.h +++ b/drivers/staging/gasket/gasket_interrupt.h @@ -102,19 +102,6 @@ int gasket_interrupt_clear_eventfd( 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. * No new uses should be written. */ -- 2.7.4