Received: by 10.192.165.148 with SMTP id m20csp4110400imm; Tue, 8 May 2018 03:09:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrB7XLU5ehphzjku7dlZVUR0sJhibX16Q3hlf85Q9jdi/lcANhhrYXcGGuRy4TOKlWWeuGk X-Received: by 2002:a63:a74a:: with SMTP id w10-v6mr5602486pgo.109.1525774170999; Tue, 08 May 2018 03:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525774170; cv=none; d=google.com; s=arc-20160816; b=ru/kZg7QtEBsZM9L7QeKbM8vXuJ5wsN2cCeI7M1FH8QeIoByQhCPqCgESawwaBY3Yo fNVtLWPpdZBp+2iUDLBDTNtCBP9cU38k7Wz7SJ6O6LM3gnjOGoD9fK1AyKMbEX76TDOc vRF8QUuErAV/OhU3PU2Bj5Jd+VnCOxW4fHA/ewuvfSyLOGyWOGW1TWohTrTQz2N8l7wC tuU4hefEmZ8XRXzqd7xqMw2bn+78ujgcNCfGbEpS5P1L627l4wguiZHkoHKpEHCd0cIY pTkcrWSDOm3WPD6R81y7Y8+9zWrIboz1oc3cRwrnKbRyPncxq6ThmFdEmKwVieQwj9eJ W78A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=n3h6WIw99yjOQcKEaG/ytD602mmOBJTvBjykQSRrksM=; b=srJOqtYamTtLzuWXeiPnVpQAFNc2MhAAlHc+VA6qj+DvAbZ1dZFMMwnqr3vERvUtqD TVF0LLV1ji58km+J4uYQSQErK05fi7Y6lOFjq80UPW8o5i7O+HGG/fn0Y0CyL4atvGkS vy9V2kORZs8H8sqdvZgOrAWNz496iU6J9K0s6H59Mz8Ldln5eXGvGPqHq5U0pk0SxBMh TfCa+YnfE8A1IzSL1BWgL+UWLpqWW9JvIH0lB2J1pttUNCP0n3a/ziqR6vwOo9pV4L/o Gu/fOquwyAjyYenRYikS38B4LWv8GyEH3MOtLHav36FKrJRd5oGyvXw/p8hQdz44nfG7 +yKA== ARC-Authentication-Results: i=1; mx.google.com; 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 r1-v6si24208243plb.430.2018.05.08.03.09.17; Tue, 08 May 2018 03:09:30 -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; 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 S932102AbeEHKF2 (ORCPT + 99 others); Tue, 8 May 2018 06:05:28 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55336 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754439AbeEHKFZ (ORCPT ); Tue, 8 May 2018 06:05:25 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D17D80D; Tue, 8 May 2018 03:05:24 -0700 (PDT) Received: from [10.1.210.88] (e110467-lin.cambridge.arm.com [10.1.210.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A8513F318; Tue, 8 May 2018 03:05:21 -0700 (PDT) Subject: Re: [PATCH 3/3] dma-debug: unexport dma_debug_resize_entries and debug_dma_dump_mappings To: Christoph Hellwig , iommu@lists.linux-foundation.org Cc: linux-arch@vger.kernel.org, linux-xtensa@linux-xtensa.org, Michal Simek , Vincent Chen , linux-c6x-dev@linux-c6x.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, openrisc@lists.librecores.org, Greentime Hu , linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, nios2-dev@lists.rocketboards.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20180424140235.9125-1-hch@lst.de> <20180424140235.9125-4-hch@lst.de> From: Robin Murphy Message-ID: Date: Tue, 8 May 2018 11:05:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424140235.9125-4-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/04/18 15:02, Christoph Hellwig wrote: > Only used by the AMD GART driver, which must be built in. FWIW debug_dma_dump_mappings() is also called by the Intel VT-d driver, but the same reasoning still applies. This does rather beg the question of whether it's right to have bits of low-level dma-debug internals *only* called by a couple of IOMMU drivers, but that can wait for another day. Reviewed-by: Robin Murphy > Signed-off-by: Christoph Hellwig > --- > lib/dma-debug.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/lib/dma-debug.c b/lib/dma-debug.c > index 075253cb613b..6a1ebaa83623 100644 > --- a/lib/dma-debug.c > +++ b/lib/dma-debug.c > @@ -444,7 +444,6 @@ void debug_dma_dump_mappings(struct device *dev) > spin_unlock_irqrestore(&bucket->lock, flags); > } > } > -EXPORT_SYMBOL(debug_dma_dump_mappings); > > /* > * For each mapping (initial cacheline in the case of > @@ -753,7 +752,6 @@ int dma_debug_resize_entries(u32 num_entries) > > return ret; > } > -EXPORT_SYMBOL(dma_debug_resize_entries); > > /* > * DMA-API debugging init code >