Commit 1f3dc29d authored by Will Deacon's avatar Will Deacon
Browse files

iommu/arm-smmu-v3: Add missing #include of linux/string_choices.h

Commit f2c77f6e ("iommu/arm-smmu-v3: Use str_read_write helper w/
logs") introduced a call to str_read_write() in the SMMUv3 driver but
without an explicit #include of <linux/string_choices.h>. This breaks
the build for custom configurations where CONFIG_ACPI=n:

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:1909:4: error: call to
	undeclared function 'str_read_write'; ISO C99 and later do not
	support implicit function declarations [-Wimplicit-function-declaration]
 1909 |                         str_read_write(evt->read),
      |                         ^

Add the missing #include.

Link: https://lore.kernel.org/r/d07e82a4-2880-4ae3-961b-471bfa7ac6c4@samsung.com


Reported-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Fixes: f2c77f6e ("iommu/arm-smmu-v3: Use str_read_write helper w/ logs")
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent f2c77f6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment