Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230169

[PATCH v2] Coccinelle: fix incorrect -include option transformation

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Andrzej Hajda <a.hajda@samsung.com>
Newsgroups linux.kernel
Subject [PATCH v2] Coccinelle: fix incorrect -include option transformation
Date Tue, 22 Sep 2015 15:20:01 +0200
Message-ID <qbvEd-6p9-3@gated-at.bofh.it> (permalink)
References <qbvEd-6p9-5@gated-at.bofh.it>
X-Original-To linux-kernel@vger.kernel.org
X-Auditid cbfec7f4-f79c56d0000012ee-e3-5601548cf789
X-Mailer git-send-email 1.9.1
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFlrELMWRmVeSWpSXmKPExsVy+t/xy7o9IYxhBueOaFvcWneO1WLjjPWs Fj82rWazmP3zEpPFsgenGS0u75rDZrH2yF12izmts9gsjr1czuTA6XHsWCuzx94tWR59W1Yx eqzfcpXF49Gy+ywenzfJBbBFcdmkpOZklqUW6dslcGX8u/+CvWA/W8XSBaINjBtYuxg5OSQE TCT+ND5hhLDFJC7cW8/WxcjFISSwlFHi0bLX7BBOE5PEyYf7wDrYBDQl/m6+yQZiiwgoSGzu fcYKUsQs8Amo6OlpsCJhAR+J2bN2MoHYLAKqEvO2v2AGsXkFnCVe/5jAArFOTuLksclg9ZwC 6hIbV7wDqxcSUJM4+XobywRG3gWMDKsYRVNLkwuKk9JzDfWKE3OLS/PS9ZLzczcxQkLuyw7G xcesDjEKcDAq8fB69jGECbEmlhVX5h5ilOBgVhLhXafIGCbEm5JYWZValB9fVJqTWnyIUZqD RUmcd+6u9yFCAumJJanZqakFqUUwWSYOTqkGxgiXEtd5Zfvbzs9zUXfwuWHFXR5ZxK57vXnn 2vWCGfuOy/Pt/i9sn6fmuL9/W1CFnb0fa4Om5LRXS90P9zgbThVSknq3479mzPRFgv/lfT7x SVwrzt+mYn4nRXqv86oChdiNO0UNQ3T+ebvpzkn9cEv1lFF2/UZzQ9/TWzQU0kImNumWrZ6g xFKckWioxVxUnAgAqmBgwzUCAAA=
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc Andrzej Hajda <a.hajda@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Julia Lawall <Julia.Lawall@lip6.fr>, Gilles Muller <Gilles.Muller@lip6.fr>, Nicolas Palix <nicolas.palix@imag.fr>, Michal Marek <mmarek@suse.com>, cocci@systeme.lip6.fr (moderated list:COCCINELLE/Semantic Patches (SmPL))
X-Original-Date Tue, 22 Sep 2015 15:15:30 +0200
X-Original-Message-ID <1442927730-18676-1-git-send-email-a.hajda@samsung.com>
X-Original-References <56015315.507@samsung.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1230169

Show key headers only | View raw


kbuild/gcc uses -include option to include files and -I to provide paths for
#include <> directive. In case of spatch latter option should be prefixed with
two -.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index bbf901a..b2d75818 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -30,7 +30,7 @@ FLAGS="$SPFLAGS --very-quiet"
 # spatch only allows include directories with the syntax "-I include"
 # while gcc also allows "-Iinclude" and "-include include"
 COCCIINCLUDE=${LINUXINCLUDE//-I/-I }
-COCCIINCLUDE=${COCCIINCLUDE//-include/-I}
+COCCIINCLUDE=${COCCIINCLUDE// -include/ --include}
 
 if [ "$C" = "1" -o "$C" = "2" ]; then
     ONLINE=1
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] Coccinelle: fix incorrect -include option transformation Andrzej Hajda <a.hajda@samsung.com> - 2015-09-22 15:20 +0200
  Re: [PATCH v2] Coccinelle: fix incorrect -include option  transformation Julia Lawall <julia.lawall@lip6.fr> - 2015-09-22 15:30 +0200

csiph-web