From patchwork Wed Jun 12 07:18:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13694541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9D76C27C75 for ; Wed, 12 Jun 2024 07:23:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 60C996B0171; Wed, 12 Jun 2024 03:22:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 275216B017B; Wed, 12 Jun 2024 03:22:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB3E96B0177; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3AAA66B0175 for ; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E1D0F1C266C for ; Wed, 12 Jun 2024 07:22:57 +0000 (UTC) X-FDA: 82221394794.15.B406F4B Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf28.hostedemail.com (Postfix) with ESMTP id C059BC001F for ; Wed, 12 Jun 2024 07:22:55 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718176976; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K9Q34p9QZOx0uj8OtA+JSRwyKGLRGjzKgQRifHgwL8o=; b=DA5NLDEFuUlEo+5nQwBgLCzP7IeFVc13gq8tQtO/tEribEWCAiWeZn0nPFnGLXHp1eCrIR cjWCJiLN1QXbPZlO/oLRSClCOvjYmY4ridhD7SB+22fxakdzEN43bBAVksPWl1u5wN/T42 /oTUfwSDwyvww2lp2H/9hsQfAbeD95M= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718176976; a=rsa-sha256; cv=none; b=Up9VzH83lT2s7cv2Vo9d7Z5MsWJGaTQDB+TrUPE5g0F2IvzPJwKIRQuSXcFPu9GZT9Ouui htxo0eTnaGvbC5WbRPMyueO6rN0+bts6VY7v71vN8q4eIMhrscQoK6u+F8Iz2glzlGjK80 EgIwpy70LOagzNzKZuK+2eCRArnm0Zo= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VzcN66mtsz1JCn9; Wed, 12 Jun 2024 15:18:46 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 69F36180A9C; Wed, 12 Jun 2024 15:22:37 +0800 (CST) Received: from huawei.com (10.173.127.72) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 12 Jun 2024 15:22:22 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v3 07/13] mm/memory-failure: don't export hwpoison_filter() when !CONFIG_HWPOISON_INJECT Date: Wed, 12 Jun 2024 15:18:29 +0800 Message-ID: <20240612071835.157004-8-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240612071835.157004-1-linmiaohe@huawei.com> References: <20240612071835.157004-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.127.72] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-Stat-Signature: homnns3erb8heimjw5iazm4now4dbifk X-Rspamd-Queue-Id: C059BC001F X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1718176975-410388 X-HE-Meta: U2FsdGVkX1/9bI+MrLWm7XC+K+ZBJVuMApZY6E/oovFH2W68cf5jKyW4HqErS51wPp0tc6Z0LUaJDYieFZHBDDPxfSfDZi38ra11g36U25613iA1rQXErFayByJQ2eotfcYDd6uXYH3C8Huceu5XQBqkBiSNLwDxu8uF1Rlms66ksxFrpkUfELe47nnne1hVLblml20ghRFGssNNg707sVaWEokPv3oG2pGO5WoQydzsFte5pRhhje67gcNW4Mf291UxkwKcsGlo2GmC6p5T6RWae9D/R5bL/IekO4VCnz4gIziqfbBVp5uGT/Uv1s1Vzl3mMrTn4sCQNG5X8zi8jwcWtjMCZgma8U004C2O5H0uSc6mvAG5/5huvUl8DmrIBsTBE5gEs1X+qIDNalQXm8pcocwsnDNhEloNW2t67zyj3983Ls/uenuPSO6sTNXBDfDpwg9MSx+ZVmSwg7P9QovBV+VlyNjSObTCM5tCmgkuWGJxamgjYGUFdVQ476IlgGddmuEuxgwTXXzPciYRXg6c2sQ9HoFlg47wcesw5LrM8ScDGi39vAnfRspflWjId1NI8b8G6g0l69nJX3VgXNtiSQTvIltAPIlEnvxnI5whNHmUBkPtvF37t+NxAVE3Gi5bHj1nYCmCR6HgT2RuIqHxk37sy4S5+UfEAumQmM5Cb1+cB4VG+522bzrVVD//6l1yBgr/j/a/WIH8gKdbyAe/pZXEEY+9eAseaMZf/tMN0yT6UgZJem50xp/NmcWF84qTuU65KU504vhaXhDxL9yYulyJb7om7EWfZKV6ipFw2YQmac5GGp4owAyMLyn2MFSNcjLSYxmoCAjOB0LNyviccfZ1LbaSO9QfhHciToBtGho2DG09awaNTSh5G34kMHSU1bjggZbloR7/0abBWo5m8o6gm23rIb9WtihuXTeYc1sDP7RnJCrhBXg01C5/afp7l4ALMhGOH3oGpsO 6mYrI5YQ 6cIUmAIF0lt4rUzR2b/JvmPruayvGdINBz28j/prRS+nfzWX744XXGsSUyK2eNTiwuslRztLG60FacD1j3xPDhzzZ+dodmdyDNw00S4f7mYORcBEeoL25v7U1WwXUrSDkXHtBVtEQNoiC4NSPal1FxlWWLCHCnYfqzcOIMx3GebxnJuuwRZCOyV9Joguzhi+pabnZg4zyBwzg0kcbiPUdrHgvEBCr2ZHKQNK0wxxoW3Un4kQ16OWJuJ+zZ7xcIMkuesmwLvlsu8tcWRLGgwYNS0lcZc21sj9wcO+kgGAnB21D4J4aP5YZxvg1MzLU49U88XoFAG8NyIhvoZQf/hIQ2kzZ4UsDBaZL/Sqj7CenkJtV7RvYH/Q3g72IeU/co/SSBxbT 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: List-Subscribe: List-Unsubscribe: When CONFIG_HWPOISON_INJECT is not enabled, there is no user of the hwpoison_filter() outside memory-failure. So there is no need to export it in that case. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406070136.hGQwVbsv-lkp@intel.com/ Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 339752d768d8..ee6ec63534b7 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -294,6 +294,7 @@ int hwpoison_filter(struct page *p) return 0; } +EXPORT_SYMBOL_GPL(hwpoison_filter); #else int hwpoison_filter(struct page *p) { @@ -301,8 +302,6 @@ int hwpoison_filter(struct page *p) } #endif -EXPORT_SYMBOL_GPL(hwpoison_filter); - /* * Kill all processes that have a poisoned page mapped and then isolate * the page.