From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: "Ryan Roberts" <ryan.roberts@arm.com>,
"Alasdair Kergon" <agk@redhat.com>,
"Mike Snitzer" <snitzer@kernel.org>,
"Mikulas Patocka" <mpatocka@redhat.com>,
"Benjamin Marzinski" <bmarzins@redhat.com>,
dm-devel@lists.linux.dev
Subject: Re: [RFC PATCH v2 10/13] dm: Initialise swap_bios from the runtime PAGE_SIZE
Date: Thu, 03 Dec 2026 03:17:44 +0000 [thread overview]
Message-ID: <sashiko-outbox-247082@kernel.org> (raw)
In-Reply-To: <20261202031647.1690622-11-ericcurtin17@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] dm: undefined DEFINE_GLOBAL_PAGE_SIZE_VAR() macro breaks build
--
commit 53fd2b47223fde7d024a3afbb496a6d01f0c4e5e
Author: Ryan Roberts <ryan.roberts@arm.com>
dm: Initialise swap_bios from the runtime PAGE_SIZE
This commit replaces the static definition of swap_bios with
DEFINE_GLOBAL_PAGE_SIZE_VAR() so it can be initialized when PAGE_SIZE is
determined at boot time.
> diff --git a/drivers/md/dm.c b/drivers/md/dm.c
> index 38eaae8ac9b47..d47412e0b9577 100644
> --- a/drivers/md/dm.c
> +++ b/drivers/md/dm.c
> @@ -126,7 +126,7 @@ EXPORT_SYMBOL_GPL(dm_bio_get_target_bio_nr);
> static int dm_numa_node = DM_NUMA_NODE;
>
> #define DEFAULT_SWAP_BIOS (8 * 1048576 / PAGE_SIZE)
> -static int swap_bios = DEFAULT_SWAP_BIOS;
> +static DEFINE_GLOBAL_PAGE_SIZE_VAR(int, swap_bios, DEFAULT_SWAP_BIOS);
> static int get_swap_bios(void)
> {
> int latch = READ_ONCE(swap_bios);
[Severity: High]
Does this break the build when CONFIG_BLK_DEV_DM is enabled?
DEFINE_GLOBAL_PAGE_SIZE_VAR() is not defined anywhere in the tree, which
causes a syntax error at this declaration and leaves swap_bios undeclared
in get_swap_bios() and module_param(swap_bios, int, 0644).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202031647.1690622-1-ericcurtin17@gmail.com?part=10
next prev parent reply other threads:[~2026-12-03 3:17 UTC|newest]
Thread overview: 30+ 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 ` Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 01/13] scsi: core: Add dma_boundary_page for page-size DMA boundaries Eric Curtin
2026-12-03 3:17 ` sashiko-bot
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 3:16 ` Eric Curtin
2026-12-02 11:25 ` Miquel Raynal
2026-12-02 11:25 ` Miquel Raynal
2026-12-03 3:17 ` sashiko-bot
2026-12-02 3:16 ` [RFC PATCH v2 03/13] mmc: mmc_test: Allocate the scratch buffer with the test buffer Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 04/13] md: Remove compile-time PAGE_SIZE use in md, dm and bcache Eric Curtin
2026-12-03 3:17 ` sashiko-bot
2026-12-02 3:16 ` [RFC PATCH v2 05/13] zram: Remove PAGE_SIZE use in preprocessor conditionals Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 06/13] xen/blkback: Size indirect_pages for the largest page size Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 07/13] null_blk: Size the nullb_page bitmap for PAGE_SIZE_MAX Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 08/13] drbd: Use PAGE_SHIFT_MIN in preprocessor checks Eric Curtin
2026-12-02 3:16 ` [RFC PATCH v2 09/13] nvme: Check the DSM range buffer against PAGE_SIZE_MIN Eric Curtin
2026-12-03 3:17 ` sashiko-bot
2026-12-02 3:16 ` [RFC PATCH v2 10/13] dm: Initialise swap_bios from the runtime PAGE_SIZE Eric Curtin
2026-12-03 3:17 ` sashiko-bot [this message]
2026-12-02 3:16 ` [RFC PATCH v2 11/13] virtio: Handle boot-time PAGE_SIZE in balloon, blk and 9p transport Eric Curtin
2026-12-03 3:17 ` sashiko-bot
2026-12-02 3:16 ` [RFC PATCH v2 12/13] ata: sata_sil24: Use flexible arrays for the command block SGEs Eric Curtin
2026-12-02 7:10 ` Damien Le Moal
2026-12-03 3:17 ` sashiko-bot
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
2026-12-02 3:16 ` Eric Curtin
2026-12-03 3:17 ` sashiko-bot
2026-12-03 3:17 ` sashiko-bot
2026-12-03 3:17 ` [RFC PATCH v2 00/13] block/storage: Prepare for boot-time page size selection on arm64 sashiko-bot
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=sashiko-outbox-247082@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agk@redhat.com \
--cc=bmarzins@redhat.com \
--cc=dm-devel@lists.linux.dev \
--cc=ericcurtin17@gmail.com \
--cc=mpatocka@redhat.com \
--cc=ryan.roberts@arm.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=snitzer@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.