Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp715870pxf; Thu, 1 Apr 2021 11:37:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYWe+vC2AhQ813TXLSThFLIvsAt0JFJbc+tFzbsoQOttVt32IqvhBAaVISS+umWuw8WeXO X-Received: by 2002:aa7:c98f:: with SMTP id c15mr11575634edt.231.1617302229363; Thu, 01 Apr 2021 11:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617302229; cv=none; d=google.com; s=arc-20160816; b=AztzronB052hyjTWWSYI2scwY2ZYiU2x6Jalse5d0esukJh2yABpNWR4kOlnQBgX8B RLgbJl1hSNc88CzCmLfPghVR3hSzhgvd4HgvBnpA4ubX3jIQGeBKdkmdvkxGKdxqRx26 8kwp6Bvvi8lRRBJ+w1y3dD5dby00sB5ZZdTf7jWg9C+Uh40tfvjBrGyAFcb7P+EPdHG2 o9K9SLwCireX4hNyfdEhsnCKVivA2Bl4KO+YAlD1SM/sW6RdBnNCttocbgOPsUFusYkn Xb866jNsqScQj5yOki0GJNGAg+ezDa1iptF0Pjwp8YeTcsSrsa7dypBRtkg6kF0Xlk2t kILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=sCLIa/djOXnlBrGD/hAfwQP72l/u+2HRjMagahCRPws=; b=HdUnK6/IeyTJenEOrFjokTLl0cwGr2uRyHIAoMNmPVOTipXaOqw/36MJSz5aLTVGPB fmB3gurC0TzBL6eFXDz4gUBq91iDvvJZ3DcNBqvQ5kMcCZxma2ZCXnZXIcVJl/j0TD1z yCvGatkKzIRavlJOCM+Re6jo5cXDXBh6V8nmXTU2NqR+H4LA8BNjy6+SRfbpYrRP5AcQ Lr+XmXglPtqPEslTsPV5HuPIvY4qww6wonssvhud/WK5ILEYHf4VwPElfdL4vgJU0/up 7SUFC7hc0cUGemYv5nQSRmepyDeNe+oGCM5Qrd+uO7E4lN2mR/YflNQL91mqtzkAcf95 1hYw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q27si5130799edi.328.2021.04.01.11.36.46; Thu, 01 Apr 2021 11:37:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236143AbhDAScG (ORCPT + 99 others); Thu, 1 Apr 2021 14:32:06 -0400 Received: from foss.arm.com ([217.140.110.172]:46004 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238775AbhDASKG (ORCPT ); Thu, 1 Apr 2021 14:10:06 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E714315AD; Thu, 1 Apr 2021 07:34:07 -0700 (PDT) Received: from [10.163.68.23] (unknown [10.163.68.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5C0033F719; Thu, 1 Apr 2021 07:34:06 -0700 (PDT) Subject: Re: [PATCH -next 1/3] mm/debug_vm_pgtable: Fix one comment mistake To: Shixin Liu , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210401022315.2911967-1-liushixin2@huawei.com> From: Anshuman Khandual Message-ID: Date: Thu, 1 Apr 2021 20:04:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210401022315.2911967-1-liushixin2@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/1/21 7:53 AM, Shixin Liu wrote: > The branch condition should be CONFIG_TRANSPARENT_HUGEPAGE instead of > CONFIG_ARCH_HAS_PTE_DEVMAP. > > Signed-off-by: Shixin Liu > --- > mm/debug_vm_pgtable.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c > index 05efe98a9ac2..a5c71a94e804 100644 > --- a/mm/debug_vm_pgtable.c > +++ b/mm/debug_vm_pgtable.c > @@ -755,12 +755,12 @@ static void __init pmd_swap_soft_dirty_tests(unsigned long pfn, pgprot_t prot) > WARN_ON(!pmd_swp_soft_dirty(pmd_swp_mksoft_dirty(pmd))); > WARN_ON(pmd_swp_soft_dirty(pmd_swp_clear_soft_dirty(pmd))); > } > -#else /* !CONFIG_ARCH_HAS_PTE_DEVMAP */ > +#else /* !CONFIG_TRANSPARENT_HUGEPAGE */ > static void __init pmd_soft_dirty_tests(unsigned long pfn, pgprot_t prot) { } > static void __init pmd_swap_soft_dirty_tests(unsigned long pfn, pgprot_t prot) > { > } > -#endif /* CONFIG_ARCH_HAS_PTE_DEVMAP */ > +#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ > > static void __init pte_swap_tests(unsigned long pfn, pgprot_t prot) > { > LGTM, thanks for catching. But does not need a patch of it's own, instead should be folded with other potential clean ups.