From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 86E5F22259A; Mon, 2 Jun 2025 14:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748875256; cv=none; b=nfwaXZQstR88qboUFd/cpAxXhJcVFlHaXxGw0BDZnRzmNwaIn8I3zMW67OpJI6twvkOpxVF7aFL5i3ExGKle6gWaAABrnVIDGNdwcaP03eTG/9ycjALHhfFoTfxzadaX56PQScqhXtQrdaUDEveaYvd2bRYKN9ztmdstj0GxkXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748875256; c=relaxed/simple; bh=6qZtpdSc0zTSvivRRRE7qHiuL36Z4IT6eYTWflI05zw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EyBWiY+JygIr/gXfkDez268fIOn2CcB9U9v/61XUieIBpe1C1uD29a1s+BZFiMjTnz3MtjqV2VFpzEoiSvxe+Nm92FCZYVYJdgoG5hSz5DcFG6owIJjEJ58RHFozJjgJ7/6omXH2qjQm5bb19bbAiZ2qo9sZiRVEqVVN8Xr6ddQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0oM2BsSa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0oM2BsSa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06829C4CEEB; Mon, 2 Jun 2025 14:40:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748875256; bh=6qZtpdSc0zTSvivRRRE7qHiuL36Z4IT6eYTWflI05zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0oM2BsSaBwd5wnWPPVGFFoYUiTEEA6Vfah4hMhvR2bHIZPSPkC1A1UH15msWKjn0i V1+sHeDvSQPH4wHaOZawTGL5XtWSlI00t/TyYIBKwQDUwhrabgydZKFklPqsmNkZzL Epv4+7Z7lJgQNoohOTQVLKLgwyCeX3szPn7cW5Rk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Lechner , Andy Shevchenko , =?UTF-8?q?Nuno=20S=C3=A1?= , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.10 078/270] iio: adc: dln2: Use aligned_s64 for timestamp Date: Mon, 2 Jun 2025 15:46:03 +0200 Message-ID: <20250602134310.363734577@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134307.195171844@linuxfoundation.org> References: <20250602134307.195171844@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonathan Cameron [ Upstream commit 5097eaae98e53f9ab9d35801c70da819b92ca907 ] Here the lack of marking allows the overall structure to not be sufficiently aligned resulting in misplacement of the timestamp in iio_push_to_buffers_with_timestamp(). Use aligned_s64 to force the alignment on all architectures. Fixes: 7c0299e879dd ("iio: adc: Add support for DLN2 ADC") Reported-by: David Lechner Reviewed-by: Andy Shevchenko Reviewed-by: Nuno Sá Reviewed-by: David Lechner Link: https://patch.msgid.link/20250413103443.2420727-4-jic23@kernel.org Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- drivers/iio/adc/dln2-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/dln2-adc.c b/drivers/iio/adc/dln2-adc.c index 58b3f6065db0d..e29eb38a50690 100644 --- a/drivers/iio/adc/dln2-adc.c +++ b/drivers/iio/adc/dln2-adc.c @@ -483,7 +483,7 @@ static irqreturn_t dln2_adc_trigger_h(int irq, void *p) struct iio_dev *indio_dev = pf->indio_dev; struct { __le16 values[DLN2_ADC_MAX_CHANNELS]; - int64_t timestamp_space; + aligned_s64 timestamp_space; } data; struct dln2_adc_get_all_vals dev_data; struct dln2_adc *dln2 = iio_priv(indio_dev); -- 2.39.5