Thread (67 messages) 67 messages, 4 authors, 2021-04-23

Re: [PATCH v2 bpf-next 15/17] selftests/bpf: add function linking selftest

From: Andrii Nakryiko <hidden>
Date: 2021-04-23 04:30:01
Also in: bpf

On Thu, Apr 22, 2021 at 7:35 PM Alexei Starovoitov
[off-list ref] wrote:
On Thu, Apr 22, 2021 at 5:51 PM Yonghong Song [off-list ref] wrote:
quoted
quoted
+
+/* weak and shared between two files */
+const volatile int my_tid __weak = 0;
+const volatile long syscall_id __weak = 0;
Since the new compiler (llvm13) is recommended for this patch set.
We can simplify the above two definition with
   int my_tid __weak;
   long syscall_id __weak;
The same for the other file.

But I am also okay with the current form
to *satisfy* llvm10 some people may still use.
The test won't work with anything, but the latest llvm trunk,
so " = 0" is useless.
Let's remove it.
Especially from the tests that rely on the latest llvm.
No one can backport the latest llvm BPF backend to llvm10 front-end.
Sure, I'll drop = 0, just a habit by now.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help