* [PATCH] iommu/arm-smmu-v3: add missing header
@ 2025-01-14 16:05 Robert Marko
2025-01-16 3:09 ` Pranjal Shrivastava
0 siblings, 1 reply; 3+ messages in thread
From: Robert Marko @ 2025-01-14 16:05 UTC (permalink / raw)
To: will, robin.murphy, joro, jgg, nicolinc, linux-arm-kernel, iommu,
linux-kernel
Cc: luka.perkov, Robert Marko, kernel test robot
str_read_write is currently undeclared and thus compilation will fail with:
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:1911:25: error: implicit declaration of function ‘str_read_write’; did you mean ‘sb_end_write’? [-Wimplicit-function-declaration]
So include the missing linux/string_choices.h header to fix compilation.
Fixes: f2c77f6e41e6 ("iommu/arm-smmu-v3: Use str_read_write helper w/ logs")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501111926.qOpnlK9J-lkp@intel.com/
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 1 +
1 file changed, 1 insertion(+)
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>
--
2.47.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu/arm-smmu-v3: add missing header
2025-01-14 16:05 [PATCH] iommu/arm-smmu-v3: add missing header Robert Marko
@ 2025-01-16 3:09 ` Pranjal Shrivastava
2025-01-16 9:13 ` Robert Marko
0 siblings, 1 reply; 3+ messages in thread
From: Pranjal Shrivastava @ 2025-01-16 3:09 UTC (permalink / raw)
To: Robert Marko
Cc: will, robin.murphy, joro, jgg, nicolinc, linux-arm-kernel, iommu,
linux-kernel, luka.perkov, kernel test robot
On Tue, Jan 14, 2025 at 05:05:56PM +0100, Robert Marko wrote:
> str_read_write is currently undeclared and thus compilation will fail with:
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:1911:25: error: implicit declaration of function ‘str_read_write’; did you mean ‘sb_end_write’? [-Wimplicit-function-declaration]
>
> So include the missing linux/string_choices.h header to fix compilation.
>
> Fixes: f2c77f6e41e6 ("iommu/arm-smmu-v3: Use str_read_write helper w/ logs")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501111926.qOpnlK9J-lkp@intel.com/
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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>
Hi Robert,
This fix has already been merged to the arm/smmu/updates branch [1]
which should appear in -next when Joerg next rebuilds the branch.
Thanks,
Praan
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux.git/commit/?h=arm/smmu/updates
>
> --
> 2.47.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu/arm-smmu-v3: add missing header
2025-01-16 3:09 ` Pranjal Shrivastava
@ 2025-01-16 9:13 ` Robert Marko
0 siblings, 0 replies; 3+ messages in thread
From: Robert Marko @ 2025-01-16 9:13 UTC (permalink / raw)
To: Pranjal Shrivastava
Cc: will, robin.murphy, joro, jgg, nicolinc, linux-arm-kernel, iommu,
linux-kernel, luka.perkov, kernel test robot
On Thu, Jan 16, 2025 at 4:09 AM Pranjal Shrivastava <praan@google.com> wrote:
>
> On Tue, Jan 14, 2025 at 05:05:56PM +0100, Robert Marko wrote:
> > str_read_write is currently undeclared and thus compilation will fail with:
> > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:1911:25: error: implicit declaration of function ‘str_read_write’; did you mean ‘sb_end_write’? [-Wimplicit-function-declaration]
> >
> > So include the missing linux/string_choices.h header to fix compilation.
> >
> > Fixes: f2c77f6e41e6 ("iommu/arm-smmu-v3: Use str_read_write helper w/ logs")
> > Reported-by: kernel test robot <lkp@intel.com>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202501111926.qOpnlK9J-lkp@intel.com/
> > Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> > ---
> > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > 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>
>
> Hi Robert,
>
> This fix has already been merged to the arm/smmu/updates branch [1]
> which should appear in -next when Joerg next rebuilds the branch.
Hi Praan,
I looked for an existing fix but couldn't find it before sending it.
Glad that it was already fixed, please ignore this patch then.
Regards,
Robert
>
> Thanks,
> Praan
>
> [1]
> https://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux.git/commit/?h=arm/smmu/updates
>
> >
> > --
> > 2.47.1
> >
> >
--
Robert Marko
Staff Embedded Linux Engineer
Sartura d.d.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: robert.marko@sartura.hr
Web: www.sartura.hr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-16 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 16:05 [PATCH] iommu/arm-smmu-v3: add missing header Robert Marko
2025-01-16 3:09 ` Pranjal Shrivastava
2025-01-16 9:13 ` Robert Marko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).