From: Dave Jiang <dave.jiang@intel.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>,
"Vinod Koul" <vkoul@kernel.org>, "Frank Li" <Frank.Li@kernel.org>
Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] dmaengine: ioatdma: make ioat_ktype const
Date: Mon, 2 Mar 2026 15:49:23 -0700 [thread overview]
Message-ID: <b5a8b80b-5559-4e79-bb50-c58096b4090a@intel.com> (raw)
In-Reply-To: <20260302-sysfs-const-ioat-v1-3-1229ee1c83f3@weissschuh.net>
On 3/2/26 3:15 PM, Thomas Weißschuh wrote:
> This structure is never modified, mark is as read-only.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Dave Jiang <dave.jiang@intel.com>
> ---
> drivers/dma/ioat/dma.h | 4 ++--
> drivers/dma/ioat/sysfs.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
> index e187f3a7e968..e8a880f338c6 100644
> --- a/drivers/dma/ioat/dma.h
> +++ b/drivers/dma/ioat/dma.h
> @@ -190,7 +190,7 @@ struct ioat_ring_ent {
> };
>
> extern int ioat_pending_level;
> -extern struct kobj_type ioat_ktype;
> +extern const struct kobj_type ioat_ktype;
> extern struct kmem_cache *ioat_cache;
> extern struct kmem_cache *ioat_sed_cache;
>
> @@ -393,7 +393,7 @@ void ioat_issue_pending(struct dma_chan *chan);
> /* IOAT Init functions */
> bool is_bwd_ioat(struct pci_dev *pdev);
> struct dca_provider *ioat_dca_init(struct pci_dev *pdev, void __iomem *iobase);
> -void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type);
> +void ioat_kobject_add(struct ioatdma_device *ioat_dma, const struct kobj_type *type);
> void ioat_kobject_del(struct ioatdma_device *ioat_dma);
> int ioat_dma_setup_interrupts(struct ioatdma_device *ioat_dma);
> void ioat_stop(struct ioatdma_chan *ioat_chan);
> diff --git a/drivers/dma/ioat/sysfs.c b/drivers/dma/ioat/sysfs.c
> index 709d672bae51..da616365fef5 100644
> --- a/drivers/dma/ioat/sysfs.c
> +++ b/drivers/dma/ioat/sysfs.c
> @@ -78,7 +78,7 @@ static const struct sysfs_ops ioat_sysfs_ops = {
> .store = ioat_attr_store,
> };
>
> -void ioat_kobject_add(struct ioatdma_device *ioat_dma, struct kobj_type *type)
> +void ioat_kobject_add(struct ioatdma_device *ioat_dma, const struct kobj_type *type)
> {
> struct dma_device *dma = &ioat_dma->dma_dev;
> struct dma_chan *c;
> @@ -166,7 +166,7 @@ static struct attribute *ioat_attrs[] = {
> };
> ATTRIBUTE_GROUPS(ioat);
>
> -struct kobj_type ioat_ktype = {
> +const struct kobj_type ioat_ktype = {
> .sysfs_ops = &ioat_sysfs_ops,
> .default_groups = ioat_groups,
> };
>
next prev parent reply other threads:[~2026-03-02 22:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 22:15 [PATCH 0/4] dmaengine: ioatdma: some sysfs cleanups and constifications Thomas Weißschuh
2026-03-02 22:15 ` [PATCH 1/4] dmaengine: ioatdma: make some sysfs structures static Thomas Weißschuh
2026-03-02 22:56 ` Dave Jiang
2026-03-04 16:00 ` Frank Li
2026-03-02 22:15 ` [PATCH 2/4] dmaengine: ioatdma: move sysfs entry definition out of header Thomas Weißschuh
2026-03-04 16:02 ` Frank Li
2026-03-02 22:15 ` [PATCH 3/4] dmaengine: ioatdma: make ioat_ktype const Thomas Weißschuh
2026-03-02 22:49 ` Dave Jiang [this message]
2026-03-04 16:03 ` Frank Li
2026-03-02 22:15 ` [PATCH 4/4] dmaengine: ioatdma: make sysfs attributes const Thomas Weißschuh
2026-03-02 22:50 ` Dave Jiang
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=b5a8b80b-5559-4e79-bb50-c58096b4090a@intel.com \
--to=dave.jiang@intel.com \
--cc=Frank.Li@kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®