Introduce a new spatch script that can strip static branch
hints.

Signed-off-by: Dan Cross <[email protected]>
---
 scripts/spatch/static-branch-hints.cocci | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 scripts/spatch/static-branch-hints.cocci

diff --git a/scripts/spatch/static-branch-hints.cocci 
b/scripts/spatch/static-branch-hints.cocci
new file mode 100644
index 0000000..955095e
--- /dev/null
+++ b/scripts/spatch/static-branch-hints.cocci
@@ -0,0 +1,13 @@
+@@
+expression U;
+@@
+- unlikely(
+  U
+- )
+
+@@
+expression L;
+@@
+- likely(
+  L
+- )
-- 
2.7.0.rc3.207.g0ac5344

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to