From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 5B4183ED11D for ; Fri, 3 Jul 2026 13:49:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783086545; cv=none; b=s4p1plSAbPa13ZfFCe/ZuCRa9OdfK5GMAWsz0LdpsL1gUcnLcrQhOlRQB7ApH3kPDAmfF6rJQs6OfQ313WbByJaoDAJoYYlBCoCxAbfao+O+vnYECOpwe4UzPbqm7bSPse7a4+RNKOUW3bZyfTz9rK3KAlCIfcSX2z8MUrkavVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783086545; c=relaxed/simple; bh=vZbGDZUbEgtgujC/jTnvZGw//LKqnWsiMosk5ascyzI=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=b9t58+VUEgrWpOgWFHWXQAMHg595PxByp5NJ9ciTRN9w2h7HXIlujk4FymxziCZkz23cs+9LRLRFZ1qPs3JiK19wTmFEHPu6QZZbEMQ2SxbZqOXuNsSh3qw7LF5BFMB3+4/buaaDFs/LCUgZnr5Mb65A856WZr+kfkyhztUbNyc= 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=0VsvUm0Q; arc=none smtp.client-ip=185.246.84.56 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="0VsvUm0Q" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id D516A1A0E1C; Fri, 3 Jul 2026 13:49:01 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A1AB560300; Fri, 3 Jul 2026 13:49:01 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BE763104C9464; Fri, 3 Jul 2026 15:48:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1783086540; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=esFP34U5TYPLKe5S80BzE1rdYYJEPOvrVqywVP6uVMo=; b=0VsvUm0QepK4wxG9+feba0HqKQnh3G3RLlAhnvrHYPc6D9a6obqbt0JS9bYig86jajsk36 0SJ1PK49NRjoy7ZjpcpReTwRVqhA2OlWOacIi3V36AGVtVDneQonsr9E2cfcGSbdSanR86 E5v1GdD1H3i4J6nG1PFAI4BBGhpNiINr26XJ5SZ9koHbtL3Ed3y0aLuOWE3GMYLqgy/7gK u0KmNUbA3SpbhyItcqs+ssN318f4sNC1mWQfn0fyUjFor322RxxPRISRM/CrNxf2UoPkP8 qp6IO1Nxc+m4D+BE9RHmZbTRR9Y0hf5wu6lScJZjcO5BNL3FaO0OjbHFtBtilQ== From: Miquel Raynal To: linux-mtd@lists.infradead.org, Rosen Penev Cc: Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20260630012332.1471829-1-rosenp@gmail.com> References: <20260630012332.1471829-1-rosenp@gmail.com> Subject: Re: [PATCH] mtd: rawnand: atmel: use struct_size Message-Id: <178308653758.836059.3322930880325591440.b4-ty@bootlin.com> Date: Fri, 03 Jul 2026 15:48:57 +0200 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: 8bit X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 On Mon, 29 Jun 2026 18:23:32 -0700, Rosen Penev wrote: > The comment above makes it clear that this is a single element for > legacy handling. Clarify that with struct_size and avoid manual pointer > math. > > Applied to nand/next, thanks! [1/1] mtd: rawnand: atmel: use struct_size commit: 591b5ac17301acfbc8204dfa377353f2b20efc5b Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then). Kind regards, Miquèl