samples/bpf: remove unused function with test_lru_dist
authorDaniel T. Lee <danieltimlee@gmail.com>
Sun, 18 Dec 2022 06:14:51 +0000 (15:14 +0900)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 19 Dec 2022 22:21:05 +0000 (14:21 -0800)
commit13aa2a92840dd49a64362ddd1e4d16084a4b9e0f
treeaa63b6892020410bcaa98de45721b5e08432f583
parente2bb9e01d589f7fa82573aedd2765ff9b277816a
samples/bpf: remove unused function with test_lru_dist

Currently, compiling samples/bpf with LLVM warns about the unused
function with test_lru_dist.

    ./samples/bpf/test_lru_dist.c:45:19:
    warning: unused function 'list_empty' [-Wunused-function]
    static inline int list_empty(const struct list_head *head)
                      ^
                      1 warning generated.

This commit resolve this compiler warning by removing the abandoned
function.

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20221218061453.6287-2-danieltimlee@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
samples/bpf/test_lru_dist.c