Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2608431ybg; Fri, 31 Jul 2020 05:22:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf8To/b1g8shTdx7xepLVYXaqo7XLQadKarLE0UqS+nBC/G8zgO4RMK/jep/Y7B0nV80Nf X-Received: by 2002:a05:6402:c81:: with SMTP id cm1mr3526836edb.256.1596198147407; Fri, 31 Jul 2020 05:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596198147; cv=none; d=google.com; s=arc-20160816; b=oQBcP42CQnBb3t9B/0pcJmzqFfB1PZi+7gcPPydS26yg81fr30FEKm6kayCv1fAj1K 2hLQFbdZr8u6lQrZDVvEDPMxzBhcKfrnpijZTdLTrfND0zptpU7Pde+mxIQomKuOcpn9 bfOomTKg1J/lnNTiqdAOpdJolLVg+pocQfwQlHjS6oNaTo0NREkoGrYWRYI8HPJH7QKc wrNE2a2J/b7orMk4ZkBg4XJ53ZgtGxs1m4TrvSBOtM7ssnzNrBnYUoAorV7k9JYiI3FR gjLPIsW8sA22blee68bPA6x17V549Y8zRR89BGdj8au4e9shA9YLs3mfN19FSPWovC+Y xYLg== 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=CvFlC6ki86jyf2poLn8AnY/Z80LUaeq3pjN3kabbpGI=; b=AUveCRLFpMg2+XAPVc8wS185LsGdfiknpbSoi4r6jCBnAgfEHofCzgiMOiminqw8y2 hUQ7xZrp8sjXoGH6dlqnKT1foau/IkppKk3DvwQNni3Q313E6+FC8CFnQCRyW0y15WZ4 N6R2HjimUvZ8PnIcnxCWCZiVME9ZuobmPP3Xr7UYwojcE+Qs+v99nLZVDb/wz5gK7AH9 qW2evWu7k0OH6HZ771uB/zfHfkp3aJCGUiWBJPMOI95695ivMFGTIokY8OPxWwmHBH1y h8XbnKAhgIZyLzRuOpdscikptEld++pyyXJMLvSAxR8mU36MJgn9perex5AiLIDeUjKq Rw3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W7X53pQQ; 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 z20si4829966ejm.732.2020.07.31.05.22.05; Fri, 31 Jul 2020 05:22:27 -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=W7X53pQQ; 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 S1733197AbgGaMVj (ORCPT + 99 others); Fri, 31 Jul 2020 08:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733181AbgGaMVh (ORCPT ); Fri, 31 Jul 2020 08:21:37 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 012D0C061574 for ; Fri, 31 Jul 2020 05:21:37 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id u10so7732216plr.7 for ; Fri, 31 Jul 2020 05:21:36 -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=EGkmnz9r6odnB1tP/IdEWSm6Dsp41FhvgNURniGkwRaZaqTA1kD+juD5XGDLvg8tay bvUpCv+RSgpfEpZ8whQt57diPLPgBvy64R/Gt6eHnqHEXOMVBovBnW8LKLZMqzea1zsq 0CmFIvoVSa6N3KKOZCNFYmoiqzyw9IKNAwbTGCx1joCxCkmf7Qb5Dsobb8aDs6jKLJr0 /VFlpfBOKicWZTop57YgmbtklWPcsTCt9QTEPYMArtEMEwR+0kCGIz3O9XoChs8t7p5f WXr4mvJ/plTb4SuW8TVw/2aU+h4hGkv6rNRavIzYflSXnxkgMm/akjJcizWDaUtJCxGM OPXA== X-Gm-Message-State: AOAM531RK9nI51KeQJQ/zRdBw8dNlFSky9uXFWvW/UrI4atDMoNxGCqv HN6uHhik4NLT1t8PykhIEg== 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> 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-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 -- 2.17.1