Linux IOMMU Development
 help / color / mirror / Atom feed
From: Pranjal Shrivastava <praan@google.com>
To: Will Deacon <will@kernel.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
	Joerg Roedel <joro@8bytes.org>,
	Robin Murphy <robin.murphy@arm.com>,
	Mostafa Saleh <smostafa@google.com>,
	iommu@lists.linux.dev, Daniel Mentz <danielmentz@google.com>
Subject: Re: [PATCH] iommu/arm-smmu-v3: Use str_read_write helper w/ logs
Date: Fri, 10 Jan 2025 17:47:13 +0000	[thread overview]
Message-ID: <Z4FdIe2hlgayo19x@google.com> (raw)
In-Reply-To: <20250110162553.GA11929@willie-the-truck>

> > > On Fri, Jan 10, 2025 at 12:18:02PM +0100, Marek Szyprowski wrote:
> > > > On 07.01.2025 17:51, Pranjal Shrivastava wrote:
> > > > > Adopt the `str_read_write` helper in event logging as highlighted [1].
> > > > >
> > > > > [1] https://lore.kernel.org/all/20250107130053.GC6991@willie-the-truck/
> > > > >
> > > > > Signed-off-by: Pranjal Shrivastava <praan@google.com>
> > > > 
> > > > This change landed in today's linux-next as commit f2c77f6e41e6 
> > > > ("iommu/arm-smmu-v3: Use str_read_write helper w/ logs"). It fails to 
> > > > build here with arm64/defconfig on my setup. It looks that it misses to 
> > > > add the following include:
> > > > 
> > > > diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c 
> > > > b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
> > > > index 0e4cbb2c64d7..a0e395da8a88 100644
> > > > --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
> > > > +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
> > > > @@ -26,6 +26,7 @@
> > > >   #include <linux/pci.h>
> > > >   #include <linux/pci-ats.h>
> > > >   #include <linux/platform_device.h>
> > > > +#include <linux/string_choices.h>
> > > >   #include <kunit/visibility.h>
> > > >   #include <uapi/linux/iommufd.h>
> > > 
> > > Hmm, I build and test my branches before I push them so this is a bit
> > > surprising. I just confirmed that it's building with arm64/defconfig
> > > for me, so lemme dig into this some more...
> > 
> > Aha, there seems to be a transitive include of string_choices.h via
> > linux/acpi.h. So while I still think the arm64 defconfig should build,
> > if I go in and disable CONFIG_ACPI then I see the failure.
> > 
> > So for my test builds:
> > allnoconfig:	Builds as there isn't an SMMU driver
> > defconfig:	Builds because CONFIG_ACPI=y
> > allmodconfig:	Same as above
> > 

Ahh, apologies for not building with CONFIG_ACPI=n, I'll be more
careful next time!

> > I'll add the missing #include.
> 
> I pushed the fix to arm/smmu/updates [1] which should appear in -next
> when Joerg next rebuilds the branch.

Thanks for fixing this!
Regards,
Praan

  reply	other threads:[~2025-01-10 17:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20250110111804eucas1p2a5fa56e1a9fabbba5dacd4486517c9fe@eucas1p2.samsung.com>
2025-01-07 16:51 ` [PATCH] iommu/arm-smmu-v3: Use str_read_write helper w/ logs Pranjal Shrivastava
2025-01-07 22:21   ` Nicolin Chen
2025-01-08 16:38   ` Will Deacon
2025-01-10 11:18   ` Marek Szyprowski
2025-01-10 12:53     ` Will Deacon
2025-01-10 13:17       ` Will Deacon
2025-01-10 16:25         ` Will Deacon
2025-01-10 17:47           ` Pranjal Shrivastava [this message]
2025-01-14 19:08   ` Guenter Roeck

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=Z4FdIe2hlgayo19x@google.com \
    --to=praan@google.com \
    --cc=danielmentz@google.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=m.szyprowski@samsung.com \
    --cc=robin.murphy@arm.com \
    --cc=smostafa@google.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