From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Phil Sutter <phil@nwl.cc>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] libnftables: Drop symbol nft_bison_have_extended_errors
Date: Tue, 1 Sep 2026 16:56:07 +0200 [thread overview]
Message-ID: <apbnh53-c6IGNYut@chamomile> (raw)
In-Reply-To: <20260901094852.104268-1-phil@nwl.cc>
On Tue, Sep 01, 2026 at 11:48:52AM +0200, Phil Sutter wrote:
> It was merely used to indicate extended parser error support in 'nft
> --version' output. Not worth bumping library version just for that, so
> drop it again.
>
> Fixes: b315dd551dd96 ("parser_bison: Fix for bison < 3.6")
> Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Thanks
> ---
> include/nftables/libnftables.h | 2 --
> src/libnftables.map | 4 ----
> src/main.c | 15 ++++++---------
> src/parser_bison.y | 4 ----
> 4 files changed, 6 insertions(+), 19 deletions(-)
>
> diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h
> index 90b3f1b84a66f..c1d48d765a423 100644
> --- a/include/nftables/libnftables.h
> +++ b/include/nftables/libnftables.h
> @@ -99,8 +99,6 @@ void nft_ctx_clear_vars(struct nft_ctx *ctx);
> int nft_run_cmd_from_buffer(struct nft_ctx *nft, const char *buf);
> int nft_run_cmd_from_filename(struct nft_ctx *nft, const char *filename);
>
> -extern bool nft_bison_have_extended_errors;
> -
> #ifdef __cplusplus
> } /* extern "C" */
> #endif
> diff --git a/src/libnftables.map b/src/libnftables.map
> index 55c64f40e6a28..9369f44f35367 100644
> --- a/src/libnftables.map
> +++ b/src/libnftables.map
> @@ -38,7 +38,3 @@ LIBNFTABLES_4 {
> nft_ctx_input_get_flags;
> nft_ctx_input_set_flags;
> } LIBNFTABLES_3;
> -
> -LIBNFTABLES_5 {
> - nft_bison_have_extended_errors;
> -} LIBNFTABLES_4;
> diff --git a/src/main.c b/src/main.c
> index 976410b05fba8..c8430174f5450 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -237,7 +237,7 @@ static void show_help(const char *name)
>
> static void show_version(void)
> {
> - const char *cli, *minigmp, *json, *xt, *ext_bsn_err;
> + const char *cli, *minigmp, *json, *xt;
>
> #if defined(HAVE_LIBREADLINE)
> cli = "readline";
> @@ -266,16 +266,13 @@ static void show_version(void)
> #else
> xt = "no";
> #endif
> - ext_bsn_err = nft_bison_have_extended_errors ? "yes" : "no";
> -
> printf("%s v%s (%s)\n"
> - " cli: %s\n"
> - " json: %s\n"
> - " minigmp: %s\n"
> - " libxtables: %s\n"
> - " extended parser errors: %s\n",
> + " cli: %s\n"
> + " json: %s\n"
> + " minigmp: %s\n"
> + " libxtables: %s\n",
> PACKAGE_NAME, PACKAGE_VERSION, RELEASE_NAME,
> - cli, json, minigmp, xt, ext_bsn_err);
> + cli, json, minigmp, xt);
>
> }
>
> diff --git a/src/parser_bison.y b/src/parser_bison.y
> index 3967993472960..c63007321e339 100644
> --- a/src/parser_bison.y
> +++ b/src/parser_bison.y
> @@ -6677,8 +6677,4 @@ yyreport_syntax_error(const yypcontext_t *yyctx, struct nft_ctx *nft,
> return 0;
> }
>
> -bool nft_bison_have_extended_errors = true;
> -#else /* ! YY_LAC_ESTABLISH */
> -bool nft_bison_have_extended_errors = false;
> #endif /* YY_LAC_ESTABLISH */
> -EXPORT_SYMBOL(nft_bison_have_extended_errors);
> --
> 2.54.0
>
next prev parent reply other threads:[~2026-09-01 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 9:48 [nft PATCH] libnftables: Drop symbol nft_bison_have_extended_errors Phil Sutter
2026-09-01 14:56 ` Pablo Neira Ayuso [this message]
2026-09-01 15:00 ` Pablo Neira Ayuso
2026-09-02 13:16 ` Phil Sutter
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=apbnh53-c6IGNYut@chamomile \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/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