From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DED1A3D5667 for ; Mon, 4 May 2026 14:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777903243; cv=none; b=d4t4KxLfXrLaOmatkR5tg2QawCzu/d+M1OdxbSsvtOdYe9nSbsHF1sm5dIo9Z8RFPT4XXLdn+9EkgbkseG1X0T3Lgl5dSRybAb9PCJ3s5UpLkrNfoF3Bp6RYkylnZXal540VDi/I0F7z35XYBnry+wIE1CSUCK8J0UtSeDSIVSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777903243; c=relaxed/simple; bh=J/YMiG8amHVI+NWmZeWwV8yS8UKF2VHUJ9Vx8A+2fB4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NSXEaSyP1eakD8gBHGMD3NTk8IyVjh+jL/GMHb2H43Ed8gMUYu5plZqot8JirwLoAMut3qOxDHT8K1LTU8Zw2XXfmWiqflpO2zS8fmx798kJn9O/0t2BST2OJqhTgJEp5qW1UQWqB2Td9DEcigaP+Ymwo8fqSfLvBvlaeFHOjOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=lUTi8xOj; arc=none smtp.client-ip=185.171.202.116 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.b="lUTi8xOj" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id B2D6AC5D72D; Mon, 4 May 2026 14:01:26 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4D7E65FD5F; Mon, 4 May 2026 14:00:40 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EA15611AD25DA; Mon, 4 May 2026 16:00:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1777903238; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=J/YMiG8amHVI+NWmZeWwV8yS8UKF2VHUJ9Vx8A+2fB4=; b=lUTi8xOjyOfTouy+oxfqjK7oyZ8HrbcBIZuKm4OTWHrI3k1HmCxj0LGR4y0GRQKIyaI/Q1 OH1XTLejiavn1YCbpidfnf7m/zRUTKbilG0swCa3VIwOX/p4zCF8Ex4F4jxvaE1KMZhzfC GaIDxQrSCTxTQ+YILb4AOc45q3VqnBECM1jEz2x7xwsb+59Lchllm3wIDq+zRhbt/R/7EB KwTCBA/bo+fgPrK1I52V4kDySuHV2h5Sc8hFhg6pld6uThubN0HzRxoMOBOWKu7irtRTe8 /2u/Rjy3kl+3jaMtRMB4ySZSeJS6EzT0h+WlMFe3pjrQZuxfrmIXtNfPENppYA== From: Miquel Raynal To: Rosen Penev Cc: linux-mtd@lists.infradead.org, Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH] mtd: sm_ftl: allocate cis_buffer with main struct In-Reply-To: <20260430220719.77223-1-rosenp@gmail.com> (Rosen Penev's message of "Thu, 30 Apr 2026 15:07:19 -0700") References: <20260430220719.77223-1-rosenp@gmail.com> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Mon, 04 May 2026 16:00:37 +0200 Message-ID: <874ikns29m.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hi Rosen, On 30/04/2026 at 15:07:19 -07, Rosen Penev wrote: > Use a flexible array member and kzalloc_flex() to do so. Simplifies > memory allocation slightly. > > Signed-off-by: Rosen Penev Applied to mtd/next. Thanks, Miqu=C3=A8l