Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1050921rdb; Fri, 16 Feb 2024 04:04:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZZL8tvPYDgeIYBrFFP0yGRll/vE9EbqQeLR8wifgTlSstimeWs2YbMs9PULy7WlxZCc4v4PonQJzqR7L7+cTrtRDWxze7Zz+MxPrwmA== X-Google-Smtp-Source: AGHT+IEmKg0Jo2g0H0HFoBoLcVu6JLl7JLUfklFHSutvTf1v3HVm1U/sgi3PC0IVlZWvII4ItACt X-Received: by 2002:a17:906:8c6:b0:a3d:d9a1:e84e with SMTP id o6-20020a17090608c600b00a3dd9a1e84emr1149070eje.38.1708085067477; Fri, 16 Feb 2024 04:04:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708085067; cv=pass; d=google.com; s=arc-20160816; b=cYH3x8UoEKMbhQbQEmJg04+OH37/LFP+6CcuTnh1CypO7mJdIwtvgi6SHI+Z1B2FH8 Yqencx/Avxn7qUmKI9KdIJCsEjK0xFcg79QovxbWk7TSqLzv05jzR/oT20x4L9GfU/Wo uQw3EAauP1DYiVs94Cf0GiIQAxe7GVDtIUPGh+E3xPLAFzQbAtBdcDRB9jF64X8BA5L3 id2TFaBC+Hanm8E8D6ZF6wpwMNDBsINKkiuWNW6Y8Mpqg+jexAyNa24O+2A+jReofx43 dxQPENPWucnXO+DAHK1EpKTNa+DB4L1UP1q2vh2GzlSasL3CoLRVAP67HZWB5aj/tEul ZjUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=txhQp0jogdoMQ2L1WM7B/43LJL2QWlfyavzQEY/JY74=; fh=GFPKoYTeI713wQ3zs7Y7d7olDiY6zvCZXcb+iaEvC04=; b=bjTPoGC2CIo4ByygKsOa5KOiRUhte9x4kz6OsT4KEsJohnL0x3IcqAOAQKv1z9M897 gs2JyhiCiSh7cA03FEMt8XO4dajG8mORxGzFdrgW7xpMLQECridsRv/gGPvSpEpKqOYr ejLbAIIs3CqsQ3BNyemvvxv0680qsbfShC/jbZ+7KGWDlZkHdYKy70YDnOs2o3w0Y6hN 0N66WHzMSFJG9EkL3wwTJgy5FsL6RLLsK+FYZKC8Y4+fYuULTUg6GpIPDUC17z4sqfLf TV1Ga9zfK9gRJPZxVdC70CWDbMyyxiLOuVrQuDzDaZDs2oYcHkvUYEbj3EI4H6r1nN3+ XyCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=JtIcpkoQ; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-68556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a4-20020a1709062b0400b00a3d6cc63d45si1594650ejg.135.2024.02.16.04.04.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 04:04:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=JtIcpkoQ; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-68556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3D35A1F2378B for ; Fri, 16 Feb 2024 12:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A1F378690; Fri, 16 Feb 2024 12:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="JtIcpkoQ" Received: from mout.web.de (mout.web.de [212.227.15.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0E0754F9F; Fri, 16 Feb 2024 12:04:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708085055; cv=none; b=KfiYZ6pOtfiFTIZwnGkL4/Ce7ph0A3PLh1QVaPP+8YFrH0fSfD2kwCTbDPXOzyoFE8a/E8v8amXm3Ff75ZwapOVcCFA0ZkbcUMC2AF8xH4G03N6D79+2siTI5QCwznuYAdjAwYfG3uhG3JdwnXVM9lO5ydqrI8KCqdfKcuuCam4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708085055; c=relaxed/simple; bh=txhQp0jogdoMQ2L1WM7B/43LJL2QWlfyavzQEY/JY74=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=dqNhcMAIBkDycssgQjE1n99FwicXfmG12HB5TDnQ3eZnwn3baxr8iigM/1MNoR1RUeJL6JhXEdpCsFXI2qokrel97OOpqeKDLz/A+AyCJnqR+fUG6BYbjGrdJJxsTB1JhyBnHpCJVpfq48+Usn0x4tDOD4Dwi2LLSyYiIwQUXjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=JtIcpkoQ; arc=none smtp.client-ip=212.227.15.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1708085026; x=1708689826; i=markus.elfring@web.de; bh=txhQp0jogdoMQ2L1WM7B/43LJL2QWlfyavzQEY/JY74=; h=X-UI-Sender-Class:Date:Subject:To:References:Cc:From: In-Reply-To; b=JtIcpkoQZxGFlJ0IQOL97W7CuQay9aUKqPycYbs6uQRkTnSgBuHOM+Wa6idHAzRh Nze5JgGNS2udVCNcaw/9Kyh9f6KjwHLIoIpKvQ9R2f3jPSCNttcxH9bT7WwQHNDIR K1xoRTt2yQDI8+soLllF2qX0MU+Fg5+Tq1A3zY2spVk1euKgrv0gq5do5gbJEVGMO WMRaeB96/Sl1kNjSEzAPr8uFTysUNhWV2aPA2/2tSW1cEuLLoPyU1jkOl3GVzTmXj X6LPd45VHmXeP7auXy9/507o+BH1ZGKl84gd06DVJyz5+nV+EmGaaF0flHJ+CxtWm nFNwPUTZ8gIayiNwXw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.80.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M1JB0-1rYBmy0sby-002loV; Fri, 16 Feb 2024 13:03:46 +0100 Message-ID: <62122744-7e88-4aa3-b9cf-82442021a7ee@web.de> Date: Fri, 16 Feb 2024 13:03:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [cocci] [PATCH v2] cocci: Add rules to find str_plural() replacements Content-Language: en-GB To: Kees Cook , Michal Wajdeczko , cocci@inria.fr, kernel-janitors@vger.kernel.org References: <20240215194834.it.509-kees@kernel.org> Cc: LKML , Andy Shevchenko , Andy Shevchenko , Jani Nikula , Julia Lawall , Nicolas Palix , linux-hardening@vger.kernel.org From: Markus Elfring In-Reply-To: <20240215194834.it.509-kees@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:D9mtTTzD8XRjj8XwO7mhylIMnIpadtQOenzv/X33J1JYqJb03k/ ASyTFeVi4vMiWUZtCoYWzlKw/yTyYGFU/+tSa1T83EFba38fW9HtYwTMQvffze2lS9IB4HQ jsYbLSJ+wHikYjEIEDEsaFFBn2x55hozrXlvpiaBENmn8vLxBOuKXENb/E0IsVGGu4k2RQS ttJoeGvmO3n1jDnz2vfdA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:8xgo3VmYz+w=;FlPFNDyHCzlGUJiM10MhB47BzGj 2ZBWwhJcYnppUsTo8B04HahvjicV9oO/yMLQNdayXmXMfkj2JDr1/xibYY8E8JdMojQVjqmi1 hZRoE17E4kuO8SKqhdF6X5vXr01BaQo2hWBn8vXgt1jR18dadHmpSuUmdQsfrFdZWL3zFcd1D LTc53NcGdjqtJ+YZYGEOXmXoqQEOLKZhnUYekWUOY0ktQlejpyB0gq1dmqJHLinu2Fxm5756G lNzt+kZa0s4CY2RgPZMwMZeltuuwNKkvqWZtU0mV9NIRFAZ/9+Au6wz14Wb5PIJ1tMfaQ20zS UkNXjT7xWmxkbykE6hP7SfaZb+y5e4KyEU3h1O7pMHGwgvPwls536GgyFMHL99OZq0FYcexsV PPXcraLxUqCzGJvUZK4PVbc0ZpyjUhowIhsRSmxlDMWdmImSzKiOgMT8B+ExQ+55xAyb2Urew CpaG+spHqDhwNzAW/1G3mJlD8zDFf3NGWwUWrcIaktPp7SQ1kr7FVl13rvGYQGIW/RQtchKTL gscMLGaHPjtwVJuDOx0B+/GQ6N57na+IGeRUsxQQLMPAevLkbILgfrIE7lnPCHa/JU0BTPHFW x0Xr7qwn69MLxDzmqgNNymAa9gXgukj+PrnemiPd90bGLmVNeqwYZoQwHNrW3ZJflv0usPoP4 kmY6TbyTLH9nFtQfGBeUKSTVboHWz0JaPt8WQBY/A1rD5dM8cKFKK6DXyTaDxNZvu5ZOhbOwz qqEwCeZEdtaVT/erUcwbAJGeRuaM3mx5BcivkONa7tRIXxwFFlILwQhwLICL4Iaw9d2dGfA0q 0SvGk8XXB9J5LS4vedoTam7ZyBbVODSV12nC6T5rklJdw= > Add rules for finding places where str_plural() can be used. =E2=80=A6 > +++ b/scripts/coccinelle/api/string_choices.cocci > @@ -0,0 +1,41 @@ =E2=80=A6 > +/// Find places to use string_choices.h's various helpers. > +// > +// Confidence: Medium > +// Options: --no-includes --include-headers > +virtual patch > +virtual context > +virtual report Would you like to support another operation mode? virtual context, patch, report, org Regards, Markus