Commit e074796
committed
chore(driver/bpf): fix warning in bpf_accumulate_argv_or_env
Recent versions of clang tend to emit the following warning:
In file included from /usr/src/draios-agent-14.2.4/bpf/probe.c:26:
/usr/src/draios-agent-14.2.4/bpf/fillers.h:2311:48: warning: passing 'volatile long *' to parameter of type 'long *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2311 | res = bpf_accumulate_argv_or_env(data, argv, &args_len);
| ^~~~~~~~~
/usr/src/draios-agent-14.2.4/bpf/fillers.h:1921:61: note: passing argument to parameter 'args_len' here
1921 | long *args_len) {
| ^
Jut make the (other) variable and the argument volatile.
Signed-off-by: Gerlando Falauto <[email protected]>1 parent 28a58d5 commit e074796
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1954 | 1954 | | |
1955 | 1955 | | |
1956 | 1956 | | |
1957 | | - | |
| 1957 | + | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
| |||
2616 | 2616 | | |
2617 | 2617 | | |
2618 | 2618 | | |
2619 | | - | |
| 2619 | + | |
2620 | 2620 | | |
2621 | 2621 | | |
2622 | 2622 | | |
| |||
0 commit comments