From 41ebfa77afba6814248a1324951d24f2f3076170 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 16 May 2013 10:22:27 +0200 Subject: [PATCH] coccinelle: update pkt not set test This patch updates the test to add the support of initialization of a Packet via the INITIALIZE macro. --- qa/coccinelle/pktnotset-packet.cocci | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/coccinelle/pktnotset-packet.cocci b/qa/coccinelle/pktnotset-packet.cocci index 61c00dcefe..ab6a98c1d0 100644 --- a/qa/coccinelle/pktnotset-packet.cocci +++ b/qa/coccinelle/pktnotset-packet.cocci @@ -14,7 +14,11 @@ position zeroed.p1; memset(p@p1, 0, ...); ... when != p +( p->pkt +| +PACKET_INITIALIZE(p) +) @script:python depends on !isset@ p1 << zeroed.p1;