Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796210750; b=KOvFUaIv4dHdJ0NZ9n7SAQADrx255xxwg4+k1fNkm74nSoZvxNkuiaUw9qrl4qcuBQBk pjRDTw7dWwtrceeynyHwVzZtIXpyc8+plWsKbU3QeKe5fvYidyrydEWLc8cUJDsZb/Oye K0YIkfqZrw3m8iIS1eR2N2SAzWXMfl9xMM7gF8hMcnJrvJNox1pxAMJ9YQ++6KeOTjMyc D50VvrsC6jPylhDWIwENo5CMDcc/VZXW0LWvNWXis4V+VZNcGFogaJeSmsyrQ2tuMIHUw 8+WXlZJ2BgKr2/fRopbMWFmGbw5qwWjg7pRCZTatqn7pfLX7raFJ2oJPkQYDZYksuvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796210750; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=NnqC9MEABjmx8T2mFqOZz3y0/5tZqMwa0x9AJngIlTM=; b=Gwb0Uo1KTgMx4UaavcPhMDLqy+BddUFel+n4i9XfckcgYyEt+ZH7ShwU7JGo3Yhj3vpN yP6sb9zo9pkBWwojwUPymDt+IB9Rz59S9rj3OJTVSYyAq/vB0mNbNd346SsoxOuYwiA5v UXo5ieIk3diJvhADBgDhmFhCoYwavKtPMsiJa02uKDQSHPXSROhQzz/5jli0W7RDqTPN8 swWx/RePDASsnQU3ANAPdTKofotokdEnrA2VMvnHqukehJDl9kKAKIQeOBDcTy3FZb8Wg YE/k5rhbbY2YsNrsEjYb4F9doEGeZR6ENhCkk+XRxOL5PIKRKm0nQ/yjL1t1wz3a4BQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=c2dvZ+da; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45B2A606A31A for ; Wed, 2 Dec 2026 11:25:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 45B2A606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=c2dvZ+da Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 2E30EC2AC48; Wed, 2 Dec 2026 11:25:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 25A136075F; Wed, 2 Dec 2026 11:25:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8EB5511EA2A4E; Wed, 02 Dec 2026 12:25:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796210743; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=NnqC9MEABjmx8T2mFqOZz3y0/5tZqMwa0x9AJngIlTM=; b=c2dvZ+dat1EV2MIaEU8PWOfqVewPoLhGF6S9uYyf0rPuwLyldLIlFTudg/7bWbzG7JYnjC oYhLRGpAPwSs9lO1WrA8PhLxQ/PUh3FUTGxjdjH8G0gjO9+4iH54+YNED3e+bq+IPA7koA /ukHt7XUCwy2JvohFXogkLRk4n6OMN2SCu80biz2HTW6MEliwS21hbCZRtVIBTmeFfLH3A ncTm2nRyI2Y3vk2kg/+10K8WL1bixg3ZKDoOdFW4S2CeYkF8t/voc4k/yOeMsA730N2kUJ SB+26AtTSfs0tm724twS91MJ+Db4OeW7+QZFaRZWBs1XheIuTBkd9AosBc/Pww== From: Miquel Raynal To: Eric Curtin Cc: linux-kernel@vger.kernel.org, Eric Curtin , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: Re: [RFC PATCH v2 02/13] mtd: mtdswap: Initialise mtdswap_ops with a page size variable In-Reply-To: <20261202031647.1690622-3-ericcurtin17@gmail.com> (Eric Curtin's message of "Wed, 2 Dec 2026 03:16:23 +0000") References: <20261202031647.1690622-1-ericcurtin17@gmail.com> <20261202031647.1690622-3-ericcurtin17@gmail.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Wed, 02 Dec 2026 12:25:41 +0100 Message-ID: <87a4mnorey.fsf@bootlin.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 02/12/2026 at 03:16:23 GMT, Eric Curtin wrote: > From: Eric Curtin > > 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 Acked-by: Miquel Raynal 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=C3=A8l