Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7101878ybi; Mon, 8 Jul 2019 14:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqya5eWvtB9IBONJ7tCG09gcjOsoZPt93JdsmOoz/EG9XcArhCWlOUaDipOpCePUwwdssa5E X-Received: by 2002:a17:902:f082:: with SMTP id go2mr28743500plb.25.1562621852788; Mon, 08 Jul 2019 14:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562621852; cv=none; d=google.com; s=arc-20160816; b=EfpPxbOWtjxMxjS70z6kKYWziXLRdFogpdYCSf+wpq9p+u33HKOqHFHdDkda8kNvef 23F3bHa/zhM2/hlQFJamzITE0uNV229yZuxd6yMpRVw7mba59On56q95bdJFviYbNAoX /GM3fsSiW56bQ0klQqrNRQ+mejmXjIRxqigFYqL3rk5tJ3IFHBsF5l65z/k58dV7DGs9 MEdvukI7RejNwUDdCssV8m8DZg0CpA7p6NMNL4IQEFaE0+FSlxRwR5Sw1ZzmsHjps/XM C0zcqQTTgsBbV/ohzItpnCEypoypld9zZyeR6G36ocYjJuA3iUma/9ufJ9ZaqXPwKMsj 36Pw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ly5Z3qvOJBqkP1cJemHm5wyxSxulK6SB6aYDsbfv3k4=; b=vX6BbWENRfPNpPeTXpbTh+0A542PeMhjjqcsHqiHyR4alCcWbnavMGoCj/IST6VNTQ Z3/dMy/LggaVEk79GGD7CDgBoxlBM4wIzFMEoaMQsuyDVEnA/hx1ocSzr4bSsjvFaGo4 UZSO7i6WiBnA8dNYXgVnsrwBhOimPrk5FNMTb3BzlfrsgP473vqI0twISzFuC3JnIpDB wbzH2yIj1x9svZoSvZ7nSCT0S22BEAP8jHF9XLYKk4HBEQsRetil0BeSx4UG6cOJQFQA Rc1H7FjJT7j7xT5NrTB+QdnyZx6eTzJY1L47ZOzLbV3CJqtenyHmNN1085AoUEGF+1cx WngA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Wpj9X/Rk"; 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 b5si637585pjo.26.2019.07.08.14.37.18; Mon, 08 Jul 2019 14:37:32 -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=pass header.i=@kernel.org header.s=default header.b="Wpj9X/Rk"; 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 S1732819AbfGHPR2 (ORCPT + 99 others); Mon, 8 Jul 2019 11:17:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:40726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732790AbfGHPRZ (ORCPT ); Mon, 8 Jul 2019 11:17:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A5C6C21707; Mon, 8 Jul 2019 15:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599045; bh=HQzwS0w3Prp2h1SScAgw7qsC0Aw7VqIFeQWKRx99Qn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wpj9X/RkP5yoZesjOXkkOzaY3ilDInXpBdvp3DWNXvWJepIBasM6+VbYg/d77h4oE 4qbj//Nt/Z9Li+vII2mxU3cmWxJ1muvQ4fRqsnVWsR9gtC/HjQiAKyhpv9jKUZmNeP mhyHBB67xBBnPJ7YdFGDTPvW5+/8KV6dRnjyWzHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry Reding , Konrad Rzeszutek Wilk , Sasha Levin Subject: [PATCH 4.4 59/73] swiotlb: Make linux/swiotlb.h standalone includible Date: Mon, 8 Jul 2019 17:13:09 +0200 Message-Id: <20190708150524.450510989@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150513.136580595@linuxfoundation.org> References: <20190708150513.136580595@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 386744425e35e04984c6e741c7750fd6eef1a9df ] This header file uses the enum dma_data_direction and struct page types without explicitly including the corresponding header files. This makes it rely on the includer to have included the proper headers before. To fix this, include linux/dma-direction.h and forward-declare struct page. The swiotlb_free() function is also annotated __init, therefore requires linux/init.h to be included as well. Signed-off-by: Thierry Reding Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Sasha Levin --- include/linux/swiotlb.h | 3 +++ 1 file changed, 3 insertions(+) --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -1,10 +1,13 @@ #ifndef __LINUX_SWIOTLB_H #define __LINUX_SWIOTLB_H +#include +#include #include struct device; struct dma_attrs; +struct page; struct scatterlist; extern int swiotlb_force;