drm: shmobile: Platform data shan't include kernel.h
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
@@ -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
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
Laurent Pinchart
maintainerQuoted 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
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
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.hfor 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 datakernel.hby 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