From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.134.164.104 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796046758; b=bsEUHipmUbG8opkSwDvCsRGSS/vRGi4X9oPAl1SOc1QmUygqVkH5z1Kt9I/Koxlx1Nkk 8F1f8NHunzcO02RMb8QvrKBjPMFUnqBrSeD72j4j5CNr3TeVkHkp4iam8oLc+bQdj+Ps3 E8yQO1IWQvU4+G3eAD9nqYGc6DoWX8L/8q11NyL9XyacN5TXU5hbI0mF+mFdf5yiSVFoL S8Ck5PAUOxe7vUFemdyMLYAZW4NrShullVOGJ/9O7mkLR/9WNk5wf817C18MsuMwoeA3Q Lz+7lrQQMgODVgnxOurLEJ1iwlSXxIpamAQQ6iEvzdoelepNuSu5S3/rN8fCtUB8WKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796046758; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:Received:Date:From:To:cc:Subject:In-Reply-To:Message-ID: References:MIME-Version:Content-Type; bh=uuhzhzqCPwIjPf+EmN4g6FA7OeXPh5yQ7bMm4KJcQ6E=; b=4hnMiDCS7VYn0lgnEhu/Ih4XkSjsd1oCVNvDKVNLmDUMuQZ8M7FYd4+lpuyxtEuuzLEU krMRokz7bJPcYP1usWRkYzAu6eG50l4csxqO+UpZXFYz7K1Az2TH/rzug84FFa/l37xbt ShQ/5L13foUA9n89Nr0o9vd74zX3fAWce6InxD6JC0e4+7/Q8CN59aI3+HLkfRA1mMGOk TryQmhN1OXQVlkMmeaJboSBMWIMOvobiSeSW2HTWSJ1x/6fBiVUhLVieu/sOywvMp68+D fx9y5XiT3yUvUB0SBgVNL1CtlqzSr54joApijguQshQ55wJLUjnEKww9PPR3G4NmBCQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass header.d=inria.fr header.i=@inria.fr header.a=rsa-sha256 header.s=dc header.b=lERNZTA5; arc=none smtp.remote-ip=192.134.164.104 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71A41606A325; Mon, 30 Nov 2026 13:52:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 71A41606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.a=rsa-sha256 header.s=dc header.b=lERNZTA5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=uuhzhzqCPwIjPf+EmN4g6FA7OeXPh5yQ7bMm4KJcQ6E=; b=lERNZTA57vbDN+PsDHcheeOF6mgHEDV90bSto/hEEWAm73hJOOFkqRMc e+IctReziksBinYIH/Z0t5SSoBMpNvBlWnRANDrgo0+r7m7AuFPwu+S5M dhpEnrwFD6SqSmvQmrq4HlYu7tVnDEeSlzlYEN1IvvYtVxkAO2UqR7zkD o=; X-CSE-ConnectionGUID: dTxN7INeQZGjJkOcq5imAw== X-CSE-MsgGUID: YMYzEaO5QG2dIiBW5BkNSw== Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.27,242,1787004000"; d="scan'208";a="164277297" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 14:52:36 +0100 Date: Mon, 30 Nov 2026 14:52:34 +0100 (CET) From: Julia Lawall To: Markus Elfring cc: cocci@inria.fr, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, tools@kernel.org Subject: Re: [cocci] [RFC] Detecting unchecked return values (with SmPL)? In-Reply-To: Message-ID: <83f2a22e-a4a9-1a62-df84-29246cc35e72@inria.fr> References: <3241c2f-7d9-f7e-d2f5-1e7980340c4@inria.fr> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 30 Nov 2026, Markus Elfring wrote: > > > Macro and function calls for which a return value is not assigned to a variable > > > can be found also by a script (like the following) for the semantic patch language. > > > > > > @display@ > > > identifier i; > > > statement s; > > > @@ > > > ( > > > *i(...); > > > &s > > > > &s seems totally unnecessary. > > Can the code for the SmPL asterisk alone represent also a source code search > for a call where a variable assignment would be attempted? No. Not with the ;. Coccinelle parses the code. It doesn't search for substrings. julia > > Or: > Do you expect to specify the variable assignment exclusion in any other ways? > > Regards, > Markus >