From patchwork Thu Feb 22 23:16:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elliot Berman X-Patchwork-Id: 13568311 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA8BAC47DD9 for ; Thu, 22 Feb 2024 23:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ufNIL32uO3iw03gb+ilby1eJxKcziEx126fwshxID2Y=; b=TiE2pWIWf7nhyP vI/xYEmlfpNHpi2RTVPlvQlgatir6+uB9LbMBpBxVd6UbpMbUrY7XwNxh83hCLMzGnsHOu79WRczo 4iLPQICim0jKAzWeRk4Suq3sZfX1xvyu4nOTvx4JT0wuxLegGJS0+TvvuL+Rsbz1Eddh4C5Ch5Z5C OL+LOe4MZJEVaGExZ6Wa3Mp0lhtpEJVEZKBZdo1iziQlcftSG2zS1TTPHvjFgH6V0aL4UvHCV1qZW bWnSNCvdnca89IJC4sRidISw7E6GSFMf7GEDDNKNeOpVm069Paucpj54kKdgmr5GKc0DplqRKpYxn ezWOAeV/hj94GLzxVjrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdIQO-00000006yYY-2TGR; Thu, 22 Feb 2024 23:24:20 +0000 Received: from casper.infradead.org ([90.155.50.34]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdIJI-00000006vsI-1iTN for linux-arm-kernel@bombadil.infradead.org; Thu, 22 Feb 2024 23:17:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=CC:To:In-Reply-To:References:Message-ID :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=a8k7ZP82tn4JVJwW+w/m7k4EoKpoY9RGrzHrrV6tQxc=; b=NH+YpyX4fJ3dNZeTg/B+zayWan kn5mXVWtJkIZ0tHDbldTs05oYnyxSf1OSVUAgyiUaygBcxqZg1DLn00461e7kipFBE0qbgS8gTP28 ODXTxE8y63tr5i9wYhoUl1Ci+7uas5HbSX6TLuKVFsCDlPQ1OlsljGZNWCVli1SvM69MIUWEQ/6a6 tBWZQ2LOcsTzWJAP8dpivu4BUNBXtO11ev/ug7V2/ierkACLGUpLnPtQnUa8gZ1uApZRik7gw+2+j RoSIhBTA1UnYZatOe4AyHZXic608HSCNmTfDY8x8ZEZaDL3QPpYS8Q8aA6bCHfHvbU0fyV3MfuoHR SvRwSvmw==; Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdIJE-00000004zZi-0e4L for linux-arm-kernel@lists.infradead.org; Thu, 22 Feb 2024 23:16:58 +0000 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41MN1D1E020603; Thu, 22 Feb 2024 23:16:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=a8k7ZP82tn4JVJwW+w/m7k4EoKpoY9RGrzHrrV6tQxc =; b=G8zLuS0qr6d4lZUoE5CoDx+OQ1H30bu9JjA/DBQ4WHtPH6Y32oBCFeCUzqq aRECHJ8Nnre0wYkRag/a/bnHEq5di/ZfvzIFt40zo/It/7L/Yo3lf0a0UtEAs7pZ SbKN6b5H8bqSMLS9E5/YsoEbDzUgXoHRkwYC5+EJ2/mG09No+OQvpbVvPio+rs7L 4NoKBtTgW+NDPapXhOFi05jweADI/zkiqUBOSN6yH8dLtghTmF9WdFTRMy56NPQY Vv4A92LdxJ2FBQwkeDpNGUF12C3AqSq78fBdwbCBnGZY3F0qL4c9LQ2ISi/HfvhP Begi0gYT0HyrwE02SVJkWZOk9xw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3we4dq17sq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 23:16:38 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41MNGbaG027727 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 23:16:37 GMT Received: from hu-eberman-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 22 Feb 2024 15:16:37 -0800 From: Elliot Berman Date: Thu, 22 Feb 2024 15:16:41 -0800 Subject: [PATCH v17 18/35] mm/interval_tree: Export iter_first/iter_next MIME-Version: 1.0 Message-ID: <20240222-gunyah-v17-18-1e9da6763d38@quicinc.com> References: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> In-Reply-To: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> To: Alex Elder , Srinivas Kandagatla , Murali Nalajal , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Philip Derrin , Prakruthi Deepak Heragu , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Konrad Dybcio , Bjorn Andersson , Dmitry Baryshkov , "Fuad Tabba" , Sean Christopherson , "Andrew Morton" CC: , , , , , , Elliot Berman X-Mailer: b4 0.12.4 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: S-X8YH9UOQhwdKZl5qZ08gJqpUzKbDlZ X-Proofpoint-ORIG-GUID: S-X8YH9UOQhwdKZl5qZ08gJqpUzKbDlZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 adultscore=0 mlxlogscore=955 clxscore=1015 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402220179 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_231656_486224_1633ABD2 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export vma_interval_tree_iter_first and vma_interval_tree_iter_next for vma_interval_tree_foreach. Signed-off-by: Elliot Berman --- mm/interval_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/interval_tree.c b/mm/interval_tree.c index 32e390c42c53f..faa50767496c3 100644 --- a/mm/interval_tree.c +++ b/mm/interval_tree.c @@ -24,6 +24,9 @@ INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb, unsigned long, shared.rb_subtree_last, vma_start_pgoff, vma_last_pgoff, /* empty */, vma_interval_tree) +EXPORT_SYMBOL_GPL(vma_interval_tree_iter_first); +EXPORT_SYMBOL_GPL(vma_interval_tree_iter_next); + /* Insert node immediately after prev in the interval tree */ void vma_interval_tree_insert_after(struct vm_area_struct *node, struct vm_area_struct *prev,