* [PATCH] soc: ti: k3-ringacc: include platform_device header
@ 2025-02-07 6:51 Siddharth Vadapalli
2025-02-07 14:15 ` Kumar, Udit
0 siblings, 1 reply; 2+ messages in thread
From: Siddharth Vadapalli @ 2025-02-07 6:51 UTC (permalink / raw)
To: peter.ujfalusi, vkoul
Cc: linux-kernel, linux-arm-kernel, u-kumar1, vigneshr, srk, s-vadapalli
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@ti.com>
---
Hello,
This patch is based on commit
bb066fe812d6 Merge tag 'pci-v6.14-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
of Mainline Linux.
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.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] soc: ti: k3-ringacc: include platform_device header
2025-02-07 6:51 [PATCH] soc: ti: k3-ringacc: include platform_device header Siddharth Vadapalli
@ 2025-02-07 14:15 ` Kumar, Udit
0 siblings, 0 replies; 2+ messages in thread
From: Kumar, Udit @ 2025-02-07 14:15 UTC (permalink / raw)
To: Siddharth Vadapalli, peter.ujfalusi, vkoul
Cc: linux-kernel, linux-arm-kernel, vigneshr, srk
Thanks for fix Siddharth
On 2/7/2025 12:21 PM, Siddharth Vadapalli wrote:
> 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@ti.com>
> ---
>
> Hello,
>
> This patch is based on commit
> bb066fe812d6 Merge tag 'pci-v6.14-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
> of Mainline Linux.
>
> 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>
>
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
> struct device_node;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-07 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-07 6:51 [PATCH] soc: ti: k3-ringacc: include platform_device header Siddharth Vadapalli
2025-02-07 14:15 ` Kumar, Udit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®