summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/atafb_iplan2p4.c
diff options
context:
space:
mode:
authorWill Deacon2019-07-02 13:53:18 +0200
committerJoerg Roedel2019-07-02 17:13:39 +0200
commit900a85ca43f4ae88c325a468cb8827e4852b9141 (patch)
treeed931c69418e9c80e748bb8faca0f11cf9962472 /drivers/video/fbdev/atafb_iplan2p4.c
parentMerge branch 'arm/renesas' into arm/smmu (diff)
downloadkernel-qcow2-linux-900a85ca43f4ae88c325a468cb8827e4852b9141.tar.gz
kernel-qcow2-linux-900a85ca43f4ae88c325a468cb8827e4852b9141.tar.xz
kernel-qcow2-linux-900a85ca43f4ae88c325a468cb8827e4852b9141.zip
iommu/arm-smmu-v3: Fix compilation when CONFIG_CMA=n
When compiling a kernel without support for CMA, CONFIG_CMA_ALIGNMENT is not defined which results in the following build failure: In file included from ./include/linux/list.h:9:0 from ./include/linux/kobject.h:19, from ./include/linux/of.h:17 from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from drivers/iommu/arm-smmu-v3.c:12: drivers/iommu/arm-smmu-v3.c: In function ‘arm_smmu_device_hw_probe’: drivers/iommu/arm-smmu-v3.c:194:40: error: ‘CONFIG_CMA_ALIGNMENT’ undeclared (first use in this function) #define Q_MAX_SZ_SHIFT (PAGE_SHIFT + CONFIG_CMA_ALIGNMENT) Fix the breakage by capping the maximum queue size based on MAX_ORDER when CMA is not enabled. Reported-by: Zhangshaokun <zhangshaokun@hisilicon.com> Signed-off-by: Will Deacon <will@kernel.org> Tested-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/video/fbdev/atafb_iplan2p4.c')
0 files changed, 0 insertions, 0 deletions