Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1624546pxa; Thu, 6 Aug 2020 11:51:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO03ENbTt4psAcEgvjjTnmWAEA/QmEBMM9uxbhr+MJVaHOpt+2ZiIBs6MtLCBtTeB02SBe X-Received: by 2002:aa7:c45a:: with SMTP id n26mr5453744edr.45.1596739893138; Thu, 06 Aug 2020 11:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596739893; cv=none; d=google.com; s=arc-20160816; b=wzUZxZTzb66vjRBmLK8YP64X63gBRMYKKRMB9aWi9M+RLtp5X0WrCujsW+uOcsIfFa uOTnOlSvdoOazm0TWLIk0qRDuRnqg8f3TjF4cM9ZeLYHmzGjrVvupD66JKgZsDA+0Gji snZiIZ+B/6Bv1Clat5dN3ueQSkvnNW7fSNGudT3aFoVXBK82jVSblcFULWCdDG4SseBT 1xjG0xAghYYpwkUzfkvxCF4yxC9lZ1dm66RalAYgtnyu2ZO1n4s/21kqJnqNLZNsUXN8 hQEPe6LRGFTTaBUdy7wcRUO67UbZieeZujWjxxTetguVoDXFdgkGqbwNvnAxRJ46FD6W 0Mdg== 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=E4Apc0bZsE3AN/wJIx/ro1FeTILROYAr8uG1WEKjYaRwRoBiKWt3LexfQIr4fk97f+ TkWXWZhLhwopeKlacC2AsOLkmyhzKSNALy9mFk4dRGm+egBliMAc8Gwfpl50540OHXP5 xfDRdUR8X+IjZsMB2B7+Ci6hR2a9pRLHaiCf9L9hjlseq+8bFYL6OarTdblrJesf35U5 i4i+f0E8LryWRIPwpLDmidXsJrqGYzaM1UmLiNEdsWxhViRRxmYx+34gfltTFq4jwXhb /vwf2TTZxeEZUhaXMCitPNh9KHKwMX/gtaqERGj1h0hsvXQ4pgEbPbjc2hr5VqMXvLUJ uOqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HsPZzU08; 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 qw20si3782008ejb.371.2020.08.06.11.51.10; Thu, 06 Aug 2020 11:51:33 -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=HsPZzU08; 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 S1728950AbgHFStn (ORCPT + 99 others); Thu, 6 Aug 2020 14:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728848AbgHFStm (ORCPT ); Thu, 6 Aug 2020 14:49:42 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7E67C061574 for ; Thu, 6 Aug 2020 11:49:41 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id e4so7332840pjd.0 for ; Thu, 06 Aug 2020 11:49:41 -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=o33EkwZKedyVyVSlocqoowiIojUVa5edKQI0yzxG3+/lUhaoJVFFOagqnXUDGMAbPF PNP1U834gPk6g/nYRIKR6SMJv3OmbWBpdyqzU2XAqgLR6ZBTBvLpK4gFmeGM5ib6x7l8 Ie31XCjXyQjqoZXT5uE04yZHAiXsfZT2BPBWCIFhf6wPSt1ftqFrkTbvJIVSj5yIqnd1 83/n65jM/djM0oNsQ26tkgwaVjwLuiHt2ET0naZJdnmGpGhOCRycXxwyWNeNbqdPfiCA q+2BcVknc5YP3aKdq1Klcyq1M9RzHN2pEx8Y4fLwydPfWtFgBbc4IE0XW6eKkpqD/uvi f3Ng== X-Gm-Message-State: AOAM530DOFTYbM+F9nM+wvFW3w/Ea+xl0hpWLoSis8/vhG1yZ34cQTzw 4XeFXSVGuO4cTDtU+GxzOg== 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> 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