From patchwork Thu May 27 20:23:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12285285 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.5 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,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 BCBC9C47089 for ; Thu, 27 May 2021 20:23:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 615D0613D4 for ; Thu, 27 May 2021 20:23:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 615D0613D4 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 018DB6B007B; Thu, 27 May 2021 16:23:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EE4AE6B007D; Thu, 27 May 2021 16:23:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D856A6B007E; Thu, 27 May 2021 16:23:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0060.hostedemail.com [216.40.44.60]) by kanga.kvack.org (Postfix) with ESMTP id A543D6B007B for ; Thu, 27 May 2021 16:23:13 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3F33F18016699 for ; Thu, 27 May 2021 20:23:13 +0000 (UTC) X-FDA: 78188135466.27.CD48D7E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf05.hostedemail.com (Postfix) with ESMTP id 4F582E005F2A for ; Thu, 27 May 2021 20:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622146992; 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=RoKsIz4q4xSpRNm9hs0BrG9ToefGgP2GtNCOUn+H6ys=; b=Xsn8lpx82oVKpgTDr/uHOxvcMwslY9jnP/WUSQkXVPPcKR24+Wgs2aYpEDxX+M4WyaFLAF nCknWO6G+2NGI2O6UWD54t4GzEA96xlUOvA1K0lBBzmecm74UfPJ5S0y0TxwhR5utynNV3 mISv55U/8Qv+3K0Oj6pLW7IxYBDOoqI= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-302-H68u661VNzSUMJP2AIqa7g-1; Thu, 27 May 2021 16:23:07 -0400 X-MC-Unique: H68u661VNzSUMJP2AIqa7g-1 Received: by mail-qk1-f199.google.com with SMTP id e8-20020a05620a2088b02903a5edeec4d6so1325826qka.11 for ; Thu, 27 May 2021 13:23:07 -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=RoKsIz4q4xSpRNm9hs0BrG9ToefGgP2GtNCOUn+H6ys=; b=CanmYdEwwXLtjddZo6JvFjxXpgWBbo50M7KzwkTMnI/wJIPcnWRpIiaPzTyMnZ5sME fYVxRUG5D2yF6IXp05qLbP9LQd8QYXsb0DNNC+VcQ+JQ65RlbscrBJcqqsmOuON0hrdE RUAhYNmH66gFPmzTt6hrYAoYOl25TKbAMqGhsOFo+FBF3dwS7Ss9aMDl+fCdPABUbp+G dT8ee+dUGe4dciorwnT4Xz+jKC5Dabfh3GJ4NJoJP8vxAyQNhJfUCT8JxIWg4EkK0Ffu sViwXbBGpMHctnszFelnfhM2i3Qn+NaE3/JVyzYnKX2dhVPznKbBMjivgosdPYpTr88p oztw== X-Gm-Message-State: AOAM531fnNk7lkSR7DYI5EAWxaARo6i5hzT66KKH0NuhSY0d+NQeV2pd 5eGzNfQq4fMv7n7pcgWZCdbhslX4oKZeFVbhz6bTkfCYGw+GXWwv3BM05CEtsP+wvNOFzjt9ogu kR2ujTML8xis= X-Received: by 2002:a05:620a:1654:: with SMTP id c20mr356009qko.282.1622146987393; Thu, 27 May 2021 13:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPBMzsCNUZPXEhKlaRCORWI9CkBI4AzSpTEO2+Zm/kawOiakFSPgTl6iyiNKbrAzVRR5rK5g== X-Received: by 2002:a05:620a:1654:: with SMTP id c20mr355999qko.282.1622146987200; Thu, 27 May 2021 13:23:07 -0700 (PDT) Received: from localhost.localdomain (bras-base-toroon474qw-grc-72-184-145-4-219.dsl.bell.ca. [184.145.4.219]) by smtp.gmail.com with ESMTPSA id y20sm2076116qkm.5.2021.05.27.13.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 13:23:06 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Mike Rapoport , peterx@redhat.com, Andrew Morton , Mike Kravetz , Jerome Glisse , Miaohe Lin , Nadav Amit , Hugh Dickins , Matthew Wilcox , Jason Gunthorpe , "Kirill A . Shutemov" , Andrea Arcangeli , Axel Rasmussen Subject: [PATCH v3 16/27] mm/hugetlb: Drop __unmap_hugepage_range definition from hugetlb.h Date: Thu, 27 May 2021 16:23:03 -0400 Message-Id: <20210527202303.31817-1-peterx@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210527201927.29586-1-peterx@redhat.com> References: <20210527201927.29586-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Queue-Id: 4F582E005F2A Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Xsn8lpx8; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf05.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com X-Rspamd-Server: rspam03 X-Stat-Signature: 333r7tzibseygswqd8qk58reiqfs9kyr X-HE-Tag: 1622146982-38152 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 --- include/linux/hugetlb.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index d944aa0202f0..7ef2b8c2ff41 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); @@ -381,13 +378,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)