[PATCH v3 2/5] cobalt/time: Migrate order of includes to "from global to local"

Florian Bezdeka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
This is a preparation commit for the following wrapping of
mm_get_unmapped_area() for kernels < 6.19.

cobalt/kernel/time.h will include the wrappers.h, so everything below
that include is affected by wrapping. This includes Linux headers if
the ordering is wrong.

Moving the Linux include up solves this issue.

Signed-off-by: Florian Bezdeka <[email protected]>
---
 kernel/cobalt/time.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/cobalt/time.c b/kernel/cobalt/time.c
index d88f2efd8eadbb7b1480dc2c5158c2f2c1e88fb5..e24d1759de6ccac9b0b4376bcdc68e0826f1842e 100644
--- a/kernel/cobalt/time.c
+++ b/kernel/cobalt/time.c
@@ -1,8 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
 
+#include <linux/compat.h>
+
 #include <asm-generic/xenomai/syscall.h>
 #include <cobalt/kernel/time.h>
-#include <linux/compat.h>
 
 int cobalt_get_timespec64(struct timespec64 *ts,
 			  const struct __kernel_timespec __user *uts)

-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.