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 AE5DC297132; Mon, 12 May 2025 18:12:26 +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=1747073546; cv=none; b=Z6Qb4LJvBUrt1etXdZ6r5U/UEla1gB422XQRnqoNsizzL3EgToTE+S1nraOuohm4eNoLN6e8KZ03y1BBwprta94X5OYUu1+V8jDj/iMQ7MwVhw+SkpsxjXZe14Zl19dTzYagwPFoPWglsvcPywrqxEZFvAr9d7b1jgdSkQq3zpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073546; c=relaxed/simple; bh=jxzzxdxdbWR7BuoFPUUI0CDQbApVM3849cHbtn97oVQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NK4NW05rLfxwXmXOII6cGee2d4+UqLVK4jm3/otWgUlnu9+tlHO3tx3RKDicV//Xlzp9KCR2y0XkYAlGKI+GwlI+fMyBYSFR76AmjSVYuYk2ScnFiPezXBTquF3kJLBEUlatOb4FLTzjIG5dmaeCL3Yzpm8I+qghqskbN0EzLoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o4DFKAmz; 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="o4DFKAmz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36568C4CEE7; Mon, 12 May 2025 18:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747073546; bh=jxzzxdxdbWR7BuoFPUUI0CDQbApVM3849cHbtn97oVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o4DFKAmzDaLQqWIi21ljGP8X7Q9f8jd1o6j22HZ9D4Y4LwTjgL9fVCGkOi3+VKQYe OHp7Knx2MF2tYa4Ed0ND2PniMNuMI29P3v6Pxu5l5Suy+cG8uf43wkLXKou85F3hVI HnKzrfCkXGPl466ROx54RcBxwtPY0+BrlZYxKL10= 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 6.6 083/113] iio: adc: dln2: Use aligned_s64 for timestamp Date: Mon, 12 May 2025 19:46:12 +0200 Message-ID: <20250512172031.062902385@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512172027.691520737@linuxfoundation.org> References: <20250512172027.691520737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-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 97d162a3cba4e..49a2588e7431e 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