[PATCH v2] soc: ti: k3-ringacc: include platform_device header
From: Siddharth Vadapalli
Date: Fri Feb 20 2026 - 02:01:40 EST
Users of "k3-ringacc" APIs may not necessarily be platform devices. Such
users therefore will not include "platform_device.h", resulting in
compilation warnings for the APIs declared in "k3-ringacc.h" which assume
inclusion of "platform_device.h" by its users.
Fix the compilation warnings by including the "platform_device" header
file, which should ideally have been included since commit under Fixes.
Fixes: d782298c6f6b ("soc: ti: k3-ringacc: add AM64 DMA rings support.")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@xxxxxx>
Reviewed-by: Udit Kumar <u-kumar1@xxxxxx>
---
Hello,
This patch is based on commit
8bf22c33e7a1 Merge tag 'net-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
of Mainline Linux.
v1 of this patch is at:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/20250207065123.879863-1-s-vadapalli@xxxxxx/
Changes since v1:
- Collected R-b tag.
- Rebased patch.
Regards,
Siddharth.
include/linux/soc/ti/k3-ringacc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/soc/ti/k3-ringacc.h b/include/linux/soc/ti/k3-ringacc.h
index 39b022b92598..6bbb58068048 100644
--- a/include/linux/soc/ti/k3-ringacc.h
+++ b/include/linux/soc/ti/k3-ringacc.h
@@ -8,6 +8,7 @@
#ifndef __SOC_TI_K3_RINGACC_API_H_
#define __SOC_TI_K3_RINGACC_API_H_
+#include <linux/platform_device.h>
#include <linux/types.h>
struct device_node;
--
2.51.1