[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/7] xen/events: remove unused functions


  • To: Juergen Gross <jgross@xxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Mon, 13 Nov 2023 14:20:09 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BH00PH4/MmKLpKfSIxE7UCwQdWJ8EMJ155MUPI+ejKM=; b=fplwU5x5+VQIkB7FgREeJWv1ZpZc+idd8YTz/VA1X6H42Fw7GnynBrKk8n3fjhx9z/Ht5oUh3OA19CY2cfOXF9VhNm+b7FDZ9O38DaHLPHOAJvePqMyTYJLracyvNc6q+xn4vLSsbYRVX4qeotUs17NDJO58iR/am+WvtCiGpcv5tBK2l4WapEGgLZ+SKFdagR1whhIGXqaRTGZ5U1Z9VfRVNfoAssTPi2plm/XuvXwCEvOgmtzMf5M4SP9eZKUI2M7h9xZFhWP9fjoVxHvObH44mY09sryUUlpsoB3Y1RcCb3xexJXZ6IACMNtWe3wBuTFNWKIhqwm60YKc65sdhA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dHxnQYNwPq3Avze7mc8ZyVxd8YXi2hvSp4UTX+rf1uXH/awNBfcnb2r/v7D6KDfxUgHvm5uaMPC73TifH25UN+wOZyIzGlrLpeQ1vX78zfcfpTaxnCaisKOrxhudnKObawYSnHnUEGpNRWWo88X5y1U4g2aFtKn6dOZ4dBnraLySKGxCe9iLV4yM6eLpVgzVB0KYe1W57FJ4hpkYW7emXHlrMv4yDYephoU86/fCMenFAAijwSHZjZvnVX7o3xlOizC+ANPH2Y2qnO6RVsRIOiMZXhThbVHm8MCullMlG5DCS4wgzUy3TydWjXWR5XbTkKf3pTBuootYW2Jm2TRxlw==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 13 Nov 2023 14:20:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZ//oJo7CNZlOGmUOOgrMdy5X9FbB4eQkA
  • Thread-topic: [PATCH 2/7] xen/events: remove unused functions


On 16.10.23 09:28, Juergen Gross wrote:

Hello Juergen


> There are no users of xen_irq_from_pirq() and xen_set_irq_pending().
> 
> Remove those functions.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>


Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>


> ---
>   drivers/xen/events/events_base.c | 30 ------------------------------
>   include/xen/events.h             |  4 ----
>   2 files changed, 34 deletions(-)
> 
> diff --git a/drivers/xen/events/events_base.c 
> b/drivers/xen/events/events_base.c
> index 0e458b1c0c8c..1d797dd85d0e 100644
> --- a/drivers/xen/events/events_base.c
> +++ b/drivers/xen/events/events_base.c
> @@ -1165,29 +1165,6 @@ int xen_destroy_irq(int irq)
>       return rc;
>   }
>   
> -int xen_irq_from_pirq(unsigned pirq)
> -{
> -     int irq;
> -
> -     struct irq_info *info;
> -
> -     mutex_lock(&irq_mapping_update_lock);
> -
> -     list_for_each_entry(info, &xen_irq_list_head, list) {
> -             if (info->type != IRQT_PIRQ)
> -                     continue;
> -             irq = info->irq;
> -             if (info->u.pirq.pirq == pirq)
> -                     goto out;
> -     }
> -     irq = -1;
> -out:
> -     mutex_unlock(&irq_mapping_update_lock);
> -
> -     return irq;
> -}
> -
> -
>   int xen_pirq_from_irq(unsigned irq)
>   {
>       return pirq_from_irq(irq);
> @@ -2026,13 +2003,6 @@ void xen_clear_irq_pending(int irq)
>               event_handler_exit(info);
>   }
>   EXPORT_SYMBOL(xen_clear_irq_pending);
> -void xen_set_irq_pending(int irq)
> -{
> -     evtchn_port_t evtchn = evtchn_from_irq(irq);
> -
> -     if (VALID_EVTCHN(evtchn))
> -             set_evtchn(evtchn);
> -}
>   
>   bool xen_test_irq_pending(int irq)
>   {
> diff --git a/include/xen/events.h b/include/xen/events.h
> index 23932b0673dc..a129cafa80ed 100644
> --- a/include/xen/events.h
> +++ b/include/xen/events.h
> @@ -88,7 +88,6 @@ void xen_irq_resume(void);
>   
>   /* Clear an irq's pending state, in preparation for polling on it */
>   void xen_clear_irq_pending(int irq);
> -void xen_set_irq_pending(int irq);
>   bool xen_test_irq_pending(int irq);
>   
>   /* Poll waiting for an irq to become pending.  In the usual case, the
> @@ -122,9 +121,6 @@ int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct 
> msi_desc *msidesc,
>   /* De-allocates the above mentioned physical interrupt. */
>   int xen_destroy_irq(int irq);
>   
> -/* Return irq from pirq */
> -int xen_irq_from_pirq(unsigned pirq);
> -
>   /* Return the pirq allocated to the irq. */
>   int xen_pirq_from_irq(unsigned irq);
>   

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.