Re: [PATCH 1/2] iommu/mediatek-v1: Avoid build fail when build as module

From: Joerg Roedel
Date: Thu Apr 15 2021 - 09:48:55 EST


On Mon, Apr 12, 2021 at 02:48:42PM +0800, Yong Wu wrote:
> When this driver build as module, It build fail like:
>
> ERROR: modpost: "of_phandle_iterator_args"
> [drivers/iommu/mtk_iommu_v1.ko] undefined!
>
> This patch remove this interface to avoid this build fail.
>
> Reported-by: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
> Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx>
> ---
> Currently below patch is only in linux-next-20210409. This fixes tag may be
> not needed. we can add this if it is need.
> Fixes: 8de000cf0265 ("iommu/mediatek-v1: Allow building as module")
> ---
> drivers/iommu/mtk_iommu_v1.c | 62 ++++++++++++++++--------------------
> 1 file changed, 28 insertions(+), 34 deletions(-)

Applied both, thanks.