From: Fenghua Yu <fenghua.yu@intel.com>
To: <linux@treblig.org>, <dave.jiang@intel.com>, <vkoul@kernel.org>
Cc: <dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dmaengine: idxd: Remove unused idxd_(un)register_bus_type
Date: Mon, 23 Dec 2024 14:46:25 -0800 [thread overview]
Message-ID: <1f22eb80-0b24-6ddd-afbf-95df8d45f3f9@intel.com> (raw)
In-Reply-To: <20241221141635.69412-1-linux@treblig.org>
On 12/21/24 06:16, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> idxd_register_bus_type() and idxd_unregister_bus_type() have been unused
> since 2021's
> commit d9e5481fca74 ("dmaengine: dsa: move dsa_bus_type out of idxd driver
> to standalone")
>
> Remove them.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
> ---
> drivers/dma/idxd/idxd.h | 2 --
> drivers/dma/idxd/sysfs.c | 10 ----------
> 2 files changed, 12 deletions(-)
>
> diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h
> index d84e21daa991..ff33ebf08ee7 100644
> --- a/drivers/dma/idxd/idxd.h
> +++ b/drivers/dma/idxd/idxd.h
> @@ -725,8 +725,6 @@ static inline void idxd_desc_complete(struct idxd_desc *desc,
> &desc->txd, &status);
> }
>
> -int idxd_register_bus_type(void);
> -void idxd_unregister_bus_type(void);
> int idxd_register_devices(struct idxd_device *idxd);
> void idxd_unregister_devices(struct idxd_device *idxd);
> void idxd_wqs_quiesce(struct idxd_device *idxd);
> diff --git a/drivers/dma/idxd/sysfs.c b/drivers/dma/idxd/sysfs.c
> index f706eae0e76b..6af493f6ba77 100644
> --- a/drivers/dma/idxd/sysfs.c
> +++ b/drivers/dma/idxd/sysfs.c
> @@ -1979,13 +1979,3 @@ void idxd_unregister_devices(struct idxd_device *idxd)
> device_unregister(group_confdev(group));
> }
> }
> -
> -int idxd_register_bus_type(void)
> -{
> - return bus_register(&dsa_bus_type);
> -}
> -
> -void idxd_unregister_bus_type(void)
> -{
> - bus_unregister(&dsa_bus_type);
> -}
Thanks.
-Fenghua
next prev parent reply other threads:[~2024-12-23 22:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-21 14:16 [PATCH] dmaengine: idxd: Remove unused idxd_(un)register_bus_type linux
2024-12-23 22:46 ` Fenghua Yu [this message]
2024-12-24 10:41 ` Vinod Koul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f22eb80-0b24-6ddd-afbf-95df8d45f3f9@intel.com \
--to=fenghua.yu@intel.com \
--cc=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.