Skip to contentSkip to conversation

drm: shmobile: Platform data shan't include kernel.h

PATCH In review Andy Shevchenko 3 participants 5 messages Feb 4, 2020 DRM drivers for Renesas shmobile

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: shmobile: Platform data shan't include kernel.h

Replace with appropriate types.h.

---
 include/linux/platform_data/shmob_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/platform_data/shmob_drm.h +1 -1
index fe815d7d9f58..08605fdb2226 100644
@@ -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>
 
Signature · 1 line
2.24.1
#1 lore raw

Hi Andy,

Quoted 1 line · Andy Shevchenko

Replace with appropriate types.h.

Thanks for your patch!

I have only one very short question: why?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

maintainer
#2 lore raw
Quoted 6 lines · Geert Uytterhoeven
Quoted 1 line · Andy Shevchenko

Replace with appropriate types.h.

Thanks for your patch!

I have only one very short question: why?

Likewise :-) The patch itself looks fine, but the commit message is a bit terse.

Signature · 3 lines
Regards,

Laurent Pinchart
#3 lore raw
Quoted 10 lines · Laurent Pinchart
Quoted 6 lines · Geert Uytterhoeven
Quoted 1 line · Andy Shevchenko

Replace with appropriate types.h.

Thanks for your patch!

I have only one very short question: why?

Likewise :-) The patch itself looks fine, but the commit message is a bit terse.

The kernel.h for a long time being a dump of a lot of things. I started cleaning it up a bit. During this I notice that developers too far too lazy to use appropriate headers. For platform data kernel.h by definition is not appropriate.

Any suggestion what should I put to commit message?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw

Hi Andy,

Quoted 9 lines · Andy Shevchenko
Quoted 8 lines · Laurent Pinchart
Quoted 6 lines · Geert Uytterhoeven
Quoted 1 line · Andy Shevchenko

Replace with appropriate types.h.

Thanks for your patch!

I have only one very short question: why?

Quoted 7 lines
Quoted 2 lines

Likewise :-) The patch itself looks fine, but the commit message is a bit terse.

The kernel.h for a long time being a dump of a lot of things. I started cleaning it up a bit. During this I notice that developers too far too lazy to use appropriate headers. For platform data kernel.h by definition is not appropriate.

Thanks, that makes perfect sense.

Quoted 1 line

Any suggestion what should I put to commit message?

I became intrigued by the one-line summary, which seemed to suggest (according to my interpretation) that including kernel.h is a Real Bad Thing.

But basically all you wanted to say was:

drm: shmobile: Reduce include dependencies

and:

This file doesn't need everything provided by <linux/kernel.h>. All it needs are some types, which are provided by <linux/types.h>.

Right?

BTW, <drm/drm_mode.h> already includes <linux/types.h>, but not relying on implicit includes is indeed a good thing.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds