mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
15 lines
381 B
C
15 lines
381 B
C
![]() |
// SPDX-License-Identifier: GPL-2.0
|
||
|
|
||
|
#include <linux/bpf.h>
|
||
|
#include <bpf/bpf_helpers.h>
|
||
|
|
||
|
char _license[] SEC("license") = "GPL";
|
||
|
|
||
|
/* This is an unused struct_ops program, it lacks corresponding
|
||
|
* struct_ops map, which provides attachment information.
|
||
|
* W/o additional configuration attempt to load such
|
||
|
* BPF object file would fail.
|
||
|
*/
|
||
|
SEC("struct_ops/foo")
|
||
|
void foo(void) {}
|