From c811a807008818ecbd3778ed92a737b150f52df8 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 1 Oct 2025 11:46:06 -0700 Subject: [PATCH] tools: sync the "cleanfile" and "cleanpatch" with Linux Sync the "cleanfile" and "cleanpatch" scripts with the versions from the Linux kernel. Signed-off-by: H. Peter Anvin (Intel) --- tools/cleanfile | 4 +++- tools/cleanpatch | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/cleanfile b/tools/cleanfile index cefd29e52..c00c69b91 100755 --- a/tools/cleanfile +++ b/tools/cleanfile @@ -1,9 +1,11 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl +# SPDX-License-Identifier: GPL-2.0 # # Clean a text file -- or directory of text files -- of stealth whitespace. # WARNING: this can be a highly destructive operation. Use with caution. # +use warnings; use bytes; use File::Basename; diff --git a/tools/cleanpatch b/tools/cleanpatch index 9680d03ad..9f1755271 100755 --- a/tools/cleanpatch +++ b/tools/cleanpatch @@ -1,9 +1,11 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl +# SPDX-License-Identifier: GPL-2.0 # # Clean a patch file -- or directory of patch files -- of stealth whitespace. # WARNING: this can be a highly destructive operation. Use with caution. # +use warnings; use bytes; use File::Basename;