Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp999652rwi; Thu, 13 Oct 2022 07:54:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70dG+hZ/8KTSx83bMXucDj01qvHo0eTu/S1BNPUHzfUwHTRHU21ZCnwuNEHdfYj4bTunuB X-Received: by 2002:a17:90b:1d8b:b0:20d:30a5:499e with SMTP id pf11-20020a17090b1d8b00b0020d30a5499emr11792268pjb.84.1665672855375; Thu, 13 Oct 2022 07:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665672855; cv=none; d=google.com; s=arc-20160816; b=roO0dsKxJsKbqgFH+s4fauhQSQnxFSvKrOnNUd77tC/5ThTpDItx3d9zei5zeLw7G9 syGhw1xDY4vPo0EYRmxvxfqaerufH9NfsVdx60/IxLomBXT9aMgA7aPU8vEtvHeB1tkY T3LAo/PPROsPKJI59jre3yOz17h7FGdIG4h+aag9vnH+lkXI/N+UE6h/VNPdGwmyuYnO AzFT+mIz2UJ7viqsYbsJTNyXG+/wbVKGTBYWr8GZCZGK8+ENEkr71U8E32FCzLL24VkU mPthKmCCItEc22ql0iRzxQkyMMEm56ntbEscYeIeUze+Nh5/wqmmgGMFW5g1uu/Mk6oM +0cA== 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 :dkim-signature; bh=8MHXO/VcwDd2Zl4hT/pNxqi1pKywIsb48dxy9NcH1w0=; b=WbQKC56LKIGs4e2lRcgauNnijETL2zuEZedpFYKyoLPippM9v89ScLoA3Nfd4L6i/I CB3nbEk0rnh4lDUXBRYbo8sfdN5K+YejNrTvsNToUPwL6SdyAdB6SU5wdxn3DtBBvKGj iJe4vgzccfAjQuFDSSBMYuYtKBx8HZRY2gPkHkDF3LGv8PmkHLBnG4FxZtH1Ftw+kF4k V9jXOoKcOYrq2l9La9MYP9zdXKBnYa8PjpkY6D98kFeOWPY3e4LkStnr05tMrWHLkxjs fXQe2S46pE90NljEa3lxn+oB0HffXTzRX+a0wP6P1oWcDwxUXeHO4kjAxzSjQITjkEp/ VVLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="o/9xIdbP"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x188-20020a6231c5000000b005635bfe397bsi12205532pfx.218.2022.10.13.07.53.59; Thu, 13 Oct 2022 07:54:15 -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=@suse.de header.s=susede2_rsa header.b="o/9xIdbP"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229511AbiJMOb7 (ORCPT + 99 others); Thu, 13 Oct 2022 10:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiJMOb5 (ORCPT ); Thu, 13 Oct 2022 10:31:57 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D94BBA0273 for ; Thu, 13 Oct 2022 07:31:56 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 957D321BBD; Thu, 13 Oct 2022 14:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1665671515; h=from:from:reply-to: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=8MHXO/VcwDd2Zl4hT/pNxqi1pKywIsb48dxy9NcH1w0=; b=o/9xIdbPAnQcVAEW8DeoieMLQecxGY4CNEkADiXkB+zytkQa4HjiqtdCTTSP789AP7MPbG C6PUbGtMJ8CluFdLwNIfpf1ESrIpbkIet7pNyZvVjbPRGKFl3eUV0AmnoA3r6+c2a0KayO XSujkWskoPxIJG5Q0MZEsy755tC5uew= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1665671515; h=from:from:reply-to: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=8MHXO/VcwDd2Zl4hT/pNxqi1pKywIsb48dxy9NcH1w0=; b=rP/0aiCDVD8XDyVFAO4zYC01A4sydphKpL5r6s0v+aSlKmIg39vx9N1iuxZhhbijmxYDQc nkpaCPhpAi/jAJAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E0F23139F3; Thu, 13 Oct 2022 14:31:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qaqQM1ohSGMRXAAAMHmgww (envelope-from ); Thu, 13 Oct 2022 14:31:54 +0000 Date: Thu, 13 Oct 2022 16:31:53 +0200 From: Oscar Salvador To: Naoya Horiguchi 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: References: <20221007010706.2916472-1-naoya.horiguchi@linux.dev> <20221007010706.2916472-3-naoya.horiguchi@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221007010706.2916472-3-naoya.horiguchi@linux.dev> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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? Also, reading the changelog it sounded like both functions would be in mm.h, but actually only the _inc part is. The rest looks good to me. -- Oscar Salvador SUSE Labs