From nobody Sat Feb 7 21:30:36 2026 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 028A733CE8F for ; Tue, 6 Jan 2026 19:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767726565; cv=none; b=r418UGQPpE30/EIPtyOI/IA0NlZj3YrH9BnYkKeTa1CiVGoyPUaEmtJu3ZsLeYZQRey5GhfrEwCAOyLnwRyluyNF23QcEN4m/+/LJLZD4VCb+c6L268VqT+Eto4BJe1gG9m58bpe8/J0Oaj6xh0Um59bV6lma9CVX/IO6T+41yI= 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.178 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-f178.google.com with SMTP id d9443c01a7336-29efd139227so14123485ad.1 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=bNFGIbCGh/h+mjSH6RFtZ+Qhx2W5D2q1EsabSkfWKLSzWIGbalAX6+K3PPm++6GgwN If3l9Vj4ovrJ5QTawerXjxuNLPEQ+PKgUIuC2xUaV1WJ1AFoA2WnLwu9Y6ZpNiWa0q4x 6fVPQv5kTzXd2KxY5PeDBKTLat+T37st98viIV83dzIU94A6tvcSSDI41EfNZAn2B362 LWqxU5Mk8EJzLtSBsj8LBmqfmnbv5rRcJjkxlGVA40Da6OY6XWjy8x0vQ0On/o76zJ1s 60+94Slj/Ur55gD7QzPfLso7XwZESxqJ7mQmTTO1+vBb6vCXA18pnwuoM5S4tn31B6KF blaw== X-Forwarded-Encrypted: i=1; AJvYcCVA/cXc98V1ESUzmhmtKtIIFzEq7Kpfbx8SGM+QMU3S5EBxtWHo5t+wNBgp21ogmbaEefrleOEgE9wyI/U=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/YHQjDfUK+MFD8m27H5uZDaRurH8bq78+xsUJosDfJ9cyBhIW Za95OCPffFyVanfjxtVhrE/2D2ZOaKxai+QfLjsgvUyd2frU/6gbLz6M X-Gm-Gg: AY/fxX7hnXj3k/aVdLHYtCHUMlcEJKOO1oMubrZnYxijQUBRd3dUp5/JfJqg0ovNo1p uQwNBp4dwBdpI9gs7U/IjdORZbmEJwZUcwulInhMdfdB79QGZ8kh/d2Zt67os7p7UlOJAMRPE5L ekWxL+jcjwzxBbLtkUVAoHwwPwNBjG15+IDozExUyt57uvPfDzw/EUXP9GOF5xo2RBr85ZeO1od Xr04ZZRKS6fMKGdgQ3HgZcBZzX3yCs4VMC7/kN6/1Wa46sCky9CJoDyoL1uwHp/TDl9wDWnO/lD auyNBltuClP98qWXUhtZ5NBI1q+uLfAIJ8J4UP5Odo636jwTF74upkXqJqX5f0VzBaTtNIXYQ61 5VYBPw+aO9GrtMsD089E/IxYhzOqIwOjnscS4uCJkyRYtLNZsaQXsY5W98mBg08G8rppMG5+IUb s9Cgnvl9oKPWC74xrZAw== 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 () { } =20 if [ "$DEBUG_FILE" =3D "" ]; 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= =3D"' + echo '' DEBUG_FILE=3D"/dev/null" fi =20 --=20 2.52.0