Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2597107imj; Mon, 11 Feb 2019 05:39:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IZcBdq02hgW9cbk2ro+1OKI/LHhM3Y3sZaCQXXehYW48a5TDcR6BsQBOjhNcKLUXxjxaBQJ X-Received: by 2002:a63:4b60:: with SMTP id k32mr17401811pgl.186.1549892356631; Mon, 11 Feb 2019 05:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549892356; cv=none; d=google.com; s=arc-20160816; b=wtkzQsKjx/ZxJOnWFTcNcoe2HHsemiOX8bycQwqKvAlC1VqkwcaHnU/Z0bYBcW6cL6 ZXp9ieyPJ/5T5Q6Y/AetnIFblC+Y3xME86BvXgsDk9wkohNxhxFNZ4ctOmymID2pAPzF hrAI6yelWNjpuEU3CCGQXeTtRnW04RP4w5U9C52bAS0RcktLEabR5vG4pD9L/kefU6su LnOiEokUdhLoIZ1m22cqOq0Ds3JL0x8X1rDtlRBYlcrj8wtwfl+6kG8YBSwbjbPyFwZn z4PTFUeQSf3H9za9GBHyM61fzo0tpPbeZFO/VrwlAUO3XLq4iFnI7KKnHSZOrBSYlfRN Xepg== 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=RtUMP0ioQKVTbDsGoLpOuoc2mofGUXunvDSMOETYOi0=; b=KCR/AaWSXkUOf/9ztyDQuuMH8iSCFsT4p1UfdWmq6t6dsJXAZ6wS3jLjvsbwWsUnGe L8m121hl/ukKRQi3OuGBpjQuMigb3yLejMS5ZNw4DOZwO3649ne8YwbETEzkOb1Kn+aU kwfnK+PR3kCHBSIRMEnrr68jkyoPiHEj1WJj5tZH7C0Hc8Od4h0/I6tefH0DpFxwYXAQ tgxj6MOuG5imGjpZ3DttJm2WUIyD0aq+u2IZlmz3M2QwVmlN8MBk7Y68i45lDt9Uw5tZ 6W0mPOG+X5hGrysi5HIFB+zvRRBeyxpr1IdGsWx1weLgkHlLy2RawsOrlD5r8IvmKcae FtAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KyJHQS2a; 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 g2si10178356pfd.200.2019.02.11.05.39.00; Mon, 11 Feb 2019 05:39:16 -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=KyJHQS2a; 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 S1728078AbfBKNgT (ORCPT + 99 others); Mon, 11 Feb 2019 08:36:19 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46826 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727639AbfBKNgS (ORCPT ); Mon, 11 Feb 2019 08:36:18 -0500 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=RtUMP0ioQKVTbDsGoLpOuoc2mofGUXunvDSMOETYOi0=; b=KyJHQS2aLUw3l/NeJZ1nbJrTY9 ergNxxv6WxBuYrgQD6UFA2eUOQQarcR/YwySI+G1LdyhJmdf2Eok3SwkL3x1B2dLo0Uh3R8Z6z63w /99HR25oSLZ/3Uj5N0osMhccCJx9ucO5yzDp3fxC8WwhA3ZmBHbVwfqRMBX7HkzgUsprNkwCSAVJ7 iVp/6jBqL37RuO+NlEyXSDCB6W+HcocBO/DDlgDWDNH0ZVlK8kLIpLWNhbaVTWL4CMUGK8xRWwH+6 +C0qWqwMbxwY3Q7GxxzSUtdoNs3liZJkHNvdUkQx7DnQvxf7UCgNH4a8kH/gZy1pWdDEGJFkv3sWS l654rSOA==; Received: from 089144210182.atnat0019.highway.a1.net ([89.144.210.182] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtBki-0008NF-1C; Mon, 11 Feb 2019 13:36:05 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org Cc: Greg Kroah-Hartman , Lee Jones , x86@kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/12] device.h: dma_mem is only needed for HAVE_GENERIC_DMA_COHERENT Date: Mon, 11 Feb 2019 14:35:44 +0100 Message-Id: <20190211133554.30055-3-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211133554.30055-1-hch@lst.de> References: <20190211133554.30055-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 to carry an unused field around. Signed-off-by: Christoph Hellwig --- include/linux/device.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/device.h b/include/linux/device.h index 6cb4640b6160..be544400acdd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1017,8 +1017,10 @@ struct device { struct list_head dma_pools; /* dma pools (if dma'ble) */ +#ifdef CONFIG_HAVE_GENERIC_DMA_COHERENT struct dma_coherent_mem *dma_mem; /* internal for coherent mem override */ +#endif #ifdef CONFIG_DMA_CMA struct cma *cma_area; /* contiguous memory area for dma allocations */ -- 2.20.1