* + kunit-replace-kernelh-with-the-necessary-inclusions.patch added to -mm tree
@ 2021-10-13 21:21 akpm
0 siblings, 0 replies; 2+ messages in thread
From: akpm @ 2021-10-13 21:21 UTC (permalink / raw)
To: andriy.shevchenko, boqun.feng, brendanhiggins, jic23,
laurent.pinchart, linux, longman, mchehab, miguel.ojeda.sandonis,
mingo, mm-commits, peterz, regressions, sakari.ailus, tglx, will
The patch titled
Subject: include/kunit/test.h: replace kernel.h with the necessary inclusions
has been added to the -mm tree. Its filename is
kunit-replace-kernelh-with-the-necessary-inclusions.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/kunit-replace-kernelh-with-the-necessary-inclusions.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/kunit-replace-kernelh-with-the-necessary-inclusions.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: include/kunit/test.h: replace kernel.h with the necessary inclusions
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.
Link: https://lkml.kernel.org/r/20211013170417.87909-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>
Cc: Waiman Long <longman@redhat.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/kunit/test.h | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
--- a/include/kunit/test.h~kunit-replace-kernelh-with-the-necessary-inclusions
+++ a/include/kunit/test.h
@@ -11,11 +11,20 @@
#include <kunit/assert.h>
#include <kunit/try-catch.h>
-#include <linux/kernel.h>
+
+#include <linux/container_of.h>
+#include <linux/err.h>
+#include <linux/init.h>
+#include <linux/kconfig.h>
+#include <linux/kref.h>
+#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
+#include <linux/spinlock.h>
+#include <linux/string.h>
#include <linux/types.h>
-#include <linux/kref.h>
+
+#include <asm/rwonce.h>
struct kunit_resource;
_
Patches currently in -mm which might be from andriy.shevchenko@linux.intel.com are
kernelh-drop-unneeded-linux-kernelh-inclusion-from-other-headers.patch
kernelh-split-out-container_of-and-typeof_member-macros.patch
kunit-replace-kernelh-with-the-necessary-inclusions.patch
list-replace-kernelh-with-the-necessary-inclusions.patch
llist-replace-kernelh-with-the-necessary-inclusions.patch
plist-replace-kernelh-with-the-necessary-inclusions.patch
media-entity-replace-kernelh-with-the-necessary-inclusions.patch
seq_file-move-seq_escape-to-a-header.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* + kunit-replace-kernelh-with-the-necessary-inclusions.patch added to -mm tree
@ 2021-12-13 21:20 akpm
0 siblings, 0 replies; 2+ messages in thread
From: akpm @ 2021-12-13 21:20 UTC (permalink / raw)
To: andriy.shevchenko, brendanhiggins, mm-commits
The patch titled
Subject: kunit: replace kernel.h with the necessary inclusions
has been added to the -mm tree. Its filename is
kunit-replace-kernelh-with-the-necessary-inclusions.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/kunit-replace-kernelh-with-the-necessary-inclusions.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/kunit-replace-kernelh-with-the-necessary-inclusions.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: kunit: replace kernel.h with the necessary inclusions
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.
Link: https://lkml.kernel.org/r/20211213204441.56204-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/kunit/assert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/kunit/assert.h~kunit-replace-kernelh-with-the-necessary-inclusions
+++ a/include/kunit/assert.h
@@ -10,7 +10,7 @@
#define _KUNIT_ASSERT_H
#include <linux/err.h>
-#include <linux/kernel.h>
+#include <linux/printk.h>
struct kunit;
struct string_stream;
_
Patches currently in -mm which might be from andriy.shevchenko@linux.intel.com are
include-linux-unaligned-replace-kernelh-with-the-necessary-inclusions.patch
kernelh-include-a-note-to-discourage-people-from-including-it-in-headers.patch
list-introduce-list_is_head-helper-and-re-use-it-in-listh.patch
kunit-replace-kernelh-with-the-necessary-inclusions.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-13 21:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 21:21 + kunit-replace-kernelh-with-the-necessary-inclusions.patch added to -mm tree akpm
2021-12-13 21:20 akpm
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.