[<prev] [next>] [day] [month] [year] [list]
Message-ID: <52c3fdf6-0d04-eed5-da57-ef7d1008c291@web.de>
Date: Sat, 16 Feb 2019 19:39:56 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Wen Yang <yellowriver2010@...mail.com>,
Julia Lawall <Julia.Lawall@...6.fr>,
Gilles Muller <Gilles.Muller@...6.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
Michal Marek <michal.lkml@...kovi.net>
Cc: cocci@...teme.lip6.fr, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, Wen Yang <wen.yang99@....com.cn>,
Cheng Shengyu <cheng.shengyu@....com.cn>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: Re: [v6] coccinelle: semantic code search for missing put_device()
> In a function, for a local variable obtained by of_find_device_by_node(),
I got a software understanding where such a variable can not be obtained
from this function call.
The return value (like a pointer in this use case) can be stored there.
> v6:
> - to be double sure, replace &id->dev with (T)(&id->dev).
The support for data type casts is another interesting extension for
this source code analysis approach.
Further adjustments might become possible at other places of the presented SmPL script
after specific clarifications of previously mentioned implementation details.
Regards,
Markus
Powered by blists - more mailing lists