Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp691231imm; Wed, 25 Jul 2018 04:39:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcUBjdnaR4rVYLuzU0uhWcd12WXwdZ/1cahFC4lYM6Daxruq8l88hr4dusWFtsCO/XONvxS X-Received: by 2002:a17:902:d692:: with SMTP id v18-v6mr20938703ply.59.1532518769033; Wed, 25 Jul 2018 04:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532518769; cv=none; d=google.com; s=arc-20160816; b=EhhOGdS4PaT6yAzRm6F9yV/V54BvCLTt8WooF7faO74aNzCTjjgYNJtAhhWfUmQK3k l4l7PiqxQdfNZ2s3h3I+itPesE0VTcYtgWKNXDGl4it9432CvG+qPsIglRTCqP9l6b93 szEzSMAZSuTpBXqvWqBYzQ0I7c0XF0wZmWESVntMSWupiY5Mw944uMQeaKmYF1Xc8YX/ 2Gm52A/zw9Q8GhyIt98ksLLbiUIAn3WLbcJWUM+RqgWZ2ocQPkqxKyY8jV4WHIY3ii4p 4PJRdZghC+0PifROK1EEWiID3BWuBvGkcZo/USlLsHbYrWKeX++OglWwO/AUvaoblG4h GyRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SiNG9uk2Fm1Y8AilLDJsQ+SucfVMvTyV5FkdWQ1r70w=; b=uwk8xCmszYWxFeFBxGNQlIlHMj5Vn99C0/M6gw5ZXKQEE3SoaGLKmpBatfEjl3L/BM 5VnIEDOUPpOP15fEHF4Fpu8PeESAy9iyKhlAKFWI0rOHw0WugCqqoyqVQQTSn18yl5Mh uHUTYs+dXxZGVWGPCMUw1jrJc3A0liFODz3ISSDnyLcH1VK/lyWvxUZo0Qu1xmY7sAG6 sMjiyAQeXMarHKwdUnvCc5/lDqy8AJuuX/QRu+fc5p9LdYYGoaaAQXEOGEhmBtWyh9Qw 9CbKItAkyW122Z359iTYmsivtT7aRbw1wYX0drrVE5/a7VAzjFofZf6i49abzhmhuBSM O1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="MgGL/qTl"; 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 p14-v6si14332362pgd.306.2018.07.25.04.39.14; Wed, 25 Jul 2018 04:39:29 -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="MgGL/qTl"; 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 S1728994AbeGYMtf (ORCPT + 99 others); Wed, 25 Jul 2018 08:49:35 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39572 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728942AbeGYMte (ORCPT ); Wed, 25 Jul 2018 08:49:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: 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=SiNG9uk2Fm1Y8AilLDJsQ+SucfVMvTyV5FkdWQ1r70w=; b=MgGL/qTlZdO0swlXoRdoCj0Gj PbzoMGPEcCVpqCkT5rMBJwlHFdlNeuRcljpVuu1JhSABIJavaXbCkdKq00Z+ZoGbqnBIXGMNThgIy ztDN8ZZHkCP08UYmeyunT4UwTPb1xWeh5GjpzQbPO54LKwS+ImgrePDvRpTzm1rUnHXpx+pMx8PN9 9Rra2zWck/IvwTdDhbqqIZ2gvHGyoQ+429C1beD+4IciECTBzJvApasKj9FuEPY80MpJUPLugJvhn kcVrNYPQ4pIQ9GIuEgHxKEQkfGCxChNONqaq8vBhi1BpunY1pyZFkEZmBxYwubVVVuSzcNalolopm xWMk5Bjng==; Received: from clnet-p19-102.ikbnet.co.at ([83.175.77.102] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiI7U-0006om-UR; Wed, 25 Jul 2018 11:38:17 +0000 From: Christoph Hellwig To: Konrad Rzeszutek Wilk Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] swiotlb: mark is_swiotlb_buffer static Date: Wed, 25 Jul 2018 13:38:00 +0200 Message-Id: <20180725113802.18943-5-hch@lst.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180725113802.18943-1-hch@lst.de> References: <20180725113802.18943-1-hch@lst.de> 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 Signed-off-by: Christoph Hellwig --- include/linux/swiotlb.h | 1 - kernel/dma/swiotlb.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 965be92c33b5..7ef541ce8f34 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -121,7 +121,6 @@ static inline unsigned int swiotlb_max_segment(void) { return 0; } #endif extern void swiotlb_print_info(void); -extern int is_swiotlb_buffer(phys_addr_t paddr); extern void swiotlb_set_max_segment(unsigned int); extern const struct dma_map_ops swiotlb_dma_ops; diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 03016221fc64..5555e1fd03cf 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -429,7 +429,7 @@ void __init swiotlb_exit(void) max_segment = 0; } -int is_swiotlb_buffer(phys_addr_t paddr) +static int is_swiotlb_buffer(phys_addr_t paddr) { return paddr >= io_tlb_start && paddr < io_tlb_end; } -- 2.18.0