From patchwork Mon Dec 24 17:20:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qian Cai X-Patchwork-Id: 10742357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F17A924 for ; Mon, 24 Dec 2018 17:21:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1228D28B57 for ; Mon, 24 Dec 2018 17:21:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05DFA28B61; Mon, 24 Dec 2018 17:21:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEC9A28B57 for ; Mon, 24 Dec 2018 17:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725823AbeLXRVS (ORCPT ); Mon, 24 Dec 2018 12:21:18 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:34511 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbeLXRVR (ORCPT ); Mon, 24 Dec 2018 12:21:17 -0500 Received: by mail-qt1-f194.google.com with SMTP id r14so13524968qtp.1 for ; Mon, 24 Dec 2018 09:21:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=4OrDwa1rKL98Mft8nlw89p0fxqKHRgZE62ZIu44HOOU=; b=BE5t+fL3uk9qaN1rYqk+9esUmYgln7w8k9hl1bu4t+/2IFpSn8njV+aVHBtz9PwPw9 Heje8Y288sKQAWS+N+VX9T+T40P9hKZntnx8EbrWIMI130evAFMHSkyZUCIM+dDhqhZM PC8lprYQJLoRKJ+hckd9lQmAwpxty7SLybiIf23SEsKB47iutzj+Ji0A/RWRssa67PsJ Q9s5uOTz5nrxMO9NjlhL6jqHFl9B4pY/PxfLxLshUmw4ewLCiDN5q0vBEs9Ol9WjLBbo dwLEmdIfydZlBGk7Dk1H6A+ksNBs33EU4VHDQKuVz2IhUFeG4fXWx+yVk0Q4C4OhOhdl 9VWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4OrDwa1rKL98Mft8nlw89p0fxqKHRgZE62ZIu44HOOU=; b=gfzRGN8GZQVjEoBhl43CnzuoMa8hhltMGDLLloaY6HqocQqbL1GJeMvLujEkzTmRxX FJYFb0+CutoC30CRW4O3oz+r6x42J327yv94XWF/OrWDCSPISm8FTFEDc+3u4C/gba8F 90n57g/3i0u03GmjUufSykk1Rhm4jlKf+deu55cylAVKkreNzlprtgf8Ey/mOgq/4J4P MMBRdo2/MU0HsuYNEGsofkTEY0Vzvfvp+DHzZ4VX6TxGkDIge35NFuzqeSADrb+P8EHm b6UM/acwvNfAD4famKbx/Ew6JMdUALqM3EDaO3s1gpNkaa8VSsL0KCs4XXYNtCP49JxM i40A== X-Gm-Message-State: AJcUukdJ9+0b5rxTwzKvwsZGoypMLtWhhDJbfcZH0RYBP1dPeBxIzvge BMbpXfv8j8UP/9cU30W1fvvyzQ== X-Google-Smtp-Source: ALg8bN7Lksil31fM2YaXGu7o54Uw6mf4fW9sbZlF2I9IEv4FmCEnpgebIS6HgpeX+vsvrh9+7NJCyA== X-Received: by 2002:a0c:e010:: with SMTP id j16mr12706478qvk.111.1545672075477; Mon, 24 Dec 2018 09:21:15 -0800 (PST) Received: from ovpn-120-55.rdu2.redhat.com (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id d45sm11751553qtd.56.2018.12.24.09.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Dec 2018 09:21:14 -0800 (PST) From: Qian Cai To: sfr@canb.auug.org.au, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, sudeep.holla@arm.com Cc: linux-acpi@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH -next] ACPI/IORT: fix build when CONFIG_IOMMU_API=n Date: Mon, 24 Dec 2018 12:20:58 -0500 Message-Id: <20181224172058.56206-1-cai@lca.pw> X-Mailer: git-send-email 2.17.2 (Apple Git-113) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP rivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' token { 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 Acked-by: Hanjun Guo --- 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)