From patchwork Wed Jun 24 15:01:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naoya Horiguchi X-Patchwork-Id: 11623389 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B606E60D for ; Wed, 24 Jun 2020 15:03:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8338B206C0 for ; Wed, 24 Jun 2020 15:03:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q+doV4+Q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8338B206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 588F16B0025; Wed, 24 Jun 2020 11:03:18 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 538CD6B0026; Wed, 24 Jun 2020 11:03:18 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 426DC6B0027; Wed, 24 Jun 2020 11:03:18 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 289166B0025 for ; Wed, 24 Jun 2020 11:03:18 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id DDAC4824559C for ; Wed, 24 Jun 2020 15:03:17 +0000 (UTC) X-FDA: 76964423634.16.goose47_4010d7d26e45 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 9EE3A1004F843 for ; Wed, 24 Jun 2020 15:02:08 +0000 (UTC) X-Spam-Summary: 1,0,0,02be479870b2282f,d41d8cd98f00b204,nao.horiguchi@gmail.com,,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:2899:3138:3139:3140:3141:3142:3352:3865:3867:3868:3870:3871:3872:3874:4321:5007:6261:6653:7576:9413:10004:11026:11473:11658:11914:12043:12296:12297:12438:12517:12519:12555:12679:12740:12895:13069:13311:13357:14096:14181:14384:14394:14721:21060:21080:21444:21451:21627:21666:21795:21990:22119:30012:30051:30054,0,RBL:209.85.216.67:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04y8zci6hedj7d6jte1gj6cazrjawycdqdruxjejhi169dcbo4tnstxxzqzejmp.8qsjpahpnpreucy4cefdwx3jd3mafawiugtcqz64sa8p94ssq9om4bp4qkqb5k4.r-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: goose47_4010d7d26e45 X-Filterd-Recvd-Size: 4959 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Wed, 24 Jun 2020 15:02:01 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id u8so1271578pje.4 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=Za/HUQlfO2bqsCMegbEfBpW3Q6kxc/OdJaay8Vtnwj1JmQ18gntG6nQz9xi2Gas4pJ Vbvk3oagG3sbWHW2QHqyRdTAwIyVEvMdP5V/mlzsLLXRKVSwTGMTuduGxS/CauyUUa2o l8XtKFnCSoJCcsxTpmYpj+JOMTkV0gWrTj1RfQpla9FY9GqNRVLcZoR246ySe0G8oyRr /TGIWXYFCEDeVwPGKCenZ6Ag4IMUUuaYv18mcCwlnAn3uRCKFvD71cduA2BW64ROgzoL 8jeD1vYjjnfIrEGjYNCQKjmg0whhkg1D6A1QaS58A1hZuPuQjOOm5mWhSAcTod02aRAI U9VA== X-Gm-Message-State: AOAM532R2L3edQFTggPHrsvMRuyupz4PdMs/xCA/hGZsaxO5gUpkLn7G PJT4KcITnrQjx2xPjHUsNzuKF1Xh0g== X-Google-Smtp-Source: ABdhPJycIQtUBi2ck6YMbwEqrTTpRgSmkaqsBpcn8fO7eaJF9vdBD7QAFHcvomHd6q/iBO+H84EXpg== 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> X-Rspamd-Queue-Id: 9EE3A1004F843 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: 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