Commit 353b190
bpf: make bpf_key an opaque type
Since the only consumers of struct bpf_key are bpf scripts which call
the bpf kfuncs which take struct bpf_key, only the implementing
functions in bpf_trace.c should be reaching inside this structure.
Enforce this by making the structure opaque in the header with a body
that's only defined inside bpf_trace.c
Signed-off-by: James Bottomley <[email protected]>1 parent 9879802 commit 353b190
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3656 | 3656 | | |
3657 | 3657 | | |
3658 | 3658 | | |
3659 | | - | |
3660 | | - | |
3661 | | - | |
3662 | | - | |
| 3659 | + | |
3663 | 3660 | | |
3664 | 3661 | | |
3665 | 3662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1245 | 1250 | | |
1246 | 1251 | | |
1247 | 1252 | | |
| |||
0 commit comments