mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: "Can Peng" <pengcan@kylinos.cn>,
	iommu@lists.linux.dev, "Jörg Rödel" <joro@8bytes.org>,
	"Robin Murphy" <robin.murphy@arm.com>,
	"Will Deacon" <will@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] iommu: simplify list initialization in iommu_create_device_direct_mappings()
Date: Sat, 10 Jan 2026 12:48:14 +0100	[thread overview]
Message-ID: <6af1bb46-89fb-46a8-94d8-61df8f1a50f7@web.de> (raw)
In-Reply-To: <20251209071513.3105610-1-pengcan@kylinos.cn>

> Use LIST_HEAD() to declare and initialize the 'mappings' list head in
> iommu_create_device_direct_mappings() instead of separate declaration and
> INIT_LIST_HEAD(). This simplifies the code by combining declaration and
> initialization into a single idiomatic form, improving readability without
> changing functionality.
…

How do you think about to repeat the mentioned transformation approach for the implementation
of the function “iommu_group_show_resv_regions”?
https://elixir.bootlin.com/linux/v6.19-rc4/source/drivers/iommu/iommu.c#L949-L969

Regards,
Markus

      parent reply	other threads:[~2026-01-10 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-09  7:15 Can Peng
2026-01-10  9:59 ` Jörg Rödel
2026-01-10 11:48 ` Markus Elfring [this message]

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=6af1bb46-89fb-46a8-94d8-61df8f1a50f7@web.de \
    --to=markus.elfring@web.de \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pengcan@kylinos.cn \
    --cc=robin.murphy@arm.com \
    --cc=will@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®