Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Eric Curtin <ericcurtin17@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	 Eric Curtin <eric.curtin@docker.com>,
	Richard Weinberger <richard@nod.at>,
	 Vignesh Raghavendra <vigneshr@ti.com>,
	 linux-mtd@lists.infradead.org
Subject: Re: [RFC PATCH v2 02/13] mtd: mtdswap: Initialise mtdswap_ops with a page size variable
Date: Wed, 02 Dec 2026 12:25:41 +0100	[thread overview]
Message-ID: <87a4mnorey.fsf@bootlin.com> (raw)
In-Reply-To: <20261202031647.1690622-3-ericcurtin17@gmail.com> (Eric Curtin's message of "Wed, 2 Dec 2026 03:16:23 +0000")

On 02/12/2026 at 03:16:23 GMT, Eric Curtin <ericcurtin17@gmail.com> wrote:

> From: Eric Curtin <eric.curtin@docker.com>
>
> With arm64 boot-time page size selection PAGE_SIZE is not a
> compile-time constant, so it cannot be used in the static initialiser
> of mtdswap_ops, whose .blksize is PAGE_SIZE.
>
> Define the structure with DEFINE_GLOBAL_PAGE_SIZE_VAR(), which
> initialises it at boot when the page size is not fixed and is an
> ordinary static initialiser otherwise.
>
> No functional change for compile-time page sizes.
>
> Signed-off-by: Eric Curtin <eric.curtin@docker.com>

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>

I believe this patch has very little chance to conflict with the MTD
tree, so it can be carried through the mm tree once the series will be
applied.

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2026-12-02 11:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  3:16 [RFC PATCH v2 00/13] block/storage: Prepare for boot-time page size selection on arm64 Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 02/13] mtd: mtdswap: Initialise mtdswap_ops with a page size variable Eric Curtin
2026-12-02 11:25   ` Miquel Raynal [this message]
2026-12-02  3:16 ` [RFC PATCH v2 13/13] mm: Use PAGE_SIZE_MIN/MAX where a compile-time constant is required Eric Curtin

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=87a4mnorey.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=eric.curtin@docker.com \
    --cc=ericcurtin17@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.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