Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <petr.vorel@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH 1/1] package/iproute2: bump version to 5.12.0
Date: Fri, 30 Apr 2021 20:54:17 +0200	[thread overview]
Message-ID: <YIxSWTqVGoqYu0Pk@pevik> (raw)
In-Reply-To: <20210429192541.8530-1-petr.vorel@gmail.com>

Hi all,

...
> ++++ b/lib/fs.c
> +@@ -30,6 +30,31 @@
> + /* if not already mounted cgroup2 is mounted here for iproute2's use */
> + #define MNT_CGRP2_PATH  "/var/run/cgroup2"
> +
> ++
> ++#if (!defined HAVE_NAME_TO_HANDLE_AT && !defined HAVE_OPEN_BY_HANDLE_AT)
> ++struct file_handle {
> ++	unsigned handle_bytes;
> ++	int handle_type;
> ++	unsigned char f_handle[];
> ++};
> ++#endif
> ++
> ++#ifndef HAVE_NAME_TO_HANDLE_AT
> ++int name_to_handle_at(int dirfd, const char *pathname,
> ++	struct file_handle *handle, int *mount_id, int flags)
> ++{
> ++	return syscall(name_to_handle_at, 5, dirfd, pathname, handle,
I overlooked wrong syscall number (should be __NR_name_to_handle_at)

> ++	               mount_id, flags);
> ++}
> ++#endif
> ++
> ++#ifndef HAVE_OPEN_BY_HANDLE_AT
> ++int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags)
> ++{
> ++	return syscall(open_by_handle_at, 3, mount_fd, handle, flags);
And here __NR_open_by_handle_at

+ needed #include <sys/syscall.h>

This is also missing in v2 of the upstream patchset [1].
I suppose Heiko will send v3, but not sure if upstream even cares.
Maybe we'll have to carry until ve upgrade our toolchain.

Kind regards,
Petr

[2] https://lore.kernel.org/netdev/20210430062632.21304-1-heiko.thiery at gmail.com/#t

      parent reply	other threads:[~2021-04-30 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 19:25 [Buildroot] [RFC PATCH 1/1] package/iproute2: bump version to 5.12.0 Petr Vorel
2021-04-29 19:32 ` Petr Vorel
2021-04-30 18:54 ` Petr Vorel [this message]

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=YIxSWTqVGoqYu0Pk@pevik \
    --to=petr.vorel@gmail.com \
    --cc=buildroot@busybox.net \
    /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