* [PATCH v2] drm: shmobile: Reduce include dependencies
@ 2020-02-05 9:32 Andy Shevchenko
2020-02-05 10:50 ` Kieran Bingham
2020-02-05 17:33 ` Laurent Pinchart
0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-02-05 9:32 UTC (permalink / raw)
To: Laurent Pinchart, Kieran Bingham, dri-devel, linux-renesas-soc,
Geert Uytterhoeven
Cc: Andy Shevchenko
This file doesn't need everything provided by <linux/kernel.h>.
All it needs are some types, which are provided by <linux/types.h>.
Note, <drm/drm_mode.h> already includes <linux/types.h>, but
not relying on implicit includes is indeed a good thing.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: Update commit message (Geert, Laurent)
include/linux/platform_data/shmob_drm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/platform_data/shmob_drm.h b/include/linux/platform_data/shmob_drm.h
index fe815d7d9f58..08605fdb2226 100644
--- a/include/linux/platform_data/shmob_drm.h
+++ b/include/linux/platform_data/shmob_drm.h
@@ -10,7 +10,7 @@
#ifndef __SHMOB_DRM_H__
#define __SHMOB_DRM_H__
-#include <linux/kernel.h>
+#include <linux/types.h>
#include <drm/drm_mode.h>
--
2.24.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm: shmobile: Reduce include dependencies
2020-02-05 9:32 [PATCH v2] drm: shmobile: Reduce include dependencies Andy Shevchenko
@ 2020-02-05 10:50 ` Kieran Bingham
2020-02-05 17:33 ` Laurent Pinchart
1 sibling, 0 replies; 4+ messages in thread
From: Kieran Bingham @ 2020-02-05 10:50 UTC (permalink / raw)
To: Andy Shevchenko, Laurent Pinchart, dri-devel, linux-renesas-soc,
Geert Uytterhoeven
Hi Andy,
On 05/02/2020 09:32, Andy Shevchenko wrote:
> This file doesn't need everything provided by <linux/kernel.h>.
> All it needs are some types, which are provided by <linux/types.h>.
>
> Note, <drm/drm_mode.h> already includes <linux/types.h>, but
> not relying on implicit includes is indeed a good thing.
This explains things a bit better :-)
I'm sure the others will follow too, but here's my:
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> v2: Update commit message (Geert, Laurent)
> include/linux/platform_data/shmob_drm.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/platform_data/shmob_drm.h b/include/linux/platform_data/shmob_drm.h
> index fe815d7d9f58..08605fdb2226 100644
> --- a/include/linux/platform_data/shmob_drm.h
> +++ b/include/linux/platform_data/shmob_drm.h
> @@ -10,7 +10,7 @@
> #ifndef __SHMOB_DRM_H__
> #define __SHMOB_DRM_H__
>
> -#include <linux/kernel.h>
> +#include <linux/types.h>
>
> #include <drm/drm_mode.h>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm: shmobile: Reduce include dependencies
2020-02-05 9:32 [PATCH v2] drm: shmobile: Reduce include dependencies Andy Shevchenko
2020-02-05 10:50 ` Kieran Bingham
@ 2020-02-05 17:33 ` Laurent Pinchart
2020-02-06 11:04 ` Andy Shevchenko
1 sibling, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2020-02-05 17:33 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Kieran Bingham, dri-devel, linux-renesas-soc, Geert Uytterhoeven
Hi Andy,
Thank you for the patch.
On Wed, Feb 05, 2020 at 11:32:26AM +0200, Andy Shevchenko wrote:
> This file doesn't need everything provided by <linux/kernel.h>.
> All it needs are some types, which are provided by <linux/types.h>.
>
> Note, <drm/drm_mode.h> already includes <linux/types.h>, but
> not relying on implicit includes is indeed a good thing.
Do we even need linux/types.h ? Apart from struct drm_mode_modeinfo,
shmob_drm.h seems to only contain plain C without using any externally
defined types.
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> v2: Update commit message (Geert, Laurent)
> include/linux/platform_data/shmob_drm.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/platform_data/shmob_drm.h b/include/linux/platform_data/shmob_drm.h
> index fe815d7d9f58..08605fdb2226 100644
> --- a/include/linux/platform_data/shmob_drm.h
> +++ b/include/linux/platform_data/shmob_drm.h
> @@ -10,7 +10,7 @@
> #ifndef __SHMOB_DRM_H__
> #define __SHMOB_DRM_H__
>
> -#include <linux/kernel.h>
> +#include <linux/types.h>
>
> #include <drm/drm_mode.h>
>
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm: shmobile: Reduce include dependencies
2020-02-05 17:33 ` Laurent Pinchart
@ 2020-02-06 11:04 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-02-06 11:04 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Kieran Bingham, dri-devel, linux-renesas-soc, Geert Uytterhoeven
On Wed, Feb 05, 2020 at 07:33:22PM +0200, Laurent Pinchart wrote:
> Hi Andy,
>
> Thank you for the patch.
>
> On Wed, Feb 05, 2020 at 11:32:26AM +0200, Andy Shevchenko wrote:
> > This file doesn't need everything provided by <linux/kernel.h>.
> > All it needs are some types, which are provided by <linux/types.h>.
> >
> > Note, <drm/drm_mode.h> already includes <linux/types.h>, but
> > not relying on implicit includes is indeed a good thing.
>
> Do we even need linux/types.h ? Apart from struct drm_mode_modeinfo,
> shmob_drm.h seems to only contain plain C without using any externally
> defined types.
Good point. It doesn't contain neither bool nor uXX or alike types.
Probably we may simple drop the inclusion. I'll send v3.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-06 11:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 9:32 [PATCH v2] drm: shmobile: Reduce include dependencies Andy Shevchenko
2020-02-05 10:50 ` Kieran Bingham
2020-02-05 17:33 ` Laurent Pinchart
2020-02-06 11:04 ` Andy Shevchenko
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).