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 73FF52BEC4D; Mon, 12 May 2025 18:05:30 +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=1747073131; cv=none; b=UIZmGsu/QbLzBYj3idFKQySACWDnuJs2n3d+BrCeFbEyBWjV8OZ3xC54Wb09IFmQ0km9MGP2VWex89mFySIKBvkmHC9g75wd3Kfpnev49NNjyBym5ZhRXOwB6ljW/4g9jYhTbFDKTGw5qcSCiGSPXsByoiWPIiDvi1nT/x73xyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073131; c=relaxed/simple; bh=Brqwedq1oQf2abwM2CgEcDUmRfjVa+gogLtR5p7FXIA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DiTbLyAJZpnSXh5SewvSQx9LikeFKCryLaqKGGYCnWyXmGNWhhfMokASjuCUqKMKjNBQw/zd9rxIwUnWvqAZRjC0I4H5oTkPwqRwFXuKJ1mZR2wRYYR/SpQ7XuAU5Mur1JrN9S9msACW/OqCYnlr0rBZOBzsR232DqGdFZJXbFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zhp3zhYL; 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="Zhp3zhYL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B97C4CEE7; Mon, 12 May 2025 18:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747073130; bh=Brqwedq1oQf2abwM2CgEcDUmRfjVa+gogLtR5p7FXIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zhp3zhYLgY+hwu5/i1fBVboLFpaA99ucKjFUd3OPWHz1Li1DnZaVj3RqlfGih03jT fWtJghlbZX75rvm16TUQ8gM9557MfXbpnhofsggEVBxhLtuzTKXEv/gumpuKIrSajY W6CzUlJLoKeO91vuzh7pJwHgVlyFQ1BJFIqTO+rM= 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.12 134/184] iio: adc: dln2: Use aligned_s64 for timestamp Date: Mon, 12 May 2025 19:45:35 +0200 Message-ID: <20250512172047.273427779@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512172041.624042835@linuxfoundation.org> References: <20250512172041.624042835@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.12-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 de7252a10047d..84c23d3def597 100644 --- a/drivers/iio/adc/dln2-adc.c +++ b/drivers/iio/adc/dln2-adc.c @@ -481,7 +481,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