public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2] soc: ti: k3-ringacc: include platform_device header
@ 2026-02-20  7:02 Siddharth Vadapalli
  2026-02-25  7:48 ` Vinod Koul
  0 siblings, 1 reply; 6+ messages in thread
From: Siddharth Vadapalli @ 2026-02-20  7:02 UTC (permalink / raw)
  To: nm, vigneshr, u-kumar1, vkoul
  Cc: linux-kernel, linux-arm-kernel, 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>
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
---

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@ti.com/
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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] soc: ti: k3-ringacc: include platform_device header
  2026-02-20  7:02 [PATCH v2] soc: ti: k3-ringacc: include platform_device header Siddharth Vadapalli
@ 2026-02-25  7:48 ` Vinod Koul
  2026-02-25 10:03   ` Siddharth Vadapalli
  0 siblings, 1 reply; 6+ messages in thread
From: Vinod Koul @ 2026-02-25  7:48 UTC (permalink / raw)
  To: Siddharth Vadapalli
  Cc: nm, vigneshr, u-kumar1, linux-kernel, linux-arm-kernel, srk

On 20-02-26, 12:32, 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.

Which tree is this intended to get picked by?

-- 
~Vinod


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] soc: ti: k3-ringacc: include platform_device header
  2026-02-25  7:48 ` Vinod Koul
@ 2026-02-25 10:03   ` Siddharth Vadapalli
  2026-02-25 10:28     ` Nishanth Menon
  0 siblings, 1 reply; 6+ messages in thread
From: Siddharth Vadapalli @ 2026-02-25 10:03 UTC (permalink / raw)
  To: Vinod Koul
  Cc: nm, vigneshr, u-kumar1, linux-kernel, linux-arm-kernel, srk,
	s-vadapalli

On 25/02/26 13:18, Vinod Koul wrote:
> On 20-02-26, 12:32, 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.
> 
> Which tree is this intended to get picked by?
> 

I assume it is the SoC tree since 'get_maintainer.pl' doesn't output a 
mailing list apart from 'linux-kernel@vger.kernel.org'.

Regards,
Siddharth.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] soc: ti: k3-ringacc: include platform_device header
  2026-02-25 10:03   ` Siddharth Vadapalli
@ 2026-02-25 10:28     ` Nishanth Menon
  2026-02-25 10:38       ` Siddharth Vadapalli
  0 siblings, 1 reply; 6+ messages in thread
From: Nishanth Menon @ 2026-02-25 10:28 UTC (permalink / raw)
  To: Siddharth Vadapalli
  Cc: Vinod Koul, vigneshr, u-kumar1, linux-kernel, linux-arm-kernel,
	srk

On 15:33-20260225, Siddharth Vadapalli wrote:
> On 25/02/26 13:18, Vinod Koul wrote:
> > On 20-02-26, 12:32, 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.
> > 
> > Which tree is this intended to get picked by?
> > 
> 
> I assume it is the SoC tree since 'get_maintainer.pl' doesn't output a
> mailing list apart from 'linux-kernel@vger.kernel.org'.
> 

drivers/soc/ti/k3-ringacc.c already includes the header.. so who needs
it?

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] soc: ti: k3-ringacc: include platform_device header
  2026-02-25 10:28     ` Nishanth Menon
@ 2026-02-25 10:38       ` Siddharth Vadapalli
  2026-02-25 11:57         ` Nishanth Menon
  0 siblings, 1 reply; 6+ messages in thread
From: Siddharth Vadapalli @ 2026-02-25 10:38 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: s-vadapalli, Vinod Koul, vigneshr, u-kumar1, linux-kernel,
	linux-arm-kernel, srk

On 25/02/26 15:58, Nishanth Menon wrote:
> On 15:33-20260225, Siddharth Vadapalli wrote:
>> On 25/02/26 13:18, Vinod Koul wrote:
>>> On 20-02-26, 12:32, 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.
>>>
>>> Which tree is this intended to get picked by?
>>>
>>
>> I assume it is the SoC tree since 'get_maintainer.pl' doesn't output a
>> mailing list apart from 'linux-kernel@vger.kernel.org'.
>>
> 
> drivers/soc/ti/k3-ringacc.c already includes the header.. so who needs
> it?
> 

At the point in time that the v1 patch was posted, this was needed for the 
patch in an RFC series:
https://lore.kernel.org/r/20240518124234.2671651-19-s-vadapalli@ti.com/
Although the RFC series hasn't been merged, since it is still possible for
non platform-device users to call the DMA APIs which in turn depend on the 
k3-ringacc APIs being exported, I posted the v2 patch.

If you believe that this patch should be posted along with the dependent 
series, I will do so and the patch can be ignored.

Regards,
Siddharth.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] soc: ti: k3-ringacc: include platform_device header
  2026-02-25 10:38       ` Siddharth Vadapalli
@ 2026-02-25 11:57         ` Nishanth Menon
  0 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2026-02-25 11:57 UTC (permalink / raw)
  To: Siddharth Vadapalli
  Cc: Vinod Koul, vigneshr, u-kumar1, linux-kernel, linux-arm-kernel,
	srk

On 16:08-20260225, Siddharth Vadapalli wrote:
> On 25/02/26 15:58, Nishanth Menon wrote:
> > On 15:33-20260225, Siddharth Vadapalli wrote:
> > > On 25/02/26 13:18, Vinod Koul wrote:
> > > > On 20-02-26, 12:32, 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.
> > > > 
> > > > Which tree is this intended to get picked by?
> > > > 
> > > 
> > > I assume it is the SoC tree since 'get_maintainer.pl' doesn't output a
> > > mailing list apart from 'linux-kernel@vger.kernel.org'.
> > > 
> > 
> > drivers/soc/ti/k3-ringacc.c already includes the header.. so who needs
> > it?
> > 
> 
> At the point in time that the v1 patch was posted, this was needed for the
> patch in an RFC series:
> https://lore.kernel.org/r/20240518124234.2671651-19-s-vadapalli@ti.com/
> Although the RFC series hasn't been merged, since it is still possible for
> non platform-device users to call the DMA APIs which in turn depend on the
> k3-ringacc APIs being exported, I posted the v2 patch.
> 
> If you believe that this patch should be posted along with the dependent
> series, I will do so and the patch can be ignored.

The right thing, IMHO is to include the header in the files that need it.
We don't need a single kernel.h with everything piled on it.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-25 11:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20  7:02 [PATCH v2] soc: ti: k3-ringacc: include platform_device header Siddharth Vadapalli
2026-02-25  7:48 ` Vinod Koul
2026-02-25 10:03   ` Siddharth Vadapalli
2026-02-25 10:28     ` Nishanth Menon
2026-02-25 10:38       ` Siddharth Vadapalli
2026-02-25 11:57         ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox