Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp869254rwb; Tue, 27 Sep 2022 05:49:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6u4bysmvPYQW0jpuZFi5sLZzAe/BgPROhDcaydst9eLdMKqhQ8DQBuRLsOo7Z4lQNLjd8m X-Received: by 2002:a50:a69d:0:b0:44e:bf40:395f with SMTP id e29-20020a50a69d000000b0044ebf40395fmr27219455edc.234.1664282979897; Tue, 27 Sep 2022 05:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664282979; cv=none; d=google.com; s=arc-20160816; b=LsH0VPv6r8WqieKwmaBOuv9qOm8Ls9gtnQcqXoF7vmo7tVwrM9AqnTD1tzJBuifggJ xZGXvpo2+KGl05eMXn6W0vY+kPJMyH4532ZmwJMKmeEXzxxhk0qg59p7N2F1N50OYlDG C5P7PJR087tzAEp5al/er5QKzOijzZvvKnhIOCPzvuF7bWa9qlLSZFetY2pCQn4DDGJV st9mjRlAWU7/Vaq36836RpHNWODteBs8SaTwuNuoPVU7aagfHCSjTi0Er69xR+4Y5QD3 xl/EuslljcvMLyjzmULLcNs47YjALOSZgCF54NouGHXKJES4YW36S/ySr/8UKJ1UJ6fh yrwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yPFntR9/mCadEpXcQATRbftBmHGgFITCK1PZVUoDa5M=; b=qbP/jPYmnIvd4ODcXOKBAqCE7yTYLnus/2AdnjTRSoSC5rRPgphA/s6UIwh6BtxT4v nSGldDeRV47gFKcR6ckQ8qlNi2jE+zcGcNsZvEWbbEgp9xY81+huwpWzx2Rsu3GEniyI 2bF1rw+wVF66C+cKkqBWVM8X8El3AOYDKDNuhIUWPfmNgPiI4LZq77e5Z8IBjfbK059k AWekJOy/7+mpCRAAdpYApgqlQe/rtTnXYb/qei85p8iQxl4IMy8dWCUlKczoO9y8aKJA OJTrXoYPu6B7rrbj1Ic+PlmhCDcJklNO/u/b8QYD7nrMEgbDlTCTDl5LqTxDu5mv+dEE kzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="VoBhv/vx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a170906974c00b00782f6b6f10asi1031179ejy.726.2022.09.27.05.49.14; Tue, 27 Sep 2022 05:49:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="VoBhv/vx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232058AbiI0MQk (ORCPT + 99 others); Tue, 27 Sep 2022 08:16:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbiI0MQ1 (ORCPT ); Tue, 27 Sep 2022 08:16:27 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2AE1DB951 for ; Tue, 27 Sep 2022 05:16:25 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id w2so9556786pfb.0 for ; Tue, 27 Sep 2022 05:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=yPFntR9/mCadEpXcQATRbftBmHGgFITCK1PZVUoDa5M=; b=VoBhv/vx3Dyt7a+5tjIrQKoiK/32bqqzw3DFhQAvIQ2U2NpI5Iwb9hblDSLjBWLbx0 QcXEJS9r/0jsao3abY6q8eObMjMWLS9Q8JLerW+SpZ8e2pyURC8FkvrUTpEVyJVkRJWB mYtKPnyc8aLDh0k0jrdvKJO6mio0gVnymrCAKBdwzuyMQEQCQH3PeExl0F6dx32Wh+xM jiu/wdJHvEvNgTbzLboR4/0XQUgnaihG2KF038FWO+KLxKcoUQDxMuxcffKpLOL+Pe35 dYYvp6/SuAPS3ZicYBV12uc2CJkQlo1Ukc7zm31KLa36sCIIQ/3cu66yreGo2g4jstjA M4Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=yPFntR9/mCadEpXcQATRbftBmHGgFITCK1PZVUoDa5M=; b=XjINy0FiKuqmBQnqG/hEKQqcEwOQsnV8wjPyc/2cqUSqkow2fPF/W7RKait1eS7Oc9 iwWjWcFww/WLcwz4dFGxbPDwQO8I2i79WhoxH8loJChBcqICTM1c7RJIWJsCu+CTRdUj i2gz59iwUK2RnCetyTiVWhcjtGo+WjPVQAAmo+/73AqaBg8Vj4NaWDh47t69feZmnGgt RQTFhU5r1mAoWtlGsw9WM2jNAGC72MQfgIgrFsByYn+Tb2tCLrOY1X8JZ8ZbYFboZ6OW 12KN89wEZRlcV3Qj+Ps079uyWw+zz4EFQPoHBb1Ec4p5ugoFPiaeL67Xvdn32/Cd9DT2 jPLA== X-Gm-Message-State: ACrzQf0umTEnY/Lh078mTdvH1p0W1VMP2fIwsWjKkg7Qy85UE7HiNhf+ qm9DlxvbofjSlTtZWOPWgJ0= X-Received: by 2002:a65:40c8:0:b0:434:dfee:8dc1 with SMTP id u8-20020a6540c8000000b00434dfee8dc1mr25088969pgp.156.1664280984637; Tue, 27 Sep 2022 05:16:24 -0700 (PDT) Received: from debian.me (subs28-116-206-12-58.three.co.id. [116.206.12.58]) by smtp.gmail.com with ESMTPSA id y18-20020aa79432000000b0054087e1aea4sm1644771pfo.15.2022.09.27.05.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 05:16:23 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 31EE11004A5; Tue, 27 Sep 2022 19:16:19 +0700 (WIB) Date: Tue, 27 Sep 2022 19:16:18 +0700 From: Bagas Sanjaya To: Hui Tang Cc: naoya.horiguchi@nec.com, linmiaohe@huawei.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/hwpoison: fix build error without CONFIG_MEMORY_FAILURE Message-ID: References: <20220927102946.98622-1-tanghui20@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7Fj09Ln2Ru7zIzIm" Content-Disposition: inline In-Reply-To: <20220927102946.98622-1-tanghui20@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --7Fj09Ln2Ru7zIzIm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2022 at 06:29:46PM +0800, Hui Tang wrote: > Building without CONFIG_MEMORY_FAILURE will fail: >=20 > mm/memory-failure.o: In function `action_result': > memory-failure.c: undefined reference to `memblk_nr_poison_inc' > mm/memory-failure.o: In function `page_handle_poison': > memory-failure.c: undefined reference to `memblk_nr_poison_inc' > mm/memory-failure.o: In function `__get_huge_page_for_hwpoison': > memory-failure.c: undefined reference to `memblk_nr_poison_inc' > mm/memory-failure.o: In function `unpoison_memory': > memory-failure.c: undefined reference to `memblk_nr_poison_sub' > mm/memory-failure.o: In function `num_poisoned_pages_inc': > memory-failure.c: undefined reference to `memblk_nr_poison_inc' >=20 > Add CONFIG_MEMORY_FAILURE wrapper for invoking memblk_nr_poison_{inc|sub}. >=20 Better say "Guard memblk_nr_poison_{inc,sub} under CONFIG_MEMORY_FAILURE". --=20 An old man doll... just what I always wanted! - Clara --7Fj09Ln2Ru7zIzIm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCYzLpjQAKCRD2uYlJVVFO o9YBAQD/LB+J7Ig7JbBnO41XhpCDYSN+JBqJiiG4joXsED0x/QEA5/tSHh66ldz1 3wWSJzbXTRZedc5ywsbxCA8SFsrLowE= =+nSn -----END PGP SIGNATURE----- --7Fj09Ln2Ru7zIzIm--