* [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h
@ 2024-01-22 8:22 Andreas Larsson
2024-01-28 0:31 ` Greg Kroah-Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Larsson @ 2024-01-22 8:22 UTC (permalink / raw)
To: Alan Stern, linux-usb
Cc: Greg Kroah-Hartman, Rob Herring, linux-kernel, software
This fixes relying upon linux/of_platform.h to include
linux/platform_device.h, which it no longer does, thereby fixing
compilation problems like:
In file included from drivers/usb/host/uhci-hcd.c:850:
drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
92 | struct device_node *dn = op->dev.of_node;
| ^~
Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h")
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
---
drivers/usb/host/uhci-grlib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/uhci-grlib.c b/drivers/usb/host/uhci-grlib.c
index ac3fc5970315..cfebb833668e 100644
--- a/drivers/usb/host/uhci-grlib.c
+++ b/drivers/usb/host/uhci-grlib.c
@@ -22,6 +22,7 @@
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
+#include <linux/platform_device.h>
static int uhci_grlib_init(struct usb_hcd *hcd)
{
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h
2024-01-22 8:22 [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h Andreas Larsson
@ 2024-01-28 0:31 ` Greg Kroah-Hartman
2024-01-29 7:41 ` Andreas Larsson
0 siblings, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-01-28 0:31 UTC (permalink / raw)
To: Andreas Larsson
Cc: Alan Stern, linux-usb, Rob Herring, linux-kernel, software
On Mon, Jan 22, 2024 at 09:22:25AM +0100, Andreas Larsson wrote:
> This fixes relying upon linux/of_platform.h to include
> linux/platform_device.h, which it no longer does, thereby fixing
> compilation problems like:
>
> In file included from drivers/usb/host/uhci-hcd.c:850:
> drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
> drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
> 92 | struct device_node *dn = op->dev.of_node;
> | ^~
>
> Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h")
I don't see this commit id in Linus's tree, where is it?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h
2024-01-28 0:31 ` Greg Kroah-Hartman
@ 2024-01-29 7:41 ` Andreas Larsson
2024-01-29 7:50 ` [PATCH v2] " Andreas Larsson
2024-01-29 14:58 ` [PATCH] " Greg Kroah-Hartman
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Larsson @ 2024-01-29 7:41 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Alan Stern, linux-usb, Rob Herring, linux-kernel, software
On 2024-01-28 01:31, Greg Kroah-Hartman wrote:
> On Mon, Jan 22, 2024 at 09:22:25AM +0100, Andreas Larsson wrote:
>> This fixes relying upon linux/of_platform.h to include
>> linux/platform_device.h, which it no longer does, thereby fixing
>> compilation problems like:
>>
>> In file included from drivers/usb/host/uhci-hcd.c:850:
>> drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
>> drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
>> 92 | struct device_node *dn = op->dev.of_node;
>> | ^~
>>
>> Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h")
>
> I don't see this commit id in Linus's tree, where is it?
Ah, sorry, it went into Linus's tree with a different commit ID. I
should have referred to ef175b29a242.
Cheers,
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2] usb: uhci-grlib: Explicitly include linux/platform_device.h
2024-01-29 7:41 ` Andreas Larsson
@ 2024-01-29 7:50 ` Andreas Larsson
2024-01-29 14:58 ` [PATCH] " Greg Kroah-Hartman
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Larsson @ 2024-01-29 7:50 UTC (permalink / raw)
To: Alan Stern, linux-usb, Greg Kroah-Hartman
Cc: Rob Herring, linux-kernel, software
This fixes relying upon linux/of_platform.h to include
linux/platform_device.h, which it no longer does, thereby fixing
compilation problems like:
In file included from drivers/usb/host/uhci-hcd.c:850:
drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
92 | struct device_node *dn = op->dev.of_node;
| ^~
Fixes: ef175b29a242 ("of: Stop circularly including of_device.h and of_platform.h")
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
---
v2:
- Fix commit ID in Fixes reference
drivers/usb/host/uhci-grlib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/uhci-grlib.c b/drivers/usb/host/uhci-grlib.c
index ac3fc5970315..cfebb833668e 100644
--- a/drivers/usb/host/uhci-grlib.c
+++ b/drivers/usb/host/uhci-grlib.c
@@ -22,6 +22,7 @@
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
+#include <linux/platform_device.h>
static int uhci_grlib_init(struct usb_hcd *hcd)
{
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h
2024-01-29 7:41 ` Andreas Larsson
2024-01-29 7:50 ` [PATCH v2] " Andreas Larsson
@ 2024-01-29 14:58 ` Greg Kroah-Hartman
2024-01-29 14:59 ` Greg Kroah-Hartman
1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-01-29 14:58 UTC (permalink / raw)
To: Andreas Larsson
Cc: Alan Stern, linux-usb, Rob Herring, linux-kernel, software
On Mon, Jan 29, 2024 at 08:41:50AM +0100, Andreas Larsson wrote:
> On 2024-01-28 01:31, Greg Kroah-Hartman wrote:
> > On Mon, Jan 22, 2024 at 09:22:25AM +0100, Andreas Larsson wrote:
> >> This fixes relying upon linux/of_platform.h to include
> >> linux/platform_device.h, which it no longer does, thereby fixing
> >> compilation problems like:
> >>
> >> In file included from drivers/usb/host/uhci-hcd.c:850:
> >> drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
> >> drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
> >> 92 | struct device_node *dn = op->dev.of_node;
> >> | ^~
> >>
> >> Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h")
> >
> > I don't see this commit id in Linus's tree, where is it?
>
> Ah, sorry, it went into Linus's tree with a different commit ID. I
> should have referred to ef175b29a242.
Please fix up and resend.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h
2024-01-29 14:58 ` [PATCH] " Greg Kroah-Hartman
@ 2024-01-29 14:59 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-01-29 14:59 UTC (permalink / raw)
To: Andreas Larsson
Cc: Alan Stern, linux-usb, Rob Herring, linux-kernel, software
On Mon, Jan 29, 2024 at 06:58:50AM -0800, Greg Kroah-Hartman wrote:
> On Mon, Jan 29, 2024 at 08:41:50AM +0100, Andreas Larsson wrote:
> > On 2024-01-28 01:31, Greg Kroah-Hartman wrote:
> > > On Mon, Jan 22, 2024 at 09:22:25AM +0100, Andreas Larsson wrote:
> > >> This fixes relying upon linux/of_platform.h to include
> > >> linux/platform_device.h, which it no longer does, thereby fixing
> > >> compilation problems like:
> > >>
> > >> In file included from drivers/usb/host/uhci-hcd.c:850:
> > >> drivers/usb/host/uhci-grlib.c: In function 'uhci_hcd_grlib_probe':
> > >> drivers/usb/host/uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device'
> > >> 92 | struct device_node *dn = op->dev.of_node;
> > >> | ^~
> > >>
> > >> Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h")
> > >
> > > I don't see this commit id in Linus's tree, where is it?
> >
> > Ah, sorry, it went into Linus's tree with a different commit ID. I
> > should have referred to ef175b29a242.
>
> Please fix up and resend.
Ah you did, just hadn't read all of my email yet, sorry for the noise...
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-29 14:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 8:22 [PATCH] usb: uhci-grlib: Explicitly include linux/platform_device.h Andreas Larsson
2024-01-28 0:31 ` Greg Kroah-Hartman
2024-01-29 7:41 ` Andreas Larsson
2024-01-29 7:50 ` [PATCH v2] " Andreas Larsson
2024-01-29 14:58 ` [PATCH] " Greg Kroah-Hartman
2024-01-29 14:59 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).