Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 214541d1 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds
Browse files

add WEAK() for creating weak asm labels

parent e5371ac5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -34,6 +34,12 @@
  name:
#endif

#ifndef WEAK
#define WEAK(name)	   \
	.weak name;	   \
	name:
#endif

#define KPROBE_ENTRY(name) \
  .pushsection .kprobes.text, "ax"; \
  ENTRY(name)