Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1592286imp; Fri, 22 Feb 2019 06:47:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IbxHZPDzSbFbb4pdVJKaR/siwuOoq/OMEuVp0Lhn/O3Ifm9YTZOAjF7JnOLNYXmoSrCUhhV X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr4520107plc.211.1550846832866; Fri, 22 Feb 2019 06:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550846832; cv=none; d=google.com; s=arc-20160816; b=h4jGppD6gqe3/lwz8QYsYjFvk5UdjuAZi1n4err+Njvim9elePUG4KQ0Y/X71HBkZy sL/NNXjqB7O61JjiFYboGNsoiTOMd5rtZH7X9T+YWZ+8+v4B8b86muwH86MFUAL3rn3f pAfk+Klrq1pYes2IcrvS/ZZZ3wV362YXKC/ywUIz2u0kLIN/0DWcBrk8AU+hQBaq39/d ep3wLBgUVuKDFlZEpam7Jt9lxpNNKAnlo+03pL4FGkuiCapkACrClzjVV2GM/QnWGs9t qi9ByTbgbA7U2paJtCadAYZEgu2vVnnoqzdzFLI70jvBX2iGXu07ONH8ViS2hiRHu6Vy TnCg== 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:dkim-signature; bh=JzqUHyCrNh04EqJQcVSQhI7Qsm8u5DVvpzN7Q1oiZ8k=; b=heoXrsAKvXM7b3iCgsJqi7jcgNd3RDPO0RRHYojimKzBdY70urIMZMWiHx4wd0W3pt EG1uq9m4ZRF6963+1zFzf+iJ8+pQOvY5lYPC9TnkVbEfX5/M8SdPKPptA59PKXVoyvDv CtLSLv54NCIDsnIPIhxBavWO9ulAS90TM3pTLC9WXzyBCZYi8osAzaYgsHd8FkW78JIW rDR112HiaT6t9vo53CG0gWefLNu1AJNlvmxq6TDbojI+LXqdcvoWfKiG4ouuncf39jIu lvjcnJhtD8+q11z/SlhnpifcetaP8ZeZaWaIgFPYmlurHu9NPhJOyQa7NcRC4A9uNnPZ kwPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mTzntWJI; 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 d13si1461775plr.403.2019.02.22.06.46.56; Fri, 22 Feb 2019 06:47:12 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mTzntWJI; 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 S1726599AbfBVOqe (ORCPT + 99 others); Fri, 22 Feb 2019 09:46:34 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49208 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfBVOqe (ORCPT ); Fri, 22 Feb 2019 09:46:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=JzqUHyCrNh04EqJQcVSQhI7Qsm8u5DVvpzN7Q1oiZ8k=; b=mTzntWJI0SJeZcMrBaLvd0ldK J3HnINVu5/mc5x9BqnG7I4lcr+Vp8LeIX8HP9upZeAQDZQrnw1KDs01TRLGmM6J5me2aq8pTcq7a5 +suqPvsPqHv7GYYgNMp/iYNmuSwTz3H3EoopeAOmdbxN2WEJfhujGNfEpoPfsuKg4q2b6+ZIPvhMu fH1Y3jY+jWQ8xZMOKOMu5pFzuxDUu9s7D7yDHvXB6uyX+sm4Pq/o5N/kY7Ax/3xKQ5aF/0PMSvDQH yHWsRfz3HudWeyt90N8E7puy66pRc7ZScHbwKJPkivPokcOVt6FYDL96eahcmfmOWF8Mz6CbxrB35 ft8COwoBg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxC5t-0007yd-Az; Fri, 22 Feb 2019 14:46:29 +0000 Date: Fri, 22 Feb 2019 06:46:29 -0800 From: Christoph Hellwig To: Thomas Bogendoerfer Cc: Ralf Baechle , Paul Burton , James Hogan , Lorenzo Pieralisi , Bjorn Helgaas , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 08/10] MIPS: SGI-IP27: use generic PCI driver Message-ID: <20190222144628.GA10643@infradead.org> References: <20190219155728.19163-1-tbogendoerfer@suse.de> <20190219155728.19163-9-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219155728.19163-9-tbogendoerfer@suse.de> User-Agent: Mutt/1.9.2 (2017-12-15) 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 > diff --git a/arch/mips/include/asm/dma-direct.h b/arch/mips/include/asm/dma-direct.h > index b5c240806e1b..bd11e7934df1 100644 > --- a/arch/mips/include/asm/dma-direct.h > +++ b/arch/mips/include/asm/dma-direct.h > @@ -2,6 +2,8 @@ > #ifndef _MIPS_DMA_DIRECT_H > #define _MIPS_DMA_DIRECT_H 1 > > +#include > + > static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) > { > if (!dev->dma_mask) How is your mach dma-direct.h scheme going to work, given that we already have non-inline declarations of __phys_to_dma / __dma_to_phys in this file? Also this really should go into a separate commit, and we should either have all of these functions inline or none. Having all of them out of line seemed a lot saner to me to avoid all the mach header mess. Also there seem to be a lot of randomw whitespace / brace cleanups in this patch. Shouldn't those be split out as well?