-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/af_xdp: fix build with -Wunused-function
[ upstream commit af8d89a ] The get_shared_umem function is only called when the kernel flag XDP_UMEM_UNALIGNED_CHUNK_FLAG is defined. Move the function implementation and associated helper so that it only gets compiled when that flag is set. Fixes: 74b4634 ("net/af_xdp: support shared UMEM") Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
- Loading branch information
Showing
1 changed file
with
60 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters