Received: by 10.223.176.46 with SMTP id f43csp1132753wra; Fri, 19 Jan 2018 07:20:39 -0800 (PST) X-Google-Smtp-Source: ACJfBouJy9CxNnBxXUznRPrvAfnYDIN5vul2kzOBR7hmrfZLqLTNMEcpxMH0hn/al2d0jdjmM97i X-Received: by 10.98.220.72 with SMTP id t69mr38282107pfg.135.1516375239416; Fri, 19 Jan 2018 07:20:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516375239; cv=none; d=google.com; s=arc-20160816; b=K8tgRy+WorbEbzkaO2wQ9LqHnDBiQBL965djRJTTgP9dlR9Y+smJADoPTWVhRXi4lk weBrrp/JxQznL3XId/8bDFf/dEu7SaGZDDNEfAlHU7qDdVKem1zZ1CHLaTAuJ9x8GnT1 8t7YCEKPms+wlu2+82qH6LHu16+kmMLMBT2yzgjzZ7776y2ihPQW8OSfq98vtuHkI/FX NrZdwgtyJZ+dTZ2m9SbWL2DHd+Je0LTxGCv7GjObJyrfnm+NVOxTv1ENi3Q9mtrX0x1I 0eZzRSggKhr4R0kSYzEvju9acpaYv9ghaOPfr7TkKsrkL0hwKevySYmVHATzo1y5LIi8 Hykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:subject :from:to:arc-authentication-results; bh=1ECAyttkPMgoA7G8jMW6mefnmyW1QdhGE0Vy3mm9e3g=; b=Qzrw/ogCuSvzpLuAmZ14Nb5iQlLm+c5Na53Y4pknkygG1USwUg86RzOImgcQWB+PrP nmBxOo3S1705nMCIRP6ueQ88yWrevtYj5P6u0UVV8YPo6fQCaoVrvXvZXeWV/lKpIj+Y rEldgOSRy0x5yboEvRBpd/hz21x/UgnyIzq38RLe+qXXpyYA6c6llbzilOHwMK7vMLeR lUPBEi+K9RseLY07qe9nf1R5nHDUCdLpLf7Ce1uReQZ7iXkE5bEJLjhrjClMGNmxwF3x 7kQyJuCbuz6sh+uR0Y+DSbOXYsgAIg3mjKYFW5yyMNIXjYnc1eb4VxR5Va3/RzsBOIDI LEsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si9130791pfe.378.2018.01.19.07.20.24; Fri, 19 Jan 2018 07:20:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932267AbeASPTw (ORCPT + 99 others); Fri, 19 Jan 2018 10:19:52 -0500 Received: from mout.web.de ([217.72.192.78]:59394 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964AbeASPTn (ORCPT ); Fri, 19 Jan 2018 10:19:43 -0500 Received: from [192.168.1.3] ([78.53.251.71]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LcgZv-1f3wrA0aGt-00k5DH; Fri, 19 Jan 2018 16:19:35 +0100 To: cocci@systeme.lip6.fr, Gilles Muller , Himanshu Jha , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix From: SF Markus Elfring Subject: [PATCH] Coccinelle: zalloc-simple: Delete duplicate specifications of the key word "expression" Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <081fc0aa-2394-47c4-11fa-c615a429bc0d@users.sourceforge.net> Date: Fri, 19 Jan 2018 16:19:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:CrbkJ+JP/0YD7NCS9K9ws+mcUgxiO6bW3W2UDos6UfY403tNCI1 CNCpyFHRQLOA1shhYSq/GJ/TFTA9nlh5XuzO97f+L0y78GQg33iC8lKLU7XSKBuwVwCS94Q ibjzeAQCKRkTbniKOksijNmrB+l+TLldaHtq/hZYvMlj0FTd3VNvRI5G7nGMLjO/JWQDJuT n4X32kdLMEAvTvdjPJ7cw== X-UI-Out-Filterresults: notjunk:1;V01:K0:A8Sui0usZ9k=:UrxZF95A7t/SYd6vM83UwF +/PNw/zjJy2sXzQxbpSX2fb6Y3EgwpgyS9XUUzMCjWiKI8atjiRLqZGRbY5lcEbyy518piDCB y+7GhuHr2QiHIde/nUBq/L8RT+LoKAtE2HgqejccrF8zX4Z3WkBp/Ri7Qe4TgNJF8qIGDLwU1 QmHXEfn4P9XVxHMowWdOPbg2BAbJwcsvJfoycRjvaSdI9lJFeZuLpVJgWLpgL655M07zLN5kO DvazGBPu8iGIokmntn0KQcsj6IxULMHhxKw+WavUKAX1D6YTzk7qkCYjUwUzyZ+Nlby74pvLm BaTxsdszj5MAbbifqOeUuHdCPdrzkdfxRa+2GSupeyLfxKJ08ZDebMijLh+8VgNHKi2GPGYfj 5jkkV0bFGas2pfPAFO3i10PDFhfkdMPyTNagJwyIPgDyEqn1isCqbqqWfksIcNqwUkrr2+vcg BEBORkQZddFiHNnB0FNKzrKjPdDcck7pdMwuj3GywqJ9xuhEo9ZI9hwJv6neAf1gzqYHcaW+E SCkZ6EyujA5b788TihbI2ZlDXAwvujvoI+V5ngMq2o/A0gfiLnyc/inQXHKiqFQBhYTrlc2jp HfBMk5wtpaGJLl3GiHLhwvOuTFnbF/cYEbalaA9RTBEByyq/Ow+0QBCLiA52a4l2mAGa+lD1K 2ZR9K4Dn5VufsHIoK14YtZksB/BXytVlE83j2ZHI/LAIyfzB650//ACC5AExhSE5nnCFIgkBU 2mHZ7KwGamZX9CwiOWsq9FPQzETb5EPfUUe+IraHj99nPaMFFwG3/qiznCoFNMkXHlk0MuFSW b/nRiLsoW2jetXu17xgs4Ur+Xg7kSuZBuuRFyMFdo0GLfzLQLw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 19 Jan 2018 16:00:22 +0100 Reduce the file size a bit by removing 12 specifications of the key word "expression" in this script for the semantic patch language. Signed-off-by: Markus Elfring --- scripts/coccinelle/api/alloc/zalloc-simple.cocci | 36 ++++++++---------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/scripts/coccinelle/api/alloc/zalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc-simple.cocci index 92b20913055f..a8a530696a5e 100644 --- a/scripts/coccinelle/api/alloc/zalloc-simple.cocci +++ b/scripts/coccinelle/api/alloc/zalloc-simple.cocci @@ -28,8 +28,7 @@ virtual report @depends on context@ type T, T2; -expression x; -expression E1; +expression x,E1; statement S; @@ @@ -46,8 +45,7 @@ statement S; @depends on patch@ type T, T2; -expression x; -expression E1,E2,E3,E4; +expression x,E1,E2,E3,E4; statement S; @@ @@ -151,8 +149,7 @@ statement S; @r depends on org || report@ type T, T2; -expression x; -expression E1,E2; +expression x,E1,E2; statement S; position p; @@ @@ -181,8 +178,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r1 depends on org || report@ type T, T2; -expression x; -expression E1; +expression x,E1; statement S; position p; @@ @@ -211,8 +207,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r2 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3,E4; +expression x,E1,E2,E3,E4; statement S; position p; @@ @@ -241,8 +236,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r3 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3; +expression x,E1,E2,E3; statement S; position p; @@ @@ -271,8 +265,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r4 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3; +expression x,E1,E2,E3; statement S; position p; @@ @@ -301,8 +294,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r5 depends on org || report@ type T, T2; -expression x; -expression E1,E2; +expression x,E1,E2; statement S; position p; @@ @@ -331,8 +323,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r6 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3; +expression x,E1,E2,E3; statement S; position p; @@ @@ -361,8 +352,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r7 depends on org || report@ type T, T2; -expression x; -expression E1,E2; +expression x,E1,E2; statement S; position p; @@ @@ -391,8 +381,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r8 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3; +expression x,E1,E2,E3; statement S; position p; @@ @@ -420,8 +409,7 @@ coccilib.report.print_report(p[0], msg) //----------------------------------------------------------------- @r9 depends on org || report@ type T, T2; -expression x; -expression E1,E2,E3; +expression x,E1,E2,E3; statement S; position p; @@ -- 2.15.1