All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] ASoC: madera: Replace kernel.h with the necessary inclusions
@ 2022-06-03 17:07 ` Andy Shevchenko
  0 siblings, 0 replies; 24+ messages in thread
From: Andy Shevchenko @ 2022-06-03 17:07 UTC (permalink / raw)
  To: Andy Shevchenko, alsa-devel, patches, linux-kernel
  Cc: Charles Keepax, Richard Fitzgerald, Jaroslav Kysela, Takashi Iwai

When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/sound/madera-pdata.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/sound/madera-pdata.h b/include/sound/madera-pdata.h
index e3060f48f108..58398d80c3de 100644
--- a/include/sound/madera-pdata.h
+++ b/include/sound/madera-pdata.h
@@ -9,7 +9,7 @@
 #ifndef MADERA_CODEC_PDATA_H
 #define MADERA_CODEC_PDATA_H
 
-#include <linux/kernel.h>
+#include <linux/types.h>
 
 #define MADERA_MAX_INPUT		6
 #define MADERA_MAX_MUXED_CHANNELS	4
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 24+ messages in thread
* [PATCH v1 1/1] ASoC: madera: Replace kernel.h with the necessary inclusions
@ 2021-12-22 16:45 ` Andy Shevchenko
  0 siblings, 0 replies; 24+ messages in thread
From: Andy Shevchenko @ 2021-12-22 16:45 UTC (permalink / raw)
  To: Andy Shevchenko, alsa-devel, patches, linux-kernel
  Cc: Charles Keepax, Richard Fitzgerald, Jaroslav Kysela, Takashi Iwai

When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/sound/madera-pdata.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/sound/madera-pdata.h b/include/sound/madera-pdata.h
index e3060f48f108..58398d80c3de 100644
--- a/include/sound/madera-pdata.h
+++ b/include/sound/madera-pdata.h
@@ -9,7 +9,7 @@
 #ifndef MADERA_CODEC_PDATA_H
 #define MADERA_CODEC_PDATA_H
 
-#include <linux/kernel.h>
+#include <linux/types.h>
 
 #define MADERA_MAX_INPUT		6
 #define MADERA_MAX_MUXED_CHANNELS	4
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-07-05 18:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 17:07 [PATCH v1 1/1] ASoC: madera: Replace kernel.h with the necessary inclusions Andy Shevchenko
2022-06-03 17:07 ` Andy Shevchenko
2022-06-06  9:29 ` Richard Fitzgerald
2022-06-06  9:29   ` Richard Fitzgerald
2022-07-03 15:36   ` Andy Shevchenko
2022-07-03 15:36     ` Andy Shevchenko
2022-07-04 10:36     ` Mark Brown
2022-07-04 10:36       ` Mark Brown
2022-07-04 15:30       ` Andy Shevchenko
2022-07-04 15:30         ` Andy Shevchenko
2022-07-04 15:35         ` Mark Brown
2022-07-04 15:35           ` Mark Brown
2022-07-04 15:51           ` Andy Shevchenko
2022-07-04 15:51             ` Andy Shevchenko
2022-07-04 16:24             ` Mark Brown
2022-07-04 16:24               ` Mark Brown
2022-07-05 18:52 ` Mark Brown
2022-07-05 18:52   ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2021-12-22 16:45 Andy Shevchenko
2021-12-22 16:45 ` Andy Shevchenko
2021-12-29  9:53 ` Charles Keepax
2021-12-29  9:53   ` Charles Keepax
2022-01-24 16:22   ` Andy Shevchenko
2022-01-24 16:22     ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.