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 7044222FDEC; Mon, 2 Jun 2025 14:29:06 +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=1748874546; cv=none; b=m5a1yXFmdOeGV5biM+NMcCDHG+u+Me12AU4UDGoliwgkwDtk+Jwk1lVZ1t6nzzOgBxGAxNFtCEZtfkJHit0AHLuM/Se/b5FS1DYE8YDj0KU5tMKubiH0kUwyXP25xyHDVAnnknqDBBvQWnuLCjAhidR4PtTAqILiokzXAO8oaPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748874546; c=relaxed/simple; bh=0xyWemI2tVg6Omp+tgFQ4q9PVjfuWYATqM9c+PioJ8k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q5uHKDblPzF87OXBUEj+8H9TPUxJN19hX6xrp/DB7JPMsihRRt+1aKa3YvceVLnu6/E/O1swOOYL2ELiv97FU64E2U/G7ejb3e39FhFNYMcCL/WJ4xy+dkDUcShXnJL8oJendxvXKXZkAAuHq7klDyeo27P1hMIF2BoHFgfChMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lNnAqkPI; 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="lNnAqkPI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5ADAC4CEEB; Mon, 2 Jun 2025 14:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748874546; bh=0xyWemI2tVg6Omp+tgFQ4q9PVjfuWYATqM9c+PioJ8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lNnAqkPImukOr7/Ez9hUhBUPqWEUTXbYgWDD6ao4Ncks313MAnOk/6izAaBTQEmV3 JUGsnssE3Vtvo8jfOSMvdI1/8nioVEe+wWAmoRT9Iiri9yHvkTUzkpa36CbGpyzxjP RlY2tlmwksn6g/vzlxl9atqi82e3fBevsju1nK8E= 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.4 058/204] iio: adc: dln2: Use aligned_s64 for timestamp Date: Mon, 2 Jun 2025 15:46:31 +0200 Message-ID: <20250602134257.963131700@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134255.449974357@linuxfoundation.org> References: <20250602134255.449974357@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.4-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 2e37834633ff8..02addbd33ebe6 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