From: Guillaume Nault <gnault@redhat.com>
To: David Ahern <dsahern@gmail.com>
Cc: Wojciech Drewek <wojciech.drewek@intel.com>,
netdev@vger.kernel.org, stephen@networkplumber.org
Subject: Re: [PATCH iproute-next v4 2/3] lib: Introduce ppp protocols
Date: Fri, 29 Jul 2022 18:03:51 +0200 [thread overview]
Message-ID: <20220729160351.GD10877@pc-4.home> (raw)
In-Reply-To: <e00f3b23-7d9d-d8f1-646c-eaf843f744b5@gmail.com>
On Fri, Jul 29, 2022 at 08:58:07AM -0600, David Ahern wrote:
> On 7/29/22 2:50 AM, Wojciech Drewek wrote:
> > PPP protocol field uses different values than ethertype. Introduce
> > utilities for translating PPP protocols from strings to values
> > and vice versa. Use generic API from utils in order to get
> > proto id and name.
> >
> > Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
> > ---
> > v4: ppp_defs.h removed
> > ---
> > include/rt_names.h | 3 +++
> > lib/Makefile | 2 +-
> > lib/ppp_proto.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 56 insertions(+), 1 deletion(-)
> > create mode 100644 lib/ppp_proto.c
> >
>
> Ubuntu 20.04 with gcc 9.4 and clang 10.0 - both fail the same:
>
> $ make
>
> lib
> CC ppp_proto.o
> In file included from ppp_proto.c:9:
> ../include/uapi/linux/ppp_defs.h:151:5: error: unknown type name
> ‘__kernel_old_time_t’
> 151 | __kernel_old_time_t xmit_idle; /* time since last NP packet
> sent */
> | ^~~~~~~~~~~~~~~~~~~
> ../include/uapi/linux/ppp_defs.h:152:5: error: unknown type name
> ‘__kernel_old_time_t’
> 152 | __kernel_old_time_t recv_idle; /* time since last NP packet
> received */
> | ^~~~~~~~~~~~~~~~~~~
> make[1]: *** [../config.mk:58: ppp_proto.o] Error 1
> make: *** [Makefile:77: all] Error 2
Works for me on Debian 11 (Bullseye), where __kernel_old_time_t is
defined in /usr/include/asm-generic/posix_types.h (package
linux-libc-dev).
I guess the Ubuntu 20.04 failure happens because it's based on
Linux 5.4, while __kernel_old_time_t was introduced in v5.5 (by
commit 94c467ddb273 ("y2038: add __kernel_old_timespec and
__kernel_old_time_t")).
Not sure how to resolve this. This series doesn't need the
struct ppp_idle that depends on __kernel_old_time_t.
next prev parent reply other threads:[~2022-07-29 16:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 8:50 [PATCH iproute-next v4 0/3] PPPoE support in tc-flower Wojciech Drewek
2022-07-29 8:50 ` [PATCH iproute-next v4 1/3] lib: refactor ll_proto functions Wojciech Drewek
2022-07-29 13:22 ` Guillaume Nault
2022-07-29 14:32 ` Drewek, Wojciech
2022-07-29 14:56 ` David Ahern
2022-07-29 16:04 ` Guillaume Nault
2022-07-29 8:50 ` [PATCH iproute-next v4 2/3] lib: Introduce ppp protocols Wojciech Drewek
2022-07-29 13:22 ` Guillaume Nault
2022-07-29 14:58 ` David Ahern
2022-07-29 16:03 ` Guillaume Nault [this message]
2022-07-29 17:21 ` David Ahern
2022-07-29 8:50 ` [PATCH iproute-next v4 3/3] f_flower: Introduce PPPoE support Wojciech Drewek
2022-07-29 13:22 ` Guillaume Nault
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=20220729160351.GD10877@pc-4.home \
--to=gnault@redhat.com \
--cc=dsahern@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=wojciech.drewek@intel.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 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.