Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp930756imu; Fri, 4 Jan 2019 09:42:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7bVZk37UGiISp8Gf1EoowAHN77iYusesrSwBqHyRpSEHxQnkXazT+a00d5zbhqM6cDEYgi X-Received: by 2002:a63:2a4a:: with SMTP id q71mr49390121pgq.374.1546623745614; Fri, 04 Jan 2019 09:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546623745; cv=none; d=google.com; s=arc-20160816; b=f+9c4GbBqpm79kQig23OM5AHRDLwaVlP3axBgsRghMJVC3KYD4gq/dl5Wf146Xee1m YQeiGIpo8afQjW9iQkj+0gY5JRpIBwvVZp2d9IHE0QDDBqXtbBzi7Ao0EIG3ImmorUFW fZ2flJhase0ROYTjwRbDFDN7qMt2HMi0HaiXujHcstTzR6ilCWk1UsZ66d49OGqN7eBH aYHWUg7hMEMezokrgpy3NZlbASStKGBptZ9payOFKqTuxWu6Ui/zenvu3ynwDsMNM6fZ 9j7M+B2hEM75xmE4RRJ/Paw5ix2ffrh9Xpe0T3mjm00xAR8jJecQJcAbcT8r33F/zhxN wWYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z6oQvOqGGjm6Kx4m159sJPBlX4LTlRAO4Fq92wokykk=; b=MTtH/Z2M1eSIEpw5F7RuL1bRac4/Zpzl+SAQt1LvUMjePqjop4qKcY2TtvuE6bRmWC 7zscx9LdhZj1IYAAO5xt3WvhW6uCaYhyaYjoZua8IjtzsSPcap+pYNbGSp9VFZBZq2df RAi0V2Db5IKlGU0L4/pR51hRYROXrn/0jwVEVs1ssURMAD2yHuoFBuz3pZ0lUun9hdEM VP8WLY/7YuPlP64F7CzeK/iABWFEDlUuiiSqPwSFOJbxwcTNAZt8WTmV13nSbl/xcIpr dg7MFE9zuOqf1Wy77ZRjbzPyi4oShlD4TNZZTN0toz0dPxnZD+seis5SorH9GSidAgvI 1gkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si21754081pll.349.2019.01.04.09.42.10; Fri, 04 Jan 2019 09:42:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726904AbfADQRB (ORCPT + 99 others); Fri, 4 Jan 2019 11:17:01 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45420 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfADQRB (ORCPT ); Fri, 4 Jan 2019 11:17:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9865515AD; Fri, 4 Jan 2019 08:17:00 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B4BA3F5D4; Fri, 4 Jan 2019 08:16:58 -0800 (PST) Date: Fri, 4 Jan 2019 16:16:53 +0000 From: Lorenzo Pieralisi To: Hanjun Guo Cc: Qian Cai , sfr@canb.auug.org.au, hanjun.guo@linaro.org, sudeep.holla@arm.com, linux-acpi@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] ACPI/IORT: fix build when CONFIG_IOMMU_API=n Message-ID: <20190104161653.GA18795@e107981-ln.cambridge.arm.com> References: <20181224172058.56206-1-cai@lca.pw> <31c013ad-1261-7ca4-2434-69911d5d2cb8@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31c013ad-1261-7ca4-2434-69911d5d2cb8@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 25, 2018 at 10:44:38AM +0800, Hanjun Guo wrote: > Hi Qian, > > Good catch, minor comments below. > > On 2018/12/25 1:20, Qian Cai wrote: > > rivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' token > ^^ > drivers > > > { return NULL; } > > ^ > > drivers/acpi/arm64/iort.c:879:39: warning: 'iort_fwspec_iommu_ops' used but never defined > > static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev); > > ^~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Qian Cai > > --- > > drivers/acpi/arm64/iort.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > > index fdd90ffceb85..5d29783ee5bd 100644 > > --- a/drivers/acpi/arm64/iort.c > > +++ b/drivers/acpi/arm64/iort.c > > @@ -876,7 +876,7 @@ int iort_iommu_msi_get_resv_regions(struct device *dev, struct list_head *head) > > return (resv == its->its_count) ? resv : -ENODEV; > > } > > #else > > -static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev); > > +static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev) > > { return NULL; } > > static inline int iort_add_device_replay(const struct iommu_ops *ops, > > struct device *dev) > > Acked-by: Hanjun Guo > > Lorenzo, I think this is 4.21-rc1 material if it's OK for you. It is a bit late for -rc1 but I will send it asap, with a proper Fixes: tag that points at the commit that introduced the typo. Lorenzo