Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752101AbdGVGjX (ORCPT ); Sat, 22 Jul 2017 02:39:23 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:25625 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbdGVGjW (ORCPT ); Sat, 22 Jul 2017 02:39:22 -0400 X-IronPort-AV: E=Sophos;i="5.40,394,1496095200"; d="scan'208";a="284490995" Date: Sat, 22 Jul 2017 08:39:19 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Borislav Petkov cc: "Gustavo A. R. Silva" , Mauro Carvalho Chehab , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [PATCH] EDAC: remove unnecessary static in edac_fake_inject_write() In-Reply-To: <20170722063602.GB2050@nazgul.tnic> Message-ID: References: <20170704214440.GA9462@embeddedgus> <20170717083946.GB23129@nazgul.tnic> <20170722063602.GB2050@nazgul.tnic> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 33 On Sat, 22 Jul 2017, Borislav Petkov wrote: > On Fri, Jul 21, 2017 at 10:08:12PM +0200, Julia Lawall wrote: > > Someone pointed out that the rule is probably not OK when the address of > > the static variable is taken, because then it is likely being used as > > permanent storage. > > Makes sense to me. > > > An improved rule is: > > Do you think it is worth having it in scripts/coccinelle/ ? Sure. Now that it has been a bit more sanity checked. > I don't think Gustavo would mind putting it there :) OK, I will check with him. julia > > Thanks. > > -- > Regards/Gruss, > Boris. > > ECO tip #101: Trim your mails when you reply. > -- >