Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756899AbbDVLQ6 (ORCPT ); Wed, 22 Apr 2015 07:16:58 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:51423 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752032AbbDVLQ5 (ORCPT ); Wed, 22 Apr 2015 07:16:57 -0400 X-AuditID: cbfec7f5-f794b6d000001495-29-5537832756ef Message-id: <55378326.4030707@samsung.com> Date: Wed, 22 Apr 2015 13:16:54 +0200 From: Daniel Granat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-version: 1.0 To: Krzysztof Kozlowski , Julia.Lawall@lip6.fr, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Cc: Gilles.Muller@lip6.fr, nicolas.palix@imag.fr Subject: Re: [PATCH] Add coccinelle script that makes sure that tables are NULL terminated References: <1425043313-15844-1-git-send-email-d.granat@samsung.com> <55378124.2060908@gmail.com> In-reply-to: <55378124.2060908@gmail.com> Content-type: text/plain; charset=iso-8859-2; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsVy+t/xa7rqzeahBo87VS1+bFrNZjH75yUm i2UPTjNaPP/3g93i8q45bBbHXi5ncmDz2DnrLrvHsWOtzB57t2R5PFp2n8Xj8ya5ANYoLpuU 1JzMstQifbsErowfP3YzFUzhrth9bQJLA+MSzi5GDg4JAROJmTfluhg5gUwxiQv31rN1MXJx CAksZZSY3biFBcJ5zigxa+lPRpAqXgEtiZ03TrCD2CwCqhJPj20Bi7MBxS/fecAEMlRUIEKi +0QlRLmgxI/J91hAbBGBOok5x1eClTMLGEhsaHsMZgsLxEjc/76AFcQWEkiW+HxpP1g9p4Cm xJmt29kg6q0lnh15yAphy0tsXvOWeQKjwCwkK2YhKZuFpGwBI/MqRtHU0uSC4qT0XCO94sTc 4tK8dL3k/NxNjJCw/rqDcekxq0OMAhyMSjy8F0rNQ4VYE8uKK3MPMUpwMCuJ8DbUA4V4UxIr q1KL8uOLSnNSiw8xSnOwKInzztz1PkRIID2xJDU7NbUgtQgmy8TBKdXAWGN859wJg2zP6VfN nZY80C2583itSGb4jenvo14t7ZMX2v6qXWSaW9fyKfbrZzYmcV7QnP7Z0Ve37cr/VaflGWfO 5hbatl/zsee5JfbuqY/vzjxkou46UZTJNe/zT7UT3kmOD3+sPduyysSiWM14527hF9M0ljIv ODYzZMa+xlVHYkX7utNWf1diKc5INNRiLipOBABQgCt8ZwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 43 Ok, but I'm going to improve the script. New coccinelle release give my opportunity to simplify this a lot, so I'll send next version of my patch soon. Best regards, -- Daniel Granat Junior Software Engineer Samsung R&D Institute Poland (SRPOL) Al. Armii Ludowej 14, 00-638 Warszawa, Poland On 04/22/2015 01:08 PM, Krzysztof Kozlowski wrote: > W dniu 27.02.2015 o 22:21, Daniel Granat pisze: >> Signed-off-by: Daniel Granat >> --- >> scripts/coccinelle/misc/device_id_tables.cocci | 95 ++++++++++++++++++++++++++ >> 1 file changed, 95 insertions(+) >> create mode 100644 scripts/coccinelle/misc/device_id_tables.cocci > > I like the idea and I think it is useful. > Tested-by: Krzysztof Kozlowski > > However applying the patch gave some warnings: > > Applying: Add coccinelle script that makes sure that tables are NULL terminated > /home/dev/linux/linux/.git/rebase-apply/patch:64: space before tab in indent. > coccilib.report.print_report(p1[0],msg) > /home/dev/linux/linux/.git/rebase-apply/patch:89: trailing whitespace. > struct matched_name arr[] = { > /home/dev/linux/linux/.git/rebase-apply/patch:99: trailing whitespace. > struct matched_name arr[] = { > /home/dev/linux/linux/.git/rebase-apply/patch:106: new blank line at EOF. > + > warning: 4 lines add whitespace errors. > > Best regards, > Krzysztof > -- 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/