* [PATCH] mfd: at91-usart: fix missing mod_devicetable.h [not found] <20180911125857.5e5c34f4@canb.auug.org.au> @ 2018-09-11 8:44 ` Nicolas Ferre 2018-09-11 9:02 ` Greg KH 2018-09-11 9:36 ` Lee Jones 0 siblings, 2 replies; 3+ messages in thread From: Nicolas Ferre @ 2018-09-11 8:44 UTC (permalink / raw) To: linux-arm-kernel Following the inclusion of the patch ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h"), there is a build issue: drivers/mfd/at91-usart.c:51:34: error: array type has incomplete element type 'struct of_device_id' static const struct of_device_id at91_usart_mode_of_match[] = { Before this patch, the definition was reached by its inclusion of linux/mfd/core.h. The build issue is solved by simply adding the mod_devicetable.h in this driver. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Cc: Radu Pirea <radu_nicolae.pirea@upb.ro> --- drivers/mfd/at91-usart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/at91-usart.c b/drivers/mfd/at91-usart.c index a4b9929c156f..ad743b8ca6be 100644 --- a/drivers/mfd/at91-usart.c +++ b/drivers/mfd/at91-usart.c @@ -11,6 +11,7 @@ #include <dt-bindings/mfd/at91-usart.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/mfd/core.h> #include <linux/property.h> -- 2.15.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] mfd: at91-usart: fix missing mod_devicetable.h 2018-09-11 8:44 ` [PATCH] mfd: at91-usart: fix missing mod_devicetable.h Nicolas Ferre @ 2018-09-11 9:02 ` Greg KH 2018-09-11 9:36 ` Lee Jones 1 sibling, 0 replies; 3+ messages in thread From: Greg KH @ 2018-09-11 9:02 UTC (permalink / raw) To: linux-arm-kernel On Tue, Sep 11, 2018 at 10:44:48AM +0200, Nicolas Ferre wrote: > Following the inclusion of the patch ac3167257b9f ("headers: > separate linux/mod_devicetable.h from linux/platform_device.h"), there is a > build issue: > > drivers/mfd/at91-usart.c:51:34: error: array type has incomplete element type > 'struct of_device_id' > static const struct of_device_id at91_usart_mode_of_match[] = { > > Before this patch, the definition was reached by its inclusion of > linux/mfd/core.h. > > The build issue is solved by simply adding the mod_devicetable.h in this > driver. > > Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> > Cc: Radu Pirea <radu_nicolae.pirea@upb.ro> You forgot a "reported-by" :( I'll go add it... ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mfd: at91-usart: fix missing mod_devicetable.h 2018-09-11 8:44 ` [PATCH] mfd: at91-usart: fix missing mod_devicetable.h Nicolas Ferre 2018-09-11 9:02 ` Greg KH @ 2018-09-11 9:36 ` Lee Jones 1 sibling, 0 replies; 3+ messages in thread From: Lee Jones @ 2018-09-11 9:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, 11 Sep 2018, Nicolas Ferre wrote: > Following the inclusion of the patch ac3167257b9f ("headers: > separate linux/mod_devicetable.h from linux/platform_device.h"), there is a > build issue: > > drivers/mfd/at91-usart.c:51:34: error: array type has incomplete element type > 'struct of_device_id' > static const struct of_device_id at91_usart_mode_of_match[] = { > > Before this patch, the definition was reached by its inclusion of > linux/mfd/core.h. > > The build issue is solved by simply adding the mod_devicetable.h in this > driver. > > Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> > Cc: Radu Pirea <radu_nicolae.pirea@upb.ro> > --- > drivers/mfd/at91-usart.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mfd/at91-usart.c b/drivers/mfd/at91-usart.c > index a4b9929c156f..ad743b8ca6be 100644 > --- a/drivers/mfd/at91-usart.c > +++ b/drivers/mfd/at91-usart.c > @@ -11,6 +11,7 @@ > #include <dt-bindings/mfd/at91-usart.h> > > #include <linux/module.h> > +#include <linux/mod_devicetable.h> > #include <linux/mfd/core.h> > #include <linux/property.h> Since this driver is using Device Tree, it is more correct to simply add <linux/of.h>, unless of course we are also going to remove <linux/mod_devicetable.h> from <linux/of.h>. -- Lee Jones [???] Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-11 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180911125857.5e5c34f4@canb.auug.org.au>
2018-09-11 8:44 ` [PATCH] mfd: at91-usart: fix missing mod_devicetable.h Nicolas Ferre
2018-09-11 9:02 ` Greg KH
2018-09-11 9:36 ` Lee Jones
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).