Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp653044ybt; Wed, 24 Jun 2020 08:04:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxALjfMY1FTSUoCNzkcxMommmikTXfzCqhA6YYr8ycQTvbAKMn7j9O/9eVZkZfQdDDKBU4E X-Received: by 2002:a50:9a82:: with SMTP id p2mr18152311edb.130.1593011057667; Wed, 24 Jun 2020 08:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593011057; cv=none; d=google.com; s=arc-20160816; b=y2Nf2HHKfe1kC0wyxQMX6ZRWcLid2fBEVXBjezgFYVJDYVC7iWjm9wt7ldAKvNAbs6 0/kkVHS+lMtdwgWRhU1aqu3OA0RkwfUN+qJ20D8V9kh6hLrIc9aPdyp7hz5CsK/c+q8t 8bW1sxj8fR7g9jqGs/xdn4BhvBmVrEprHsH5PEQZkM/JdPRWIpohIW9xPAND+8uWn7nA TTp37TS6bhhtEcPCAjSqp4GRewciNuZnowiSmcqDVLJeja7PnmmGnsuXcxTtKZ2inNhI nVatuLey/5PQMVz3QpKnpOB/ZOqoFpDnwNakEb8vO8a6T14lSJNBt+N9QwBY4F0s2Z48 iWWA== 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; bh=wi0jvksoTHpVyCfm1g7AC1LGQmraHN9CrSpvP+vNrxQ=; b=YvSkCBPg14ix4PxpUd2GGy2ac/VXI4D1i6Y4f8Rin1uCQvUAcgp3TeHZWp15GHcC/D mjOmo9TouxIm5EvM6QxP67ydh7HRomre1O55myOieI49LEi1k2ubsHubQVuynQItDXmY 2D0xu2mb7szacGv2XTFeV5rQzV7RXiIrgJssnWVOTZWojyremtz5DX1TLrXImeRDlhwk PvOgESTvaYVdt4uJ/e+OWCFzx1PdJL8pUYvvg1pCOzs0fC/CiPZMQelkvZlb5OtYX1ZT W5nJXLQdoORkSbk4vJ7BtRdAG7Jcik3T8v2SKwUxqu1CQJoxtXE8rYX6d+cRbP7/u/QM MGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q+doV4+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx26si8534807edb.241.2020.06.24.08.03.54; Wed, 24 Jun 2020 08:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q+doV4+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404192AbgFXPCF (ORCPT + 99 others); Wed, 24 Jun 2020 11:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404182AbgFXPCB (ORCPT ); Wed, 24 Jun 2020 11:02:01 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66368C061573 for ; Wed, 24 Jun 2020 08:02:01 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id i4so1274178pjd.0 for ; Wed, 24 Jun 2020 08:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wi0jvksoTHpVyCfm1g7AC1LGQmraHN9CrSpvP+vNrxQ=; b=q+doV4+QJo4SQbToZ6CFts6JlJmwHSih6rFDYKWnzMwT2ismKWonlG1ioACjQG9y2T WuQ1tuzvxTkHA5eGy8u6zdJFuYmdlJvOuRNbEuqLQqcJEVLdkT+bFHNrKYP3Kdsn+WvJ 7wR9eiuaAawdmty7se0A2foSPz2LnWVpq7sKy0oWa8tSziNaDqOIiN/YX5deP4ffPwhf DYpP/52GEq8QICE5TbvKca7hr7qUQuQU67KfplMVYPkNsTazsIy78nC+Ie2rznB79z0R 6/QWNKU/jKzvg2zqP1B45GnpOEIfh8feOfehXs7tuYHSG3yuU+MfPVmW7i8UQu2mL5Q4 8W8Q== 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; bh=wi0jvksoTHpVyCfm1g7AC1LGQmraHN9CrSpvP+vNrxQ=; b=ZJUdPdgj5LaPywUXLhNB6NaiSceb5mOYZ28cFOy/YfPwxsF2QQt24chi/V3TA3BIH3 bcz+p47vpjrbh2xeNG94bFfhhDNaoXwo+xqUvet6x4y3qCpH7PVeMIOwMJpOLqbCLoB7 UPVgXYTR6XLxv8oFGntdO33AWwPqD6nDHUcBfliUo43Umf4Mu+2mz2fIEHeC9roE0V/M 1bWhnrN6CTBtTUlbZjrLioLk8/Ku2ErYF2s5HLqL0JIRU2Hq/YFRf29IQoDk9+oQAeUF jCE+SNUTVywPd0fjIsvlDsbaYJQ5EqZlJOGlTZac3vDPf+T4TfrY+c536Yo7Cmf6TIOO G8HQ== X-Gm-Message-State: AOAM532OmrvaTJaPAcqjh8L9MAs1gYAcJ3Kb+OGMP+mcrHnUdUsqOJXp HSdjTnH7ZuhlL/ULhblePw== X-Received: by 2002:a17:902:326:: with SMTP id 35mr28823660pld.301.1593010920918; Wed, 24 Jun 2020 08:02:00 -0700 (PDT) Received: from ip-172-31-41-194.ap-northeast-1.compute.internal (ec2-52-199-21-241.ap-northeast-1.compute.amazonaws.com. [52.199.21.241]) by smtp.gmail.com with ESMTPSA id i125sm17013705pgd.21.2020.06.24.08.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:02:00 -0700 (PDT) From: nao.horiguchi@gmail.com To: linux-mm@kvack.org Cc: mhocko@kernel.org, akpm@linux-foundation.org, mike.kravetz@oracle.com, osalvador@suse.de, tony.luck@intel.com, david@redhat.com, aneesh.kumar@linux.vnet.ibm.com, zeil@yandex-team.ru, naoya.horiguchi@nec.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 06/15] mm,hwpoison: Un-export get_hwpoison_page and make it static Date: Wed, 24 Jun 2020 15:01:28 +0000 Message-Id: <20200624150137.7052-7-nao.horiguchi@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200624150137.7052-1-nao.horiguchi@gmail.com> References: <20200624150137.7052-1-nao.horiguchi@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oscar Salvador Since get_hwpoison_page is only used in memory-failure code now, let us un-export it and make it private to that code. Signed-off-by: Oscar Salvador Signed-off-by: Naoya Horiguchi --- include/linux/mm.h | 1 - mm/memory-failure.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git v5.8-rc1-mmots-2020-06-20-21-44/include/linux/mm.h v5.8-rc1-mmots-2020-06-20-21-44_patched/include/linux/mm.h index e6ff54a7b284..050e9cffc2ea 100644 --- v5.8-rc1-mmots-2020-06-20-21-44/include/linux/mm.h +++ v5.8-rc1-mmots-2020-06-20-21-44_patched/include/linux/mm.h @@ -2995,7 +2995,6 @@ extern int memory_failure(unsigned long pfn, int flags); extern void memory_failure_queue(unsigned long pfn, int flags); extern void memory_failure_queue_kick(int cpu); extern int unpoison_memory(unsigned long pfn); -extern int get_hwpoison_page(struct page *page); #define put_hwpoison_page(page) put_page(page) extern int sysctl_memory_failure_early_kill; extern int sysctl_memory_failure_recovery; diff --git v5.8-rc1-mmots-2020-06-20-21-44/mm/memory-failure.c v5.8-rc1-mmots-2020-06-20-21-44_patched/mm/memory-failure.c index d2d6010764e7..48feb45047f7 100644 --- v5.8-rc1-mmots-2020-06-20-21-44/mm/memory-failure.c +++ v5.8-rc1-mmots-2020-06-20-21-44_patched/mm/memory-failure.c @@ -925,7 +925,7 @@ static int page_action(struct page_state *ps, struct page *p, * Return: return 0 if failed to grab the refcount, otherwise true (some * non-zero value.) */ -int get_hwpoison_page(struct page *page) +static int get_hwpoison_page(struct page *page) { struct page *head = compound_head(page); @@ -954,7 +954,6 @@ int get_hwpoison_page(struct page *page) return 0; } -EXPORT_SYMBOL_GPL(get_hwpoison_page); /* * Do all that is necessary to remove user space mappings. Unmap -- 2.17.1