From patchwork Thu Aug 6 18:49:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naoya Horiguchi X-Patchwork-Id: 11704091 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 438181510 for ; Thu, 6 Aug 2020 18:49:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E1EF2224D for ; Thu, 6 Aug 2020 18:49:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HsPZzU08" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E1EF2224D 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 EC12B6B0008; Thu, 6 Aug 2020 14:49:43 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E987B6B000A; Thu, 6 Aug 2020 14:49:43 -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 DADDB6B000C; Thu, 6 Aug 2020 14:49:43 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0244.hostedemail.com [216.40.44.244]) by kanga.kvack.org (Postfix) with ESMTP id CB0786B0008 for ; Thu, 6 Aug 2020 14:49:43 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6261A2494 for ; Thu, 6 Aug 2020 18:49:43 +0000 (UTC) X-FDA: 77121032646.28.oil95_4c0808b26fb9 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 135376C2F for ; Thu, 6 Aug 2020 18:49:43 +0000 (UTC) X-Spam-Summary: 1,0,0,171b564c8b5496b3,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:6742: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.68:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04ygwyrz9ra8cday7tu3q1kk4d17cop77r64gictir67xxmqrnci4tb19mmrms8.o94qwn4pzeft48y3ew414c5rnsxwrpqnbebr9jcux651o8gbc393imfg6djecbu.n-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:23,LUA_SUMMARY:none X-HE-Tag: oil95_4c0808b26fb9 X-Filterd-Recvd-Size: 4971 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Thu, 6 Aug 2020 18:49:42 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id e4so7332850pjd.0 for ; Thu, 06 Aug 2020 11:49:42 -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=CvFlC6ki86jyf2poLn8AnY/Z80LUaeq3pjN3kabbpGI=; b=HsPZzU08x/nUjZZL1blwT0m3W0a7waKc5rryRpUTlYyuMNj3Cvpx63kTV6peM+Ux95 R+3zUu8yMS1wP2EzY5la+PEhDuaVnLf007d7/G4lfpXIxcv/7GKV/1x8/U6wwO27veU8 lyhoy8kv4SXCmEX7ZBxOPgS3m9jqbVtXKFZ0XXMMV6R1rXj8Kl7W9yMnANgmCJm2H6rS LS6BCAQfcfEJj/Vv+UFoCh/zJKwmh3SMP/vz0dJPsfNlG85B1ynwYAPptiQTRMdlE+Yp vFBwfAPz+zn0JANdmuWAUPBFL+QhfNP8x1fsgyTWcY5JUOy3792gCQvl8WZVkMncn4h0 GIaA== 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=CvFlC6ki86jyf2poLn8AnY/Z80LUaeq3pjN3kabbpGI=; b=DpVVPAo3E40Em7uYtXC1RxhbEW9sVBVFml80PaS4Ff8siA6+FQ+8dcDNZsksNnt4VF S88cegWse7Q8kY7c8Y3nniygbPX4vaM0gl9D35OaZ4cR64JFu1nxoiYpICs7X8xJYb1B ojY37s09ikruGzg9Mgz9GzvE8g/14tI+qwB2M8rrkpRqbjvvq3qYazF1cTqFArm3RkTu JbZyM0uneP4mqOdUoNgmR0yfVx9YV+1jH8yb1R7x1PPT6AGK6GQW6oqnCf/fsj1xQ1W9 zPhvF42Ix891dAAc4Nw7V+No9L71s2TBDuugQH3dlDHM5X6PNPbIX0IaPGCjyqdKKiTc LhZA== X-Gm-Message-State: AOAM5324ftMO25x5jU/SCkTWux5tI+9545MIhd+ENI16EnIpPVbt1Kz9 +sCeJTOOPn+qGQPjVCejRmgNz6L5Og== X-Google-Smtp-Source: ABdhPJzEEd/8epb1+654jMmftgxgjAAecU9Qg7OIOIb97zqAagBZmdlsIaDzWjyhw8G/Sf1veJwYqg== X-Received: by 2002:a17:902:9349:: with SMTP id g9mr9032052plp.313.1596739781540; Thu, 06 Aug 2020 11:49:41 -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 u24sm9096730pfm.20.2020.08.06.11.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2020 11:49:41 -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, cai@lca.pw, naoya.horiguchi@nec.com, linux-kernel@vger.kernel.org Subject: [PATCH v6 04/12] mm,hwpoison: Un-export get_hwpoison_page and make it static Date: Thu, 6 Aug 2020 18:49:15 +0000 Message-Id: <20200806184923.7007-5-nao.horiguchi@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200806184923.7007-1-nao.horiguchi@gmail.com> References: <20200806184923.7007-1-nao.horiguchi@gmail.com> X-Rspamd-Queue-Id: 135376C2F X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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-rc7-mmotm-2020-07-27-18-18/include/linux/mm.h v5.8-rc7-mmotm-2020-07-27-18-18_patched/include/linux/mm.h index 5e76bb4291e6..8f742373a46a 100644 --- v5.8-rc7-mmotm-2020-07-27-18-18/include/linux/mm.h +++ v5.8-rc7-mmotm-2020-07-27-18-18_patched/include/linux/mm.h @@ -2985,7 +2985,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-rc7-mmotm-2020-07-27-18-18/mm/memory-failure.c v5.8-rc7-mmotm-2020-07-27-18-18_patched/mm/memory-failure.c index f8d200417e0f..405c9bef6ffb 100644 --- v5.8-rc7-mmotm-2020-07-27-18-18/mm/memory-failure.c +++ v5.8-rc7-mmotm-2020-07-27-18-18_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