From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1183FC61DB9 for ; Sun, 30 Aug 2026 09:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:message-id:in-reply-to:references: mime-version:content-transfer-encoding:subject:reply-to: sender:list-id:list-help:list-subscribe:list-unsubscribe: list-post:list-owner:list-archive; bh=ghTUeDMLtevbpI2kelg7teyoeNgEh4fqMmUgF/ewQFA=; b=kg1d2qPeUnoZq0YCROAlJEL0wEXuJ7wThPj6C/DCvzAfU9HH4UWchLv7 MilNTByhZzzyElfPLmNsyKqvCzHf2ayvNMI8TXRybLVT9FWmDQNwuZF+N bC+2adFKTM4k1CLrSzeAmWy/z3c8Sk6vAzKbr3GTJ8tz09bSN1vwsdSWh k=; X-CSE-ConnectionGUID: WPZkzJhRTauUCRy+hJNfRA== X-CSE-MsgGUID: ocLo+m0uR7iflYPG1Mr2Lw== Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=cocci-owner@inria.fr; spf=None smtp.helo=postmaster@prod-sympa-app.inria.fr Received-SPF: SoftFail (mail2-relais-roc.national.inria.fr: domain of cocci-owner@inria.fr is inclined to not designate 128.93.162.27 as permitted sender) identity=mailfrom; client-ip=128.93.162.27; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="cocci-owner@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:128.93.162.3 ip4:128.93.162.88 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@prod-sympa-app.inria.fr) identity=helo; client-ip=128.93.162.27; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="postmaster@prod-sympa-app.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.25,251,1779141600"; d="scan'208";a="292178063" Received: from prod-sympa-app.inria.fr ([128.93.162.27]) by mail2-relais-roc.national.inria.fr with ESMTP; 30 Aug 2026 11:22:21 +0200 Received: by prod-sympa-app.inria.fr (Postfix, from userid 990) id ECEEE805B0; Sun, 30 Aug 2026 11:22:20 +0200 (CEST) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by prod-sympa-app.inria.fr (Postfix) with ESMTP id 2A7FF805B0 for ; Sun, 30 Aug 2026 11:22:19 +0200 (CEST) X-CSE-ConnectionGUID: 8SaXmtmURqSY86HGyiTpbQ== X-CSE-MsgGUID: GrOCKUOJTI6E86+mvvYlBg== X-ThreatScanner-Verdict: Negative IronPort-Data: A9a23:fk3knaiy1l7AZqsuCtF65uupX1615xEKZh0ujC45NGQN5FlHY01je htvXzjXP/7eNGrwL49yb4/i8BsGv5bdyNAyGwQ4pShhRioW8JqUDtmncnv9bniYRiHhZBI+v p9GMrEsD+htEySC/k/1WlTFhSMhvU1dbuOkUIYoAggoG0k8Dntn0Us98wIAqtYAqcCjBA+Qs s/FrcTaOVu0sxZ5KWt8B5ir8XuDh9ys/mlF1rACTaoT5gGGxyNEVMh3yZyZdBMUfKEERoZWe M6YlNlVzkuBlz8xB9WslKrMc0Fiatb6IQiUh3NKbLOpix5EqzZa+v5T2C00NC+7Ix3Q9zxA4 I0lWa6YEG/FDYWV8AgpaCS0JgkiVUFw0O+ecCLn6aR/+GWdG5fk660G4EjbpuT08M4vaY1F3 aVwxDzg8nlvLg95qV62YrAEuygtECXkFNMks0Fl0TTkN+8dcMCdY4rb5ONA1g5l06iiHd6GD yYYQShkd06FeAFIIFpGTpM4huahwHflG9FagAvP9exmuC6KkFY3jNABM/KNEjCObcdImkeR4 GbP4G39BjkbMsaewHyL6BpAg8eVzHmiB9JKSeHQGvhCr0e07U8uLz8qdAWW8af6j1CgatZ1J BlBksYphe1onKCxdfHwXBO2vSTc5kZNC/JfFuQ77EeGza+8ywCYDW8ARyUHcNUitd8eRDkj2 RmHhbvBDjtku7y9UmOY7r7SrDWoOCFTI3VqTSsFSxYVptruuoc+ijrRQdt5Vq24lNv4HXf32 T/ikcQlr6cYlpROzLm8512WxTOqvJnACAAvjunKYl+YAspCTNbNT+SVBZLztJ6s8K7xopi9U Hk4dwy2/usVV9SWiCuXTbRLHbez5v/DPie0bZuD2XU+32zFxpJhVdg4DPJCyINBM8AeeDavb lW7VcZ5+spIJHXzBUNoS9vZNvnGBpQM2Tgouj44ozaOjlVMmNe7wRxT IronPort-HdrOrdr: A9a23:HjcDYa8/JtjS1LXOLIJuk+DxI+orL9Y04lQ7vn2YcXduA6mlfq GV7ZcmPHrP41wssR4b9OxoR5PwOU80maQY3WBpB8bFYOC+ghrOEGgA1+vfKl/bdREWn9Q1vZ uIGJIeNDSfNzdHZeGQ2njbLz4aq+P3lJxBvIzlvg5QpAhRGtpd0zs= X-Talos-CUID: 9a23:ccljnWD0ql+s8dX6E3lc/X4RBsUYSGTm/SeOA2CpCFpxQoTAHA== X-Talos-MUID: 9a23:en3wEQg8YKGMNxPAuom4qcMpG91PyIeTL2IxsMsr65fHMDJuCjO3g2Hi X-IronPort-AV: E=Sophos;i="6.25,251,1779141600"; d="scan'208";a="292178054" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown X-MGA-submission: =?us-ascii?q?MDHCmgQCyeqDItQtj02xmrD6W+m7rfy9Ya92LD?= =?us-ascii?q?7xJfjOiO3nmGgUOkAHghmIXUyKi4VnMJc/2pYqdjaExPNMp5OQb1e/OT?= =?us-ascii?q?4R0dTdwvCsQA3HCUhXHc8fSd3E6+DJOwMxMyWEeefiNwfnJ/H0nydXX7?= =?us-ascii?q?j8B8SwoVxnImEAeF/6PCuWqA=3D=3D?= Received: from zcs2-store9.inria.fr ([128.93.142.4]) by mail2-relais-roc.national.inria.fr with ESMTP; 30 Aug 2026 11:22:19 +0200 Date: Sun, 30 Aug 2026 11:22:19 +0200 (CEST) From: Julia Lawall To: Sang-Heon Jeon Cc: nicolas palix , cocci , linux-kernel Message-ID: <161516053.8619221.1788081739076.JavaMail.zimbra@inria.fr> In-Reply-To: <20260823161826.3805598-5-ekffu200098@gmail.com> References: <20260823161826.3805598-1-ekffu200098@gmail.com> <20260823161826.3805598-5-ekffu200098@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [88.188.149.159] X-Mailer: Zimbra 10.1.20_GA_4893 (ZimbraWebClient - FF154 (Linux)/10.1.20_GA_4894) Thread-Topic: coccinelle: pool_zalloc-simple: drop the pci_pool_alloc rules Thread-Index: Z+Nmc7pw3/2DslLTxqGswtDDrCRUcA== Subject: Re: [cocci] [PATCH 4/7] coccinelle: pool_zalloc-simple: drop the pci_pool_alloc rules Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 3723 Errors-To: cocci-owner@inria.fr Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Archived-At: ----- Mail original ----- > De: "Sang-Heon Jeon" > =C0: "Julia Lawall" , "nicolas palix" > Cc: "cocci" , "linux-kernel" > Envoy=E9: Dimanche 23 Ao=FBt 2026 18:18:16 > Objet: [PATCH 4/7] coccinelle: pool_zalloc-simple: drop the pci_pool_allo= c rules > pci_pool_alloc() and pci_pool_zalloc() were removed by commit > 88dee3b0efe4 ("PCI: Remove unused pci_pool wrappers"). >=20 > So drop the pci_pool_alloc rules. >=20 > No functional change. Applied. In the last SmPL rule, I removed the \(\) in the + code and move = the @p one space to the left, to more obviously attach to the =3D. julia > Signed-off-by: Sang-Heon Jeon > --- > .../api/alloc/pool_zalloc-simple.cocci | 17 +++-------------- > 1 file changed, 3 insertions(+), 14 deletions(-) >=20 > diff --git a/scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci > b/scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci > index 9c61a23b34db..2c36fb70e0ab 100644 > --- a/scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci > +++ b/scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci > @@ -5,7 +5,7 @@ > // Copyright: (C) 2015 Intel Corp. > // Options: --no-includes --include-headers > // > -// Keywords: dma_pool_zalloc, pci_pool_zalloc > +// Keywords: dma_pool_zalloc > // >=20 > virtual context > @@ -22,7 +22,7 @@ expression x; > statement S; > @@ >=20 > -* x =3D \(dma_pool_alloc\|pci_pool_alloc\)(...); > +* x =3D dma_pool_alloc(...); > if ((x=3D=3DNULL) || ...) S > * memset(x,0, ...); >=20 > @@ -41,17 +41,6 @@ statement S; > if ((x=3D=3DNULL) || ...) S > - memset(x,0,...); >=20 > -@depends on patch@ > -expression x; > -expression a,b,c; > -statement S; > -@@ > - > -- x =3D pci_pool_alloc(a,b,c); > -+ x =3D pci_pool_zalloc(a,b,c); > - if ((x=3D=3DNULL) || ...) S > -- memset(x,0,...); > - > //---------------------------------------------------------- > // For org and report mode > //---------------------------------------------------------- > @@ -63,7 +52,7 @@ statement S; > position p; > @@ >=20 > - x =3D @p\(dma_pool_alloc\|pci_pool_alloc\)(a,b,c); > + x =3D @p\(dma_pool_alloc\)(a,b,c); > if ((x=3D=3DNULL) || ...) S > memset(x,0, ...); >=20 > -- > 2.43.0