Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp240668rwi; Fri, 14 Oct 2022 00:59:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4w/gDdNo6SOa110+fpqMPFNfzBNRddxDccgHso24eilSFJUk1rN3j3e33D4tpWHXMlJztd X-Received: by 2002:a17:907:6e9e:b0:78c:5533:4158 with SMTP id sh30-20020a1709076e9e00b0078c55334158mr2553087ejc.417.1665734381842; Fri, 14 Oct 2022 00:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665734381; cv=none; d=google.com; s=arc-20160816; b=FsXbV5CSL6U2TCV0dshOGTfM0RxHLqYSQ2XcVPismZKPNOdlFR+mmHPSfLP+j0Mc4J FvK3FB1GBI9QVfB8V41hyxZhPGkbsKaboTFr1HR2jJT/dLgmpgGLdvftWyh0ZnrMBLB0 DpfkIW4oA79Q/PhGBD5bZae9t9urmhRbKN9T0zwxKhPMBjxvh+wBN6winOU+iK7+a4m3 ntqFBQVrHJJyZFoWV5c4MLuE483assUI4h5ALxJzJ9+OMxo7MizzKRVZaKUtpi+jIaKu 5N0Ki/plBsKQVvjfGk5gUUoo83HWX5KUk8JkiKN9j9qymvQBhioCEfT6fUjFqNvMqRKN /zZg== 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:dkim-signature:date; bh=GVx51+wEeaxhdduiJJ9u4pDxyncQhwvaEYATQ2iOVl4=; b=Rw02vJmI8M+bwLMx+BpqPy7j5yqWg+WDPs3SOHw3fiynKKGmNUFws7PbvrcuMWgX1/ axGTrpGEaIF2UQByedLJkZeBVhx6zIzHpNmJ0tGHEB51Y7VwcMNrZAuMSpZ9ml+f+vOZ pe1urFxx/m4JIDArautaaMrOomK0Gy3WUX+nEbHfQaXV6DAJYZz33a2WuZVc9aYH6Xyo 5AA8TrFUymIcXgkC/lkQNSB4gA0AfY9yQYXzoZQHE9MuL5dvhqid81+nJIwZ/Ork58kH rNUtCi8mWroEn7MRgdGY69EMXBxdeLnodRspIPVhliRaul1Y/VIAvp1odlVw9CwvwVux 6r4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XxMiNss6; 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=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy19-20020a0564021c9300b00451db83b2d6si1531283edb.312.2022.10.14.00.59.16; Fri, 14 Oct 2022 00:59:41 -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=@linux.dev header.s=key1 header.b=XxMiNss6; 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=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbiJNGil (ORCPT + 99 others); Fri, 14 Oct 2022 02:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiJNGik (ORCPT ); Fri, 14 Oct 2022 02:38:40 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3445717FD45 for ; Thu, 13 Oct 2022 23:38:39 -0700 (PDT) Date: Fri, 14 Oct 2022 15:38:26 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1665729517; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GVx51+wEeaxhdduiJJ9u4pDxyncQhwvaEYATQ2iOVl4=; b=XxMiNss66OkyEkiqhCvkHcicecVDn8I/Wd2LSvel1BD3vZB5t6hP2H+++JBgPiFuUZ0az2 yP1VYVFpmrcLF2Ym+5DnSN2mrBSL/xVMZjRe/N/UjKTxlaJuYL9PSi2ht/AvvVIW30XAU0 g+aQWXry5Plax1EuEkBwZrUff5cKMQE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Oscar Salvador Cc: linux-mm@kvack.org, Andrew Morton , Miaohe Lin , David Hildenbrand , Mike Kravetz , Yang Shi , Muchun Song , Jane Chu , Naoya Horiguchi , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/4] mm/hwpoison: move definitions of num_poisoned_pages_* to memory-failure.c Message-ID: <20221014063826.GA1711843@u2004> References: <20221007010706.2916472-1-naoya.horiguchi@linux.dev> <20221007010706.2916472-3-naoya.horiguchi@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 On Thu, Oct 13, 2022 at 04:31:53PM +0200, Oscar Salvador wrote: > On Fri, Oct 07, 2022 at 10:07:04AM +0900, Naoya Horiguchi wrote: > > From: Naoya Horiguchi > > > > These interfaces will be used by drivers/base/memory.c by later patch, so as a > > preparatory work move them to more common header file visible to the file. > > > > Signed-off-by: Naoya Horiguchi > > Reviewed-by: Miaohe Lin > > --- > > ChangeLog v3 -> v6: > > - remove static in definition of num_poisoned_pages_inc() to fix build error. > > > > ChangeLog v2 -> v3: > > - added declaration of num_poisoned_pages_inc() in #ifdef CONFIG_MEMORY_FAILURE > > --- > > arch/parisc/kernel/pdt.c | 3 +-- > > include/linux/mm.h | 5 +++++ > > include/linux/swapops.h | 24 ++---------------------- > > mm/memory-failure.c | 10 ++++++++++ > > 4 files changed, 18 insertions(+), 24 deletions(-) > > > > diff --git a/arch/parisc/kernel/pdt.c b/arch/parisc/kernel/pdt.c > > index e391b175f5ec..fdc880e2575a 100644 > > --- a/arch/parisc/kernel/pdt.c > > +++ b/arch/parisc/kernel/pdt.c > > @@ -18,8 +18,7 @@ > > #include > > #include > > #include > > -#include > > -#include > > +#include > > I am probably missing something. > num_poisoned_pages_* functions are in swapops.h, but why are you removing swap.h as well? This file included swap.h and swapops.h together to use num_poisoned_pages_inc() by commit 0e5a7ff6e36a ("parisc: Report bad pages as HardwareCorrupted"), so I thought these may be updated together. > > Also, reading the changelog it sounded like both functions would be in mm.h, > but actually only the _inc part is. > > ChangeLog v2 -> v3: > > - added declaration of num_poisoned_pages_inc() in #ifdef CONFIG_MEMORY_FAILURE Yeah, important part of this log is "in #ifdef CONFIG_MEMORY_FAILURE", but this might not be clear from my writing. Sorry about that, I'll care about making change log clearer from now. This change log will not included when merged to mainline, so this hopefully will not confuse anyone. > > The rest looks good to me. Thank you. - Naoya Horiguchi