From patchwork Fri Jul 31 12:21:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naoya Horiguchi X-Patchwork-Id: 11694837 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 710FA1392 for ; Fri, 31 Jul 2020 12:21:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3D80021744 for ; Fri, 31 Jul 2020 12:21:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W7X53pQQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D80021744 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 3DF668D002F; Fri, 31 Jul 2020 08:21:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3677D8D002E; Fri, 31 Jul 2020 08:21:39 -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 257278D002F; Fri, 31 Jul 2020 08:21:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org 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 0A6C68D002E for ; Fri, 31 Jul 2020 08:21:39 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 9485A180AD802 for ; Fri, 31 Jul 2020 12:21:38 +0000 (UTC) X-FDA: 77098281876.11.worm33_550ebb426f83 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 68BD5180F8B86 for ; Fri, 31 Jul 2020 12:21:38 +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.214.196:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yff9517sagyx4sptrqj65r6m4edyp77r64gictir67xxmqrnci4tb19mmrms8.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: worm33_550ebb426f83 X-Filterd-Recvd-Size: 4980 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Fri, 31 Jul 2020 12:21:37 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id d1so17217787plr.8 for ; Fri, 31 Jul 2020 05:21:37 -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=W7X53pQQJeP+6wvSubGRknoAypUl4N+UBVvqYOwEY/No3tWTdwK68xvzzznrwy40+R YP1znazdj8HvaEpORWsDzOGZdjb7NsYU3uW7BSVD+KLnCxoIoVmzc7FQVxbg72IC4SKZ 2asMt27Y1lCGp/DtK6DECa4hGbzFXPOH+IODUQvXeZ8o6Ag/HFuNR0L21vfVRC8SNzbt OwHN40RmmaEaAjoR5q80yyO/Ye+k7k8ZIc93F9WYa8GaVpyUhIOodl8y6EPVFpfErhNu 301HErm59bsa0RoC7Wt1ns1hsZt4+i+goZz9CagUAASI1IPiVtGsPRVwwjn2ZtChDx+U 9MlA== 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=IfxpkrGA1WFhEFGYvig2fh60Sj07sYVkwrS7RNlxHjjMaXFiPCp+CJCIOHAZzRZVHk TRk1TfMXEd5WAWgv1zqoB2WPN0pdm9HbOYXVJK2hPunxMDznoNhESOo8rFhdEUU2TwVu HRwmzvYgv1I9E27dc08hvbRa3Ngv77aQJlUpzyikACuRcoBx4hSCKcocfaIr2Lw3TV1u +P6xEfFxz+v6YjO0kZuIZ4pg0RG7MX58O3YVTgdgCeYD2kHdVvpdrq5qnrsjKSeMRr7z w52O6/OvmWXQZZ/TLBODvQSuWsjL88O4PSXHahnsIt5Qy33gsmzQg55H7piGv9FOgcW3 qS7Q== X-Gm-Message-State: AOAM531mqf4SIlAVfRXYg4kfn6ArHXEi4QQuIID+PmptzE22iY52J2s9 3uicoVOxWmQRfD3NF+FkTuYr3vnrPQ== X-Google-Smtp-Source: ABdhPJywCCqceUPTuP1ChhjOjP9TuahX20BeNq3JsgzEUbx9EzjmcCEVHLLgUbOmChs8uDpXLd49Gg== X-Received: by 2002:a17:902:7c10:: with SMTP id x16mr3556236pll.122.1596198096570; Fri, 31 Jul 2020 05:21:36 -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 m19sm3675692pjv.34.2020.07.31.05.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 05:21:36 -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 v5 06/16] mm,hwpoison: Un-export get_hwpoison_page and make it static Date: Fri, 31 Jul 2020 12:21:02 +0000 Message-Id: <20200731122112.11263-7-nao.horiguchi@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200731122112.11263-1-nao.horiguchi@gmail.com> References: <20200731122112.11263-1-nao.horiguchi@gmail.com> X-Rspamd-Queue-Id: 68BD5180F8B86 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 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