* [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings
@ 2023-04-04 15:35 Kevin Traynor
2023-04-05 7:39 ` David Marchand
2023-04-05 10:44 ` [PATCH 21.11 v2] " Kevin Traynor
0 siblings, 2 replies; 5+ messages in thread
From: Kevin Traynor @ 2023-04-04 15:35 UTC (permalink / raw)
To: stable; +Cc: Kevin Traynor, Ciara Loftus, Qi Zhang
Fedora 37 with versions libbpf-0.8.0-2.fc37.x86_64 and
libxdp-1.2.6-1.fc37.x86_64 gives the following warnings [0].
Squash these for a clean build on Fedora 37 and any other distros
or systems using newer libbpf and libxdp versions.
Discussed on mail list at:
http://inbox.dpdk.org/dev/d718d0fe-09a2-8840-e8a4-dd41b732b391@redhat.com/
[0]
../drivers/net/af_xdp/rte_eth_af_xdp.c:853:9:
warning: ‘bpf_get_link_xdp_id’ is deprecated:
libbpf v0.8+: use bpf_xdp_query_id() instead [-Wdeprecated-declarations]
| if (bpf_get_link_xdp_id(internals->if_index, &curr_prog_id,
| ^~
In file included from /usr/include/xdp/xsk.h:17,
from ../drivers/net/af_xdp/compat.h:6,
from ../drivers/net/af_xdp/rte_eth_af_xdp.c:41:
/usr/include/bpf/libbpf.h:1169:16: note: declared here
| LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
../drivers/net/af_xdp/rte_eth_af_xdp.c:858:9:
warning: ‘bpf_set_link_xdp_fd’ is deprecated:
libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
| bpf_set_link_xdp_fd(internals->if_index, -1,
| ^~~~~~~~~~~~~~~~~~~
/usr/include/bpf/libbpf.h:1164:16: note: declared here
| LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
../drivers/net/af_xdp/rte_eth_af_xdp.c: In function ‘load_custom_xdp_prog’:
../drivers/net/af_xdp/rte_eth_af_xdp.c:1171:9:
warning: ‘bpf_set_link_xdp_fd’ is deprecated:
libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
| ret = bpf_set_link_xdp_fd(if_index, prog_fd,
| ^~~
/usr/include/bpf/libbpf.h:1164:16: note: declared here
| LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
Cc: Ciara Loftus <ciara.loftus@intel.com>
Cc: Qi Zhang <qi.z.zhang@intel.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
drivers/net/af_xdp/rte_eth_af_xdp.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
index 9db76d4562..b04aa30325 100644
--- a/drivers/net/af_xdp/rte_eth_af_xdp.c
+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
@@ -846,4 +846,10 @@ eth_stats_reset(struct rte_eth_dev *dev)
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+
static void
remove_xdp_program(struct pmd_internals *internals)
@@ -860,4 +866,7 @@ remove_xdp_program(struct pmd_internals *internals)
}
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
+
static void
xdp_umem_destroy(struct xsk_umem_info *umem)
@@ -1146,4 +1155,10 @@ xsk_umem_info *xdp_umem_configure(struct pmd_internals *internals,
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#pragma GCC diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+
static int
load_custom_xdp_prog(const char *prog_path, int if_index, struct bpf_map **map)
@@ -1183,4 +1198,7 @@ load_custom_xdp_prog(const char *prog_path, int if_index, struct bpf_map **map)
}
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
+
/* Detect support for busy polling through setsockopt(). */
static int
--
2.39.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings
2023-04-04 15:35 [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings Kevin Traynor
@ 2023-04-05 7:39 ` David Marchand
2023-04-05 8:45 ` Kevin Traynor
2023-04-05 10:44 ` [PATCH 21.11 v2] " Kevin Traynor
1 sibling, 1 reply; 5+ messages in thread
From: David Marchand @ 2023-04-05 7:39 UTC (permalink / raw)
To: Kevin Traynor; +Cc: stable, Ciara Loftus, Qi Zhang
On Tue, Apr 4, 2023 at 5:35 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>
> Fedora 37 with versions libbpf-0.8.0-2.fc37.x86_64 and
> libxdp-1.2.6-1.fc37.x86_64 gives the following warnings [0].
>
> Squash these for a clean build on Fedora 37 and any other distros
> or systems using newer libbpf and libxdp versions.
>
> Discussed on mail list at:
> http://inbox.dpdk.org/dev/d718d0fe-09a2-8840-e8a4-dd41b732b391@redhat.com/
>
> [0]
> ../drivers/net/af_xdp/rte_eth_af_xdp.c:853:9:
> warning: ‘bpf_get_link_xdp_id’ is deprecated:
> libbpf v0.8+: use bpf_xdp_query_id() instead [-Wdeprecated-declarations]
> | if (bpf_get_link_xdp_id(internals->if_index, &curr_prog_id,
> | ^~
> In file included from /usr/include/xdp/xsk.h:17,
> from ../drivers/net/af_xdp/compat.h:6,
> from ../drivers/net/af_xdp/rte_eth_af_xdp.c:41:
> /usr/include/bpf/libbpf.h:1169:16: note: declared here
> | LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
> | ^~~~~~~~~~~~~~~~~~~
> ../drivers/net/af_xdp/rte_eth_af_xdp.c:858:9:
> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
> | bpf_set_link_xdp_fd(internals->if_index, -1,
> | ^~~~~~~~~~~~~~~~~~~
> /usr/include/bpf/libbpf.h:1164:16: note: declared here
> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
> | ^~~~~~~~~~~~~~~~~~~
> ../drivers/net/af_xdp/rte_eth_af_xdp.c: In function ‘load_custom_xdp_prog’:
> ../drivers/net/af_xdp/rte_eth_af_xdp.c:1171:9:
> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
> | ret = bpf_set_link_xdp_fd(if_index, prog_fd,
> | ^~~
> /usr/include/bpf/libbpf.h:1164:16: note: declared here
> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
> | ^~~~~~~~~~~~~~~~~~~
>
> Cc: Ciara Loftus <ciara.loftus@intel.com>
> Cc: Qi Zhang <qi.z.zhang@intel.com>
> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
> ---
> drivers/net/af_xdp/rte_eth_af_xdp.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
> index 9db76d4562..b04aa30325 100644
> --- a/drivers/net/af_xdp/rte_eth_af_xdp.c
> +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
> @@ -846,4 +846,10 @@ eth_stats_reset(struct rte_eth_dev *dev)
> }
>
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
> +#pragma GCC diagnostic ignored "-Wunknown-pragmas"
> +#pragma clang diagnostic push
> +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
clang recognises GCC pragmas, so this clang pragma is unneeded.
https://clang.llvm.org/docs/UsersManual.html#id34
And I suspect disabling unknown-pragmas is unneeded once clang pragmas
are removed.
--
David Marchand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings
2023-04-05 7:39 ` David Marchand
@ 2023-04-05 8:45 ` Kevin Traynor
2023-04-05 10:41 ` Kevin Traynor
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Traynor @ 2023-04-05 8:45 UTC (permalink / raw)
To: David Marchand; +Cc: stable, Ciara Loftus, Qi Zhang
On 05/04/2023 08:39, David Marchand wrote:
> On Tue, Apr 4, 2023 at 5:35 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>>
>> Fedora 37 with versions libbpf-0.8.0-2.fc37.x86_64 and
>> libxdp-1.2.6-1.fc37.x86_64 gives the following warnings [0].
>>
>> Squash these for a clean build on Fedora 37 and any other distros
>> or systems using newer libbpf and libxdp versions.
>>
>> Discussed on mail list at:
>> http://inbox.dpdk.org/dev/d718d0fe-09a2-8840-e8a4-dd41b732b391@redhat.com/
>>
>> [0]
>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:853:9:
>> warning: ‘bpf_get_link_xdp_id’ is deprecated:
>> libbpf v0.8+: use bpf_xdp_query_id() instead [-Wdeprecated-declarations]
>> | if (bpf_get_link_xdp_id(internals->if_index, &curr_prog_id,
>> | ^~
>> In file included from /usr/include/xdp/xsk.h:17,
>> from ../drivers/net/af_xdp/compat.h:6,
>> from ../drivers/net/af_xdp/rte_eth_af_xdp.c:41:
>> /usr/include/bpf/libbpf.h:1169:16: note: declared here
>> | LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
>> | ^~~~~~~~~~~~~~~~~~~
>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:858:9:
>> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
>> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
>> | bpf_set_link_xdp_fd(internals->if_index, -1,
>> | ^~~~~~~~~~~~~~~~~~~
>> /usr/include/bpf/libbpf.h:1164:16: note: declared here
>> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
>> | ^~~~~~~~~~~~~~~~~~~
>> ../drivers/net/af_xdp/rte_eth_af_xdp.c: In function ‘load_custom_xdp_prog’:
>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:1171:9:
>> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
>> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
>> | ret = bpf_set_link_xdp_fd(if_index, prog_fd,
>> | ^~~
>> /usr/include/bpf/libbpf.h:1164:16: note: declared here
>> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
>> | ^~~~~~~~~~~~~~~~~~~
>>
>> Cc: Ciara Loftus <ciara.loftus@intel.com>
>> Cc: Qi Zhang <qi.z.zhang@intel.com>
>> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
>> ---
>> drivers/net/af_xdp/rte_eth_af_xdp.c | 18 ++++++++++++++++++
>> 1 file changed, 18 insertions(+)
>>
>> diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
>> index 9db76d4562..b04aa30325 100644
>> --- a/drivers/net/af_xdp/rte_eth_af_xdp.c
>> +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
>> @@ -846,4 +846,10 @@ eth_stats_reset(struct rte_eth_dev *dev)
>> }
>>
>> +#pragma GCC diagnostic push
>> +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
>> +#pragma GCC diagnostic ignored "-Wunknown-pragmas"
>> +#pragma clang diagnostic push
>> +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
>
> clang recognises GCC pragmas, so this clang pragma is unneeded.
> https://clang.llvm.org/docs/UsersManual.html#id34
>
> And I suspect disabling unknown-pragmas is unneeded once clang pragmas
> are removed.
>
>
hmm, ok thanks, I will re-check. I saw the warning after applying the
GCC one, but it was with test-meson-builds, so perhaps I confused with
the ABI reference build.
Yes, unknown-pragmas could be removed if the clang pragma is unneeded.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings
2023-04-05 8:45 ` Kevin Traynor
@ 2023-04-05 10:41 ` Kevin Traynor
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Traynor @ 2023-04-05 10:41 UTC (permalink / raw)
To: David Marchand; +Cc: stable, Ciara Loftus, Qi Zhang
On 05/04/2023 09:45, Kevin Traynor wrote:
> On 05/04/2023 08:39, David Marchand wrote:
>> On Tue, Apr 4, 2023 at 5:35 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>>>
>>> Fedora 37 with versions libbpf-0.8.0-2.fc37.x86_64 and
>>> libxdp-1.2.6-1.fc37.x86_64 gives the following warnings [0].
>>>
>>> Squash these for a clean build on Fedora 37 and any other distros
>>> or systems using newer libbpf and libxdp versions.
>>>
>>> Discussed on mail list at:
>>> http://inbox.dpdk.org/dev/d718d0fe-09a2-8840-e8a4-dd41b732b391@redhat.com/
>>>
>>> [0]
>>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:853:9:
>>> warning: ‘bpf_get_link_xdp_id’ is deprecated:
>>> libbpf v0.8+: use bpf_xdp_query_id() instead [-Wdeprecated-declarations]
>>> | if (bpf_get_link_xdp_id(internals->if_index, &curr_prog_id,
>>> | ^~
>>> In file included from /usr/include/xdp/xsk.h:17,
>>> from ../drivers/net/af_xdp/compat.h:6,
>>> from ../drivers/net/af_xdp/rte_eth_af_xdp.c:41:
>>> /usr/include/bpf/libbpf.h:1169:16: note: declared here
>>> | LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
>>> | ^~~~~~~~~~~~~~~~~~~
>>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:858:9:
>>> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
>>> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
>>> | bpf_set_link_xdp_fd(internals->if_index, -1,
>>> | ^~~~~~~~~~~~~~~~~~~
>>> /usr/include/bpf/libbpf.h:1164:16: note: declared here
>>> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
>>> | ^~~~~~~~~~~~~~~~~~~
>>> ../drivers/net/af_xdp/rte_eth_af_xdp.c: In function ‘load_custom_xdp_prog’:
>>> ../drivers/net/af_xdp/rte_eth_af_xdp.c:1171:9:
>>> warning: ‘bpf_set_link_xdp_fd’ is deprecated:
>>> libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
>>> | ret = bpf_set_link_xdp_fd(if_index, prog_fd,
>>> | ^~~
>>> /usr/include/bpf/libbpf.h:1164:16: note: declared here
>>> | LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
>>> | ^~~~~~~~~~~~~~~~~~~
>>>
>>> Cc: Ciara Loftus <ciara.loftus@intel.com>
>>> Cc: Qi Zhang <qi.z.zhang@intel.com>
>>> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
>>> ---
>>> drivers/net/af_xdp/rte_eth_af_xdp.c | 18 ++++++++++++++++++
>>> 1 file changed, 18 insertions(+)
>>>
>>> diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
>>> index 9db76d4562..b04aa30325 100644
>>> --- a/drivers/net/af_xdp/rte_eth_af_xdp.c
>>> +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
>>> @@ -846,4 +846,10 @@ eth_stats_reset(struct rte_eth_dev *dev)
>>> }
>>>
>>> +#pragma GCC diagnostic push
>>> +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
>>> +#pragma GCC diagnostic ignored "-Wunknown-pragmas"
>>> +#pragma clang diagnostic push
>>> +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
>>
>> clang recognises GCC pragmas, so this clang pragma is unneeded.
>> https://clang.llvm.org/docs/UsersManual.html#id34
>>
>> And I suspect disabling unknown-pragmas is unneeded once clang pragmas
>> are removed.
>>
>>
>
> hmm, ok thanks, I will re-check. I saw the warning after applying the
> GCC one, but it was with test-meson-builds, so perhaps I confused with
> the ABI reference build.
>
Yes, I confirmed it. The warnings I had seen with clang were for the ABI
reference build and not the current build. I re-tested with just the gcc
deprecated-declarations pragma and it is building without warnings on
gcc and clang.
I will send a v2. Thanks David.
> Yes, unknown-pragmas could be removed if the clang pragma is unneeded.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 21.11 v2] net/af_xdp: squash deprecated-declaration warnings
2023-04-04 15:35 [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings Kevin Traynor
2023-04-05 7:39 ` David Marchand
@ 2023-04-05 10:44 ` Kevin Traynor
1 sibling, 0 replies; 5+ messages in thread
From: Kevin Traynor @ 2023-04-05 10:44 UTC (permalink / raw)
To: stable; +Cc: david.marchand, Kevin Traynor, Ciara Loftus, Qi Zhang
Fedora 37 with versions libbpf-0.8.0-2.fc37.x86_64 and
libxdp-1.2.6-1.fc37.x86_64 gives the following warnings [0].
Squash these for a clean build on Fedora 37 and any other distros
or systems using newer libbpf and libxdp versions.
Discussed on mail list at:
http://inbox.dpdk.org/dev/d718d0fe-09a2-8840-e8a4-dd41b732b391@redhat.com/
[0]
../drivers/net/af_xdp/rte_eth_af_xdp.c:853:9:
warning: ‘bpf_get_link_xdp_id’ is deprecated:
libbpf v0.8+: use bpf_xdp_query_id() instead [-Wdeprecated-declarations]
| if (bpf_get_link_xdp_id(internals->if_index, &curr_prog_id,
| ^~
In file included from /usr/include/xdp/xsk.h:17,
from ../drivers/net/af_xdp/compat.h:6,
from ../drivers/net/af_xdp/rte_eth_af_xdp.c:41:
/usr/include/bpf/libbpf.h:1169:16: note: declared here
| LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
../drivers/net/af_xdp/rte_eth_af_xdp.c:858:9:
warning: ‘bpf_set_link_xdp_fd’ is deprecated:
libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
| bpf_set_link_xdp_fd(internals->if_index, -1,
| ^~~~~~~~~~~~~~~~~~~
/usr/include/bpf/libbpf.h:1164:16: note: declared here
| LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
../drivers/net/af_xdp/rte_eth_af_xdp.c: In function ‘load_custom_xdp_prog’:
../drivers/net/af_xdp/rte_eth_af_xdp.c:1171:9:
warning: ‘bpf_set_link_xdp_fd’ is deprecated:
libbpf v0.8+: use bpf_xdp_attach() instead [-Wdeprecated-declarations]
| ret = bpf_set_link_xdp_fd(if_index, prog_fd,
| ^~~
/usr/include/bpf/libbpf.h:1164:16: note: declared here
| LIBBPF_API int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
| ^~~~~~~~~~~~~~~~~~~
Cc: Ciara Loftus <ciara.loftus@intel.com>
Cc: Qi Zhang <qi.z.zhang@intel.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
drivers/net/af_xdp/rte_eth_af_xdp.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
index 9db76d4562..68bae5610e 100644
--- a/drivers/net/af_xdp/rte_eth_af_xdp.c
+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
@@ -846,4 +846,7 @@ eth_stats_reset(struct rte_eth_dev *dev)
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
static void
remove_xdp_program(struct pmd_internals *internals)
@@ -860,4 +863,6 @@ remove_xdp_program(struct pmd_internals *internals)
}
+#pragma GCC diagnostic pop
+
static void
xdp_umem_destroy(struct xsk_umem_info *umem)
@@ -1146,4 +1151,7 @@ xsk_umem_info *xdp_umem_configure(struct pmd_internals *internals,
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
static int
load_custom_xdp_prog(const char *prog_path, int if_index, struct bpf_map **map)
@@ -1183,4 +1191,6 @@ load_custom_xdp_prog(const char *prog_path, int if_index, struct bpf_map **map)
}
+#pragma GCC diagnostic pop
+
/* Detect support for busy polling through setsockopt(). */
static int
--
2.39.2
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-04-05 10:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 15:35 [PATCH 21.11] net/af_xdp: squash deprecated-declaration warnings Kevin Traynor
2023-04-05 7:39 ` David Marchand
2023-04-05 8:45 ` Kevin Traynor
2023-04-05 10:41 ` Kevin Traynor
2023-04-05 10:44 ` [PATCH 21.11 v2] " Kevin Traynor
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).