Skip to content

Commit 098a379

Browse files
Saket Kumar BhaskarNipaLocal
Saket Kumar Bhaskar
authored and
NipaLocal
committed
selftests/bpf: Fix bpf selftest build warning
On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e38 ("net: add UAPI to the header guard in various network headers") changed the header guard from _LINUX_IF_XDP_H to _UAPI_LINUX_IF_XDP_H in include/uapi/linux/if_xdp.h. To resolve the warning, update tools/include/uapi/linux/if_xdp.h to align with the changes in include/uapi/linux/if_xdp.h Fixes: 8066e38 ("net: add UAPI to the header guard in various network headers") Reported-by: Venkat Rao Bagalkote <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Tested-by: Venkat Rao Bagalkote <[email protected]> Signed-off-by: Saket Kumar Bhaskar <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 933804e commit 098a379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/include/uapi/linux/if_xdp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Magnus Karlsson <[email protected]>
88
*/
99

10-
#ifndef _LINUX_IF_XDP_H
11-
#define _LINUX_IF_XDP_H
10+
#ifndef _UAPI_LINUX_IF_XDP_H
11+
#define _UAPI_LINUX_IF_XDP_H
1212

1313
#include <linux/types.h>
1414

@@ -180,4 +180,4 @@ struct xdp_desc {
180180
/* TX packet carries valid metadata. */
181181
#define XDP_TX_METADATA (1 << 1)
182182

183-
#endif /* _LINUX_IF_XDP_H */
183+
#endif /* _UAPI_LINUX_IF_XDP_H */

0 commit comments

Comments
 (0)