Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp793957pxb; Thu, 15 Apr 2021 06:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTIDf2/FEnEtN+cXKLGbKl91Z2XQHN0RQmyn0xK6LyvW0mL2uRKum9K1yi+d+ByyTqydMa X-Received: by 2002:a17:906:b191:: with SMTP id w17mr3582331ejy.200.1618494608144; Thu, 15 Apr 2021 06:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618494608; cv=none; d=google.com; s=arc-20160816; b=vg7c6vCbHp1UUM/66zF5RV3mquzZDQ/MPV5FVCRBHnpzLbBiq0/AjN682Ey7iIaJ+g D1bXwcZkw+kK2W4Mp3aDetneTmbxJ+9O+IQ3Lr+/JmIROVA4u0zsxyDtg/bWq7qdiG67 sL65bjvtlCBkyRcUvcujiTcllSRTUYUGUe817qtJChHkYlokE5nwrheiDZmPoIXLuUwY X/opcu2JeqBXCAF/HO8ENfRu76U9TZbREXGryq5eOCa1NL1f+FWhETgB1mwhYcS8AAN8 DoZUMht1TXW9i++t8kV6yPpV99hE97OCwS2qm+hT0hX7ssuJwPbZjN4hZTzmAANNGSSf DSTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vo4l1vCHKCU5srGRUHw3fDZ6pTr9XXs+8HMxxyEgJRc=; b=Clv+jfXToI2FVHuGUZtCAVHD8Lbwgsm8n2sC5FUvIDKmI8R2aUGJQqeie6mcNJKduU +LayHkU+MAM0dkrsPBKaLvZPVurjBxjd2kfdN/2lyWd+I2DTX8SnWKklgjmxiDAecnFm J6GRiC+w5Tiw0B/TliAhPCCCIavL4B/5TIwb2oFf5t/z2UaQx1xYmDbXe0Svl2ZGi22l gyuw4xS6kGxz82BkIFyGNFHKQPBNUb1rkj396oGOBWJExLPeIxNJ6A/v0rmmYILscYhY 0UeCEPgDzQS/I2vTDsY2fjIcmXe1MiiBiFaUIGPscAx71O9NkfRLmp/HTk3ca0ldxHzI BrXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si2436429edu.222.2021.04.15.06.49.44; Thu, 15 Apr 2021 06:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232993AbhDONtO (ORCPT + 99 others); Thu, 15 Apr 2021 09:49:14 -0400 Received: from 8bytes.org ([81.169.241.247]:35046 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbhDONtE (ORCPT ); Thu, 15 Apr 2021 09:49:04 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 6A328387; Thu, 15 Apr 2021 15:48:40 +0200 (CEST) Date: Thu, 15 Apr 2021 15:48:38 +0200 From: Joerg Roedel To: Yong Wu Cc: Will Deacon , Matthias Brugger , Robin Murphy , Tomasz Figa , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Krzysztof Kozlowski , youlin.pei@mediatek.com, anan.sun@mediatek.com, chao.hao@mediatek.com, Valdis Kletnieks Subject: Re: [PATCH 1/2] iommu/mediatek-v1: Avoid build fail when build as module Message-ID: References: <20210412064843.11614-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210412064843.11614-1-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Signed-off-by: Yong Wu > --- > 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.