xenomai.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: xenomai@lists.linux.dev
Subject: [PATCH 01/25] Account for renaming of MAX_ORDER in kernel 6.8
Date: Tue, 26 Mar 2024 07:30:40 +0100	[thread overview]
Message-ID: <149b639286499790a2cc311d07bb72f7083f3f88.1711434664.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1711434664.git.jan.kiszka@siemens.com>

From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 kernel/cobalt/include/asm-generic/xenomai/wrappers.h | 4 ++++
 kernel/cobalt/posix/mqueue.c                         | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
index c86ab16029..abf58c589c 100644
--- a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
+++ b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
@@ -65,4 +65,8 @@
 #define pde_data(i)	PDE_DATA(i)
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
+#define MAX_PAGE_ORDER	MAX_ORDER
+#endif
+
 #endif /* _COBALT_ASM_GENERIC_WRAPPERS_H */
diff --git a/kernel/cobalt/posix/mqueue.c b/kernel/cobalt/posix/mqueue.c
index 878fb521b4..5d072eb7fd 100644
--- a/kernel/cobalt/posix/mqueue.c
+++ b/kernel/cobalt/posix/mqueue.c
@@ -158,7 +158,7 @@ static inline int mq_init(struct cobalt_mq *mq, const struct mq_attr *attr)
 
 	memsize = msgsize * attr->mq_maxmsg;
 	memsize = PAGE_ALIGN(memsize);
-	if (get_order(memsize) > MAX_ORDER)
+	if (get_order(memsize) > MAX_PAGE_ORDER)
 		return -ENOSPC;
 
 	mem = xnheap_vmalloc(memsize);
-- 
2.35.3


  reply	other threads:[~2024-03-26  6:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26  6:30 [PATCH 00/25] Support for kernel 6.8 Jan Kiszka
2024-03-26  6:30 ` Jan Kiszka [this message]
2024-03-26  6:30 ` [PATCH 02/25] cobalt/synch: add [__cobalt_mutex_]lookup_lazy_pp prototype to header Jan Kiszka
2024-03-26  6:30 ` [PATCH 03/25] cobalt/rtdm: Drop __rtdm_synch_flush from public interface Jan Kiszka
2024-03-26  6:30 ` [PATCH 04/25] Drop duplicate define of inclusion guard Jan Kiszka
2024-03-26  6:30 ` [PATCH 05/25] cobalt/arith: Only implement xnarch_generic_full_divmod64 when used Jan Kiszka
2024-03-26  6:30 ` [PATCH 06/25] cobalt: Address missing prototype warnings by adding includes Jan Kiszka
2024-03-26  6:30 ` [PATCH 07/25] cobalt: Make private functions static Jan Kiszka
2024-03-26  6:30 ` [PATCH 08/25] analogy/national_instruments: Drop dead mio_common_detach Jan Kiszka
2024-03-26  6:30 ` [PATCH 09/25] drivers/analogy: Make private functions static Jan Kiszka
2024-03-26  6:30 ` [PATCH 10/25] drivers/autotune: " Jan Kiszka
2024-03-26  6:30 ` [PATCH 11/25] drivers/can/corectl: Provide proper prototypes via corectl.h Jan Kiszka
2024-03-26  6:30 ` [PATCH 12/25] drivers/can/c_can: Replace deprecated strlcpy with strscpy Jan Kiszka
2024-03-26  6:30 ` [PATCH 13/25] drivers/can: Make private functions static Jan Kiszka
2024-03-26  6:30 ` [PATCH 14/25] drivers/gpio: Address missing prototype warnings by adding includes Jan Kiszka
2024-03-26  6:30 ` [PATCH 15/25] drivers/gpio: Make private functions static Jan Kiszka
2024-03-26  6:30 ` [PATCH 16/25] drivers/ipc: " Jan Kiszka
2024-03-26  6:30 ` [PATCH 17/25] drivers/net/ipv4: Align signatures of rt_ip_build_xmit Jan Kiszka
2024-03-26  6:30 ` [PATCH 18/25] drivers/net: Address missing prototype warnings by adding includes Jan Kiszka
2024-03-26  6:30 ` [PATCH 19/25] drivers/net/corectl: Provide proper prototypes via corectl.h Jan Kiszka
2024-03-26 10:36   ` Florian Bezdeka
2024-03-26 10:42     ` Philippe Gerum
2024-03-26  6:30 ` [PATCH 20/25] drivers/net: Make rtdev_init private Jan Kiszka
2024-03-26  6:31 ` [PATCH 21/25] drivers/net/e1000: Move e1000_check_options prototype to a header Jan Kiszka
2024-03-26  6:31 ` [PATCH 22/25] drivers/net: Make private functions static Jan Kiszka
2024-03-26  6:31 ` [PATCH 23/25] drivers/serial: " Jan Kiszka
2024-03-26  6:31 ` [PATCH 24/25] drivers/spi: Use spi_get_chipselect/gpiod Jan Kiszka
2024-03-26  6:31 ` [PATCH 25/25] drivers/testing: Make private functions static Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=149b639286499790a2cc311d07bb72f7083f3f88.1711434664.git.jan.kiszka@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=xenomai@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).