From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4E6A1D130E for ; Sun, 23 Aug 2026 16:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787501919; cv=none; b=BHHs03f1M9e9V+Ymsltl0weL156D6bgMiOLn9R+U6qExY43CM4KAQnBYM1FnJhPGd24AxAQbZBcNAnnEICeZSRVSk1LWEe4LTP+pVGc/YGfczrmVucm2Zz2rxzxal+7BtVLbb7sX8hqaZP7HF7tpBSVSMkxLeP4BcRDBNee0xuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787501919; c=relaxed/simple; bh=1YXZM7IXiZbVsIOfrpbUlC48OAYTFnN0Q9LA7VE3zJk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CwiI4MIZf+opK3vfa0/iUiQf8aKtvLM4iFjEuw7kYQuybPPM1iYNcfuD9VEhFOmzq5BK0gyxlicyZDYtuH/8/j5haXjkbBiM3MMy1glpfPGCVnHRUw4x4xtI82/G2baS8vVCM5vCTeIsP395NOwMc9r27TAt9m9NIU7BCos0ySM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=R8HQgjtR; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R8HQgjtR" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-cbedda4c154so1540300a12.1 for ; Sun, 23 Aug 2026 09:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787501917; x=1788106717; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6gZ+stZztq53i2h6dibY3Afk1tu+TwanUQm/4boDBjA=; b=R8HQgjtRthkUk8OhtAEePZRX8oSnltdcJY4mnFV1bvgU4Y/mhR0Px6h140E1qsSpPA KILj0dVaKbf14elYCIaVTHh910G5ybemqUoFrXwiB7yavE/KPrTZdvk5qJDyjikCCTs7 JyhjDCi1V5dS/dMfUAgqKi55LjNz8Ux0bRw1578ljm/BrG7juojVz9todaHWY4+7mikJ XihUupsfWPYgLnxtbWpgxJlvypcXCKi0ZjTlcMIVS6ueTuAatGAiS6yCMe4hQedId/ha pp5huIAkuoY0dBq0KMylAM6JFCbwskoarccKwV8393jZJ+ytq8+agTEJcyQ0gMSm1+vy UqlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787501917; x=1788106717; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=6gZ+stZztq53i2h6dibY3Afk1tu+TwanUQm/4boDBjA=; b=f1NgHEwvekmv2hLlZxxs5/KA/kI90ww4JqYq+RYKJPs54GLkWeaKCG7cxMCPVLgUPm ODgQWIC5nK4ytTqT+pFyRVT74haxhS1PYdyy/cgcagVMhYXL9uqBJrk0IfdnerfLvIws ENMoxzoe806hrsBCtJlXGuC88ckdwgj13lKyw40LNDMv/+1whDIZFwKYfYiOxeSPABBB YrTi+nAB84q7mk2w3eRBjxuwgov43tHKDYVLM1QA97+5+ivQITlz2hZGtjvaqP8LJwPX +UA5TqWrH6vbXBEnJYDtMGaZQDkF4RVoRdaiIPqW/j10Ud4ye58JVhN2b3ZQNL6RouP1 PWHg== X-Forwarded-Encrypted: i=1; AHgh+RpX7cNPCKHnMrKCsoECgH53LgXJtmywd2h44Yh9lQIrByy+xlc4SgLYPCGfpuPn81P4fEtNhiMTJ8swM7w=@vger.kernel.org X-Gm-Message-State: AFuF++mipgdE8IU5FPEW9s9f/2IDX9TYHa96TZmrweVBSxqmGJ4UByfL oDoA8jS+SYv8anq8aHiHiRp7xIR7EwVMLTpHmQKnSx3/1Aw+XXCYz9av X-Gm-Gg: AR+sD114oD8SQyiU3Ffj3sun/OV27J5WFtNC6ren5WSwqmlDsmCCv4JfeDWGzmWPwlA 71NCineOwpwzhzRWz1TVWUrCMzde3RHd3IhfeWfusD/Ta/IQybhB1BIevvvqeOJHd6JmjKo+aoo 2nogheDmkojvvlFSDwIwjIWf4EyfJcgQp7TwS6m1nAoccDJUyb9fhNn6Iz/UuuajJ4kXlwqZIJ+ pXcN2Sz8x8FFQbagbJ5TMfmP2EkrHx07RwNra44ySbzWRjTxLQzv0UIWQ+Ips0BNTjC00W3CTRx MMO1kJdpNZ0VeJlARcwibssr48VHjU/P8TK5uNgVwk0WxilYckLQfP9i5mRdU3INoIp0BnbEpX8 SouTqwtmYTCuxJmOHioZVCzFPL84adcpMTVFV56RJGqpbMMfK+R78/Fa0FvDr6QCyA80A2kUbnz sXFb4VwRcD0rKt4uUbCThAhRh2FCqMomg5IGf1LYk9QSVA+qCaEnKPFUM= X-Received: by 2002:a05:6a20:3d1e:b0:3cc:92d9:80cb with SMTP id adf61e73a8af0-3cd3003b104mr35476195637.12.1787501916924; Sun, 23 Aug 2026 09:18:36 -0700 (PDT) Received: from ubuntu.. ([110.9.142.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc199dafa1fsm350181a12.3.2026.08.23.09.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2026 09:18:36 -0700 (PDT) From: Sang-Heon Jeon To: Julia Lawall , Nicolas Palix Cc: cocci@inria.fr, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] coccinelle: remove obsolete pci_free_consistent.cocci Date: Mon, 24 Aug 2026 01:18:13 +0900 Message-ID: <20260823161826.3805598-2-ekffu200098@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260823161826.3805598-1-ekffu200098@gmail.com> References: <20260823161826.3805598-1-ekffu200098@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit pci_alloc_consistent() and pci_free_consistent() were removed by commit 7968778914e5 ("PCI: Remove the deprecated "pci-dma-compat.h" API"). So remove the obsolete script. Signed-off-by: Sang-Heon Jeon --- .../coccinelle/free/pci_free_consistent.cocci | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 scripts/coccinelle/free/pci_free_consistent.cocci diff --git a/scripts/coccinelle/free/pci_free_consistent.cocci b/scripts/coccinelle/free/pci_free_consistent.cocci deleted file mode 100644 index e062b9ba09ff..000000000000 --- a/scripts/coccinelle/free/pci_free_consistent.cocci +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/// Find missing pci_free_consistent for every pci_alloc_consistent. -/// -// Confidence: Moderate -// Copyright: (C) 2013 Petr Strnad. -// URL: https://coccinelle.gitlabpages.inria.fr/website -// Keywords: pci_free_consistent, pci_alloc_consistent -// Options: --no-includes --include-headers - -virtual report -virtual org - -@search@ -local idexpression id; -expression x,y,z,e; -position p1,p2; -type T; -@@ - -id = pci_alloc_consistent@p1(x,y,&z) -... when != e = id -if (id == NULL || ...) { ... return ...; } -... when != pci_free_consistent(x,y,id,z) - when != if (id) { ... pci_free_consistent(x,y,id,z) ... } - when != if (y) { ... pci_free_consistent(x,y,id,z) ... } - when != e = (T)id - when exists -( -return 0; -| -return 1; -| -return id; -| -return@p2 ...; -) - -@script:python depends on report@ -p1 << search.p1; -p2 << search.p2; -@@ - -msg = "ERROR: missing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) -coccilib.report.print_report(p2[0],msg) - -@script:python depends on org@ -p1 << search.p1; -p2 << search.p2; -@@ - -msg = "ERROR: missing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) -cocci.print_main(msg,p1) -cocci.print_secs("",p2) -- 2.43.0