From patchwork Wed Jul 14 22:24:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12377969 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73FBDC12002 for ; Wed, 14 Jul 2021 22:24:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 20C20600D1 for ; Wed, 14 Jul 2021 22:24:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20C20600D1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7567F6B00C5; Wed, 14 Jul 2021 18:24:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72EB76B00C6; Wed, 14 Jul 2021 18:24:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57F7E8D0003; Wed, 14 Jul 2021 18:24:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id 34A0F6B00C5 for ; Wed, 14 Jul 2021 18:24:58 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 1F2E818479699 for ; Wed, 14 Jul 2021 22:24:57 +0000 (UTC) X-FDA: 78362624634.23.64D3195 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf29.hostedemail.com (Postfix) with ESMTP id CA785900025A for ; Wed, 14 Jul 2021 22:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626301496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HoJrf5XHMT1foDa7QiH7gGocyne+rxUVzp3LYIPfb1I=; b=JxQ+wQa2VE3rgN3et7fv9q5iTKkItghwjzXB0R4nm/1dTgyQ7c/3O5ZiwYy6PHwYKFGLMi XZWRSW5MsglUrXJgiQ+SIC/XugCnj5IDeP3N0/anblvHqWznV7XjJZKT+GkQDo6kGI4AyX SO+i500LzmW5BtUX5I5YPHQywe5XpX4= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-570-GbsGxMcmN_6IfO5dKno5ig-1; Wed, 14 Jul 2021 18:24:55 -0400 X-MC-Unique: GbsGxMcmN_6IfO5dKno5ig-1 Received: by mail-qv1-f72.google.com with SMTP id bk10-20020a05621406eab02902d1aac9c421so2722513qvb.1 for ; Wed, 14 Jul 2021 15:24:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HoJrf5XHMT1foDa7QiH7gGocyne+rxUVzp3LYIPfb1I=; b=JUqulJHUCc3HMPD/dUjkBfBHzcm1IhnJ+Axfv0sX/ikSOd8q5QPcOP8ufbnTvn3Hn/ LDslGLEJfEQujXchcHoQrBFxYegUr+IwpyWiS7XNpgWwJKEcC3d2eS13fqiUHbygHQke MJato2PBwzZ6VrrvM4H8Uy74bivUWGaBs7J4nIzKnCWas6iR0EsES+Mfw3whQgO9eAuj OSJNU0SbFD9Cp17O3Tds2YJYaQG9oq3jpUPVRmY8R5mLS4WO/u5cyifZmOmtfP8maxUj EAjXCyme1Xlv+ltrLqoxVjV7fI0kYca+K3TZ9bKOg8HN/2DVKn2IPi1rlApTIJXHpCLY nbjA== X-Gm-Message-State: AOAM531rV0chk6La7+VbeOcnr5q5vkhLGqQQ/IFddpBGt4cLni9JX+8t WK8mDmKEtIz+cbSZ6tqLIbyA+Gji9FMbGgyXV70ehawNRoHFjtIoUYuOqdWPtC+Sr3MbQ9xlu6/ sM2ASWJ8SRPRnqOvVlZ60KVRZ/FsSoi1WlFLOLY/YNhd8Dadjdpy9fnuzbraB X-Received: by 2002:a05:620a:99b:: with SMTP id x27mr241783qkx.226.1626301494414; Wed, 14 Jul 2021 15:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOW00e58jO9AZD7fw0CnPfeLPUWJrjUqdtrilL2qz6WVvPrJUbhPG7ghrnW4FLQUsYSIj/ew== X-Received: by 2002:a05:620a:99b:: with SMTP id x27mr241746qkx.226.1626301494149; Wed, 14 Jul 2021 15:24:54 -0700 (PDT) Received: from localhost.localdomain (bras-base-toroon474qw-grc-65-184-144-111-238.dsl.bell.ca. [184.144.111.238]) by smtp.gmail.com with ESMTPSA id f36sm1288702qtb.40.2021.07.14.15.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:24:53 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Mike Kravetz , Axel Rasmussen , Miaohe Lin , "Kirill A . Shutemov" , Hugh Dickins , Jason Gunthorpe , Alistair Popple , Matthew Wilcox , peterx@redhat.com, Jerome Glisse , Andrea Arcangeli , Mike Rapoport , Nadav Amit , David Hildenbrand Subject: [PATCH v4 15/26] mm/hugetlb: Drop __unmap_hugepage_range definition from hugetlb.h Date: Wed, 14 Jul 2021 18:24:50 -0400 Message-Id: <20210714222450.48840-1-peterx@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210714222117.47648-1-peterx@redhat.com> References: <20210714222117.47648-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=JxQ+wQa2; spf=none (imf29.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: CA785900025A X-Stat-Signature: w6ostrs9gf4qf6y3znad5tg135uz4buc X-HE-Tag: 1626301496-562389 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Drop it in the header since it's only used in hugetlb.c. Suggested-by: Mike Kravetz Signed-off-by: Peter Xu Reported-by: kernel test robot Reported-by: kernel test robot Reported-by: kernel test robot --- include/linux/hugetlb.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index f7ca1a3870ea..c30f39815e13 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -143,9 +143,6 @@ void __unmap_hugepage_range_final(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long start, unsigned long end, struct page *ref_page); -void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma, - unsigned long start, unsigned long end, - struct page *ref_page); void hugetlb_report_meminfo(struct seq_file *); int hugetlb_report_node_meminfo(char *buf, int len, int nid); void hugetlb_show_meminfo(void); @@ -385,13 +382,6 @@ static inline void __unmap_hugepage_range_final(struct mmu_gather *tlb, BUG(); } -static inline void __unmap_hugepage_range(struct mmu_gather *tlb, - struct vm_area_struct *vma, unsigned long start, - unsigned long end, struct page *ref_page) -{ - BUG(); -} - static inline vm_fault_t hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long address, unsigned int flags)