From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbeAPOf2 (ORCPT + 1 other); Tue, 16 Jan 2018 09:35:28 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:42357 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751560AbeAPOex (ORCPT ); Tue, 16 Jan 2018 09:34:53 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w0GEYTNo026456 X-Nifty-SrcIP: [209.85.217.181] X-Google-Smtp-Source: ACJfBov1gipgWiG4keyNphUXl/6pcWDORMI38NfXlS/g3hdhkWNayAhaWzlpMV1uK0ndBSpGdRmdTJSujSJuRvdXBno= MIME-Version: 1.0 In-Reply-To: <1515858990-31699-1-git-send-email-himanshujha199640@gmail.com> References: <1515858990-31699-1-git-send-email-himanshujha199640@gmail.com> From: Masahiro Yamada Date: Tue, 16 Jan 2018 23:33:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Coccinelle: alloc_cast: Add more memory allocating functions to the list To: Himanshu Jha Cc: Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 2018-01-14 0:56 GMT+09:00 Himanshu Jha : > Add more memory allocating functions that are frequently used in the kernel > code to the existing list and remove the useless casts where it is > unnecessary. > > But preserve those casts having __attribute__ such as __force, __iomem, > etc which are used by Sparse in the static analysis of the code. > > Also remove two blank lines at EOF. > > Signed-off-by: Himanshu Jha > --- > scripts/coccinelle/api/alloc/alloc_cast.cocci | 92 +++++++++++++++++++++------ > 1 file changed, 71 insertions(+), 21 deletions(-) Applied to linux-kbuild/misc. Thanks! -- Best Regards Masahiro Yamada