From: Bruce Ashfield via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [lttng-dev] [PATCH 2/3] wrapper/fdtable: adjust fd lookup to v6.7+
Date: Thu, 23 Nov 2023 14:32:48 -0500 [thread overview]
Message-ID: <20231123193249.3190764-2-bruce.ashfield@gmail.com> (raw)
In-Reply-To: <20231123193249.3190764-1-bruce.ashfield@gmail.com>
From: Bruce Ashfield <bruce.ashfield@gmail.com>
commit 0ede61d8589cc2d93 [file: convert to SLAB_TYPESAFE_BY_RCU]
renames lookup_fd_rcu to lookup_fdget_rcu, so we need to
version adjust the fdtable wrapper accordingly.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
Repeating the comment from patch 1 of this series:
Someone else may or may not already have this in flight,
but I didn't see anything on the list or in the git
repo.
I ran into this failure when working on the v6.7-rc
kernel as part of yocto project kernel updates.
Tweak as necessary, as I'm no expert in the right way
to version these sort of changes.
Bruce
include/wrapper/fdtable.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/wrapper/fdtable.h b/include/wrapper/fdtable.h
index fa5f7207..aaf2b9e7 100644
--- a/include/wrapper/fdtable.h
+++ b/include/wrapper/fdtable.h
@@ -16,7 +16,11 @@
static inline
struct file *lttng_lookup_fd_rcu(unsigned int fd)
{
+#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(6,7,0))
return lookup_fd_rcu(fd);
+#else
+ return lookup_fdget_rcu(fd);
+#endif
}
#else
static inline
--
2.34.1
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next prev parent reply other threads:[~2023-11-23 19:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 19:32 [lttng-dev] [PATCH 1/3] statedump: adjust to v6.7 cpu topology struct Bruce Ashfield via lttng-dev
2023-11-23 19:32 ` Bruce Ashfield via lttng-dev [this message]
2023-11-23 19:32 ` [lttng-dev] [PATCH 3/3] vmscan: drop isolate_mode (v6.7+) Bruce Ashfield via lttng-dev
2023-11-23 19:49 ` Kienan Stewart via lttng-dev
2023-11-23 19:56 ` Bruce Ashfield via lttng-dev
2023-11-23 20:24 ` Kienan Stewart via lttng-dev
2023-11-28 19:55 ` Kienan Stewart via lttng-dev
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=20231123193249.3190764-2-bruce.ashfield@gmail.com \
--to=lttng-dev@lists.lttng.org \
--cc=bruce.ashfield@gmail.com \
/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 NNTP newsgroup(s).