From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796267865; b=j7qawFK5yGhZIQOWTStnl9K3CERJJ+qT28F+wAAuXSUaR9N6o4XBADrlAcNGSWfLBVOD jRkoi/Bd9EWB9BTygnwj0J/BayvKQYMrnPxk+1Cq2q2janT+zGp+jcVkBBKGRoyJlB7RP MuvdkIOApYSaST1ogYxwrBYJ4ml9qWs0f80Hu4QTJNXmMYqfFNK3cc/YJxL+Wtj0Ker2u AWT/ukPEaBuaag4vyfBX7qPjj43xKFqtSi5cXC+rJlhbXp4FIyI2x4nI5mfy1nLy5Q6o/ GSWertlTIjJvf5NpRu18giMFDN+eUEgrEmUrikCwDAfipiw6uk2SRF2cCgGV3CxPFEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796267865; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Dv4Yh5scPqrum+S4L73drp7UWkt8lgaUrx0nzclMBJY=; b=AKIUGQftz0V17KWN+5gsUNRQc9C9gOwGPw2PaIaryNGcYXtbxBYU9ISpTJb135SXMYww cf5y9n3L/iwyV7xO5LX7o284sRZwisKAmsGzZXtyApMbYMNNbtVcB8OjlrUBC+CaDY3E2 BCRYuL4PQXGYep6c2rFIEWJqlNYUVYrL5W7O7CA/+w9yn0L+MOhMjHhbk7QGhzt62oZ/D dGHb788Z5litb7EHrm3CKYLHDDQbCLUeX3ytXJXil1cxU4fI1KuCPlbsEy0i1kTxHd1Qj 9cu3C5z3bD14o9uvpO0Txj5mVZe64Tdg83IYHXMMiPQCx3EJ7XCj8A+KwzF2+3e4now== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=G9SQZwxE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31ECA606A322 for ; Thu, 3 Dec 2026 03:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=G9SQZwxE Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9BD71F000C1; Thu, 3 Dec 2026 03:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796267865; bh=Dv4Yh5scPqrum+S4L73drp7UWkt8lgaUrx0nzclMBJY=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=G9SQZwxEsgkiX5rGN36RnARuGQZ3ynkESrZVc41QP/0b/8n9e3EomaON5M0eJ6Fuw 7b4qAiSS9T5osvxJYdz5EpdXqNMz9LC2ToM/8RUlWoQtOOs/JiMXaSwlj3Y4m1cykM WdRSgpfa7YOaYufTXO232E5uKtBRgFqL9gl2Z6UVVxuS3etGJ4VilPcATh7T5KYmOL 5rhLYJh80+0JqF2UTxkDcHGKLU/i4VTkD4RXjdPrw9zy4Sw4kQ9eWSf9raZzQlPmr4 4zFMJ2YsMd2yBABYmnmk/ZuXEWY6N8Ut4nnofhpSZc28VMZisakbrkA8hdlrS0vCoW Cpx8jSiZFg4uA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v2 10/13] dm: Initialise swap_bios from the runtime PAGE_SIZE Reply-To: sashiko-reviews@lists.linux.dev To: "Eric Curtin" Cc: "Ryan Roberts" , "Alasdair Kergon" , "Mike Snitzer" , "Mikulas Patocka" , "Benjamin Marzinski" , dm-devel@lists.linux.dev In-Reply-To: <20261202031647.1690622-11-ericcurtin17@gmail.com> References: <20261202031647.1690622-1-ericcurtin17@gmail.com> <20261202031647.1690622-11-ericcurtin17@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 03:17:44 +0000 X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D DM_NUMA_NODE; > =20 > #define DEFAULT_SWAP_BIOS (8 * 1048576 / PAGE_SIZE) > -static int swap_bios =3D DEFAULT_SWAP_BIOS; > +static DEFINE_GLOBAL_PAGE_SIZE_VAR(int, swap_bios, DEFAULT_SWAP_BIOS); > static int get_swap_bios(void) > { > int latch =3D 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). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202031647.1690= 622-1-ericcurtin17@gmail.com?part=3D10