Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 CE4F82D6E7E for ; Tue, 6 Jan 2026 19:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767726565; cv=none; b=UZR96nUCXbyO9/oTPO/T/CxWLGnJ1I5K3bA6DDUnBLcVcFIgVseCm03MtyWxBiHPKtonRINKJG1AgxyJUuohCOng8m7Njc0zgUZJSdgwxSXDFQg54iEl/j1H1647SHLwnQEQ+S8wJElyuuh1mAYE2vcNLIgntZVZwOjlfME6e9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767726565; c=relaxed/simple; bh=RX9qHaUriBcnZk/sTEJF3KSyASsPGsLPByLnwAt8Oac=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S8lwnveX+vhcOxkgwQv/uTLU+W4U7aHzV3frYApv0D7bPlvdNXTamuufFEVRpGAmyUx2nxEkoXqUGaS0dwDg7gH7EVcc/1EHXKAPetVw0ATT98fUF0af6Lv6TWP+xCvxXFaprvKij4WlQda0FNB7bveSUCKlC3HSRl8nCGUotOQ= 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=IqFHHgEZ; arc=none smtp.client-ip=209.85.214.175 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="IqFHHgEZ" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2a0d5c365ceso13244585ad.3 for ; Tue, 06 Jan 2026 11:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767726563; x=1768331363; 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; bh=BATdJWgJUwnMbHLsMBqXXAerZpaNwXBAjVbJPcNyAvU=; b=IqFHHgEZFNpnSvJV7KojPs4eDuqArBFg+N296nq7PoPo6wSKe70NsduqZvKT5kQTKD w3Y/uY3huuIOXBUagPfYhj3arPn8m2dJ+wOJBVaVfESXoasrfUWAwnlcE7kQGdb9iVtZ 5vXXbl1ZTSZL7GSFe5LxVnlBNAh/RMqqsg53jPVKKgzzJ00cKmdYMDlntoe+2dmwv5Iz CoQXsexy9cOvnMCvCq+qsvKk6pgSc8O1/hiF2BCT58eGcJ9MqOV7ap/xWFFd7pStoE9I yzLiZdCWJeBtXU44m5MMsrDlwfHsnVQeiuZ98w5xvpE8/Tupp3X/kYT5Mcxlv8avJMHD ns2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767726563; x=1768331363; 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; bh=BATdJWgJUwnMbHLsMBqXXAerZpaNwXBAjVbJPcNyAvU=; b=X0tI8BYjOJu9Jze7LRmBFKCOJxI0L+d8GK35LUXcxjtEs1oGxx+twVIVJzxHNQe3me +Q4AaKIfub8JVunl7uuJBjq9Ztm5dL4Uuf3lfi2usMIqpAYrgxFk+7SJ8PAreTu52iFl CcLUGUK67sB9SO33oSY6geX0W7HsId/lIn9k60oxO8BkTfZOAh5/3/k9WrdjKjRkwxSd fgwZIsS7CSpjFO6AkVCA51+EaMa4mdjwo6fwJ5kAEsuehQhrjkhd3xwTmmx2wxKKYHNr P3fz7fT4mxUU9OV7Y0w7/V1t3iNGRVSfV8pGVLXa0dCh+a1l6sVXoUfNYuQczcxWGxL5 kUZw== X-Forwarded-Encrypted: i=1; AJvYcCW3lQFsBioybH27RRs6jFViLGe6OGzrAk6dw4+c+9HQCE7r2X8s3k2ip3mfiAwtgsfst04X/XtoaMc=@vger.kernel.org X-Gm-Message-State: AOJu0YwJwvHr0NwS8CCynCQtil9J8EXIwL0grrCqfeFZZDajiFtaqILD upgZmgM7AohxLzPUufUbLBRwKG0lF317bSma2FoRhfdmXr0XfGe94yzg X-Gm-Gg: AY/fxX6Wl9rA6/qIMr1zLBY/PN7FIaFeeNYZb+sNViLmuijhovKMmxr4bc5G54OIQos vcuTwaY3GeqXMtza6b0A0fOXnrdZRmq7qHG54ThPRVZU3XNQH4Xpcph3HzvBsbPIi4/YVX1CA0f y5c07cXq15DTMbFaA+h72MWZemKKoHGsE/4f8GQ608SpVaMGQjG9MkzPsFfLxPWNjOfqd07Ftut M38cCp/DrR6LamBPxsGoaDhAbpIPrL5FTnY+j/JVfHexBPdZIGHy+n328ap8MtEQJx1nd1UYQTA E5cLiUrFd44UyOZj8m1elhoLtyzZQyrKRw5rZEAe22QN7a+iRq3fIZ0hdYOPuARZWr+Vi57cbla a4gmAYeEh3diii/LBCFd2dRUnUGZ3N/lHJ0SUp6OL5UX8Ixcaj3Z2nA61lS+HExnXUiSpLB5+Nn IUq+zWgEtJST5pb/e+kw== X-Google-Smtp-Source: AGHT+IEv3DyNwRK5RvEmcexsucGDjZhsLc4jeZexw6MFns14bMGlit2ognMpseLu1Intl2qBeIsDAw== X-Received: by 2002:a17:903:2c5:b0:295:fe17:83e with SMTP id d9443c01a7336-2a3e2cbb647mr42089515ad.19.1767726563165; Tue, 06 Jan 2026 11:09:23 -0800 (PST) Received: from rivendell ([101.0.62.234]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3cc78c0sm29380975ad.69.2026.01.06.11.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 11:09:22 -0800 (PST) From: Benjamin Philip To: Julia Lawall , Nicolas Palix , Jonathan Corbet Cc: cocci@inria.fr, workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Philip Subject: [PATCH RESEND 2/3] scripts: coccicheck: warn on unset debug file Date: Wed, 7 Jan 2026 00:38:35 +0530 Message-ID: <20260106190836.36630-3-benjamin.philip495@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260106190836.36630-1-benjamin.philip495@gmail.com> References: <20260106190836.36630-1-benjamin.philip495@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit coccicheck prints debug logs to stdout unless a debug file has been set. This makes it hard to read coccinelle's suggested changes, especially for someone new to coccicheck. From this commit, we warn about this behaviour from within the script on an unset debug file. Explicitly setting the debug file to /dev/null suppresses the warning while keeping the default. Signed-off-by: Benjamin Philip --- scripts/coccicheck | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/coccicheck b/scripts/coccicheck index 2efb74afef2b..8dd766009de1 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -260,6 +260,11 @@ coccinelle () { } if [ "$DEBUG_FILE" = "" ]; then + echo 'You have not explicitly specified the debug file to use.' + echo 'Using default "/dev/null" as debug file.' + echo 'Debug logs will be printed to stdout.' + echo 'You can specify the debug file with "make coccicheck DEBUG_FILE="' + echo '' DEBUG_FILE="/dev/null" fi -- 2.52.0