mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Add special test to be sure that only __nullable BTF params can be replaced by NULL. This patch adds fake kfuncs in bpf_testmod to properly test different params. Acked-by: Eduard Zingerman <[email protected]> Signed-off-by: Vadim Fedorenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
12 lines
232 B
C
12 lines
232 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/* Copyright (c) 2024 Meta Platforms, Inc */
|
|
|
|
#include <test_progs.h>
|
|
#include "test_kfunc_param_nullable.skel.h"
|
|
|
|
void test_kfunc_param_nullable(void)
|
|
{
|
|
RUN_TESTS(test_kfunc_param_nullable);
|
|
}
|