linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Mike Rapoport <rppt@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Tomas Mudrunka <tomas.mudrunka@gmail.com>,
	linux-mm@kvack.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] mm: memtest: convert to memtest_report_meminfo()
Date: Tue, 8 Aug 2023 02:11:44 +0100	[thread overview]
Message-ID: <ZNGWUHj2gA62ksA8@casper.infradead.org> (raw)
In-Reply-To: <20230808012156.88924-1-wangkefeng.wang@huawei.com>

On Tue, Aug 08, 2023 at 09:21:56AM +0800, Kefeng Wang wrote:
> @@ -117,3 +118,17 @@ void __init early_memtest(phys_addr_t start, phys_addr_t end)
>  		do_one_pass(patterns[idx], start, end);
>  	}
>  }
> +
> +void memtest_report_meminfo(struct seq_file *m)
> +{
> +	unsigned long early_memtest_bad_size_kb;
> +
> +	if (!early_memtest_done)
> +		return;
> +
> +	early_memtest_bad_size_kb = early_memtest_bad_size >> 10;
> +	if (early_memtest_bad_size && !early_memtest_bad_size_kb)
> +		early_memtest_bad_size_kb = 1;
> +	/* When 0 is reported, it means there actually was a successful test */
> +	seq_printf(m, "EarlyMemtestBad:   %5lu kB\n", early_memtest_bad_size_kb);
> +}

Doesn't this function need to be under CONFIG_PROC_FS ?


  reply	other threads:[~2023-08-08  1:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-08  1:21 Kefeng Wang
2023-08-08  1:11 ` Matthew Wilcox [this message]
2023-08-08  1:32   ` Kefeng Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZNGWUHj2gA62ksA8@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=rppt@kernel.org \
    --cc=tomas.mudrunka@gmail.com \
    --cc=wangkefeng.wang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox