Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4686344yba; Mon, 20 May 2019 01:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrJFaZ+mNlenmS1HZsdBwrd4wtSHk8pED55W5QgQwJpzFkatdOvbffw0tuAB4fdG6Checl X-Received: by 2002:a63:c24c:: with SMTP id l12mr74753926pgg.173.1558342154326; Mon, 20 May 2019 01:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558342154; cv=none; d=google.com; s=arc-20160816; b=CcLzRiy9NwhfwhrMhVCshnSIoJD9XLIDM/n2b8rSRd7llYpLwqUOTf5vVOCErLjYI/ LEvG4JWC362sRiEDXuceHDktQZmFcXw6ui2p5TXf/dDGpW4csmplCUNRNM1iLxhTR/p6 Nic6KPIpgUc82iW1gMau6UHr7gB0htpZlazPhxhJH97HKPmiJ48/TOx8l4NlSh7KdajB F0B8UNDwrOzsRvng5+eNvd1Eu7ftJcLUzMtK/rKwkjRalZlzcOfbynH7L+v8ZvWSXKqh N6+BxLqCSrSgyGyfCVG7Vv6+afNh6nySZjbAcsSC4CoGuJuOuQJ0fzI4e8vwY3xJr66q BDAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/9Eurjn8mYI9ykDjpIHMqWyLxByMSC5LUCM9LONdLp8=; b=kH73DYUwL7JHL1Y9Wn0zNIZUH0SZG3PJiu+Zs62bJdeZ/BJsVmVaG1oZA9degEmdks RLQDNsRxl9HynG6VkTnujM50+7ejt2z/00U5zMAleOl7h9Y5lp3H6wvTqs/THf1b3cwC w7ZzwbWoRvAbgC2Onhew4g3YAcUeZaFCcjYQW75lI4vGncnE2dHfQ0jNb/hFVq/pCoP1 6L3psZqtwLj2NaQNksyaNmxLiXHoSRiKOkLDhA6oj6DPcmRmLMHa9gYBXIJdMXP0rQmA /eMxRh2lW5W0MrEmIvkPFZYGC2gkgjkZI4BGxPJT8WwDFWOY2zCAm4pI/eJCnP2d6/Iv YK2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=POWy8Es1; 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 8si17340110pgp.80.2019.05.20.01.48.58; Mon, 20 May 2019 01:49:14 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=POWy8Es1; 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 S1730733AbfETHau (ORCPT + 99 others); Mon, 20 May 2019 03:30:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbfETHat (ORCPT ); Mon, 20 May 2019 03:30:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/9Eurjn8mYI9ykDjpIHMqWyLxByMSC5LUCM9LONdLp8=; b=POWy8Es1W6eon96V2y01I6cCYO tsm8fYNy6kFF0GmoFbV0Sq+eYu6OhQnu7wxd2QX2THvftdj+bfMiunwPCBg/iO538CR9CDJ022o8f uz38u7IlQlr6u6il7aEL4Z1YviGfSZIExycX2Avh8kZXhtjfT6Esx85PHESAA9uT4NjulQoSHBNyZ Jh/DyM5iHdyNMn3f6HpJNJVRMlHxIMmBYm1E0Wt4UfOyyBoXl1CNms4Wx16fufNO45yJGmhqpiIq2 VgiAkpSlqSWSVJi4ivsjOwnwtT4Ec3Obv/4FI5ADirIhgKjTY446M13zuFLKdDop8BdfE71LAgd8T 7sYc1Z9A==; Received: from 089144206147.atnat0015.highway.bob.at ([89.144.206.147] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSckv-0003kE-1p; Mon, 20 May 2019 07:30:45 +0000 From: Christoph Hellwig To: Robin Murphy Cc: Joerg Roedel , Catalin Marinas , Will Deacon , Tom Murphy , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/24] iommu/dma: Cleanup dma-iommu.h Date: Mon, 20 May 2019 09:29:26 +0200 Message-Id: <20190520072948.11412-3-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190520072948.11412-1-hch@lst.de> References: <20190520072948.11412-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need for a __KERNEL__ guard outside uapi and add a missing comment describing the #else cpp statement. Last but not least include instead of the asm version, which is frowned upon. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- include/linux/dma-iommu.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/dma-iommu.h b/include/linux/dma-iommu.h index 476e0c54de2d..dfb83f9c24dc 100644 --- a/include/linux/dma-iommu.h +++ b/include/linux/dma-iommu.h @@ -16,9 +16,8 @@ #ifndef __DMA_IOMMU_H #define __DMA_IOMMU_H -#ifdef __KERNEL__ +#include #include -#include #ifdef CONFIG_IOMMU_DMA #include @@ -86,7 +85,7 @@ void iommu_dma_compose_msi_msg(struct msi_desc *desc, void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list); -#else +#else /* CONFIG_IOMMU_DMA */ struct iommu_domain; struct msi_desc; @@ -128,5 +127,4 @@ static inline void iommu_dma_get_resv_regions(struct device *dev, struct list_he } #endif /* CONFIG_IOMMU_DMA */ -#endif /* __KERNEL__ */ #endif /* __DMA_IOMMU_H */ -- 2.20.1