From nobody Sun May 12 00:27:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1621540457; cv=none; d=zohomail.com; s=zohoarc; b=g9aiH0CXpDmm07rRwYW8BjDJAd++5Zqx6E1Xv5fWGtC/VWdhLP1tgFa1xKzGSGL+KEuYzLecIXcmP25kSWGXyA6DxxRGTFBGDtpyuWJX6tqQp/S+qjhOVlf+AhTL8TBWGfszgFh8J+DrzgXrrDAxPPX2yY8P+otN2wOXnLjxH38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621540457; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=DDqm9+v3ARIWjmHdD1HZG5XaunN5cQ1GuauuEp5mpCc=; b=HOxaNCdb9CWfHl3hBmdKrAdDBn2mCsyoTP6Lk5UXnmqdnvNLCLeaehZWo6pkb9Hn34l68PYLbdEIt3utfKUsSR4C389goVnJSkyeTryewtCo2a54AaDMmr8HvK69LSMNB59sfDW4XB39bvtpcf9EYpJsWx++tnuzb44Inyt63vY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1621540457465668.5398470308434; Thu, 20 May 2021 12:54:17 -0700 (PDT) Received: from localhost ([::1]:50824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljokJ-0006X0-UE for importer@patchew.org; Thu, 20 May 2021 15:54:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljoiB-0005ik-EE for qemu-devel@nongnu.org; Thu, 20 May 2021 15:52:03 -0400 Received: from [201.28.113.2] (port=31188 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljoi9-0000mq-GL for qemu-devel@nongnu.org; Thu, 20 May 2021 15:52:03 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Thu, 20 May 2021 16:51:56 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id 649B98013E1; Thu, 20 May 2021 16:51:56 -0300 (-03) From: matheus.ferst@eldorado.org.br To: qemu-devel@nongnu.org Subject: [PATCH] scripts/checkpatch.pl: process .c.inc and .h.inc files as C source Date: Thu, 20 May 2021 16:51:42 -0300 Message-Id: <20210520195142.941261-1-matheus.ferst@eldorado.org.br> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 20 May 2021 19:51:56.0587 (UTC) FILETIME=[96D5E7B0:01D74DB1] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=201.28.113.2; envelope-from=matheus.ferst@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Matheus Ferst Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Matheus Ferst Change the regex used to determine whether a file should be processed as C source to include .c.inc and .h.inc extensions. Signed-off-by: Matheus Ferst Reviewed-by: Luis Pires --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3d185cceac..bbcd25ae05 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -12,7 +12,7 @@ use Term::ANSIColor qw(:constants); my $P =3D $0; $P =3D~ s@.*/@@g; =20 -our $SrcFile =3D qr{\.(?:h|c|cpp|s|S|pl|py|sh)$}; +our $SrcFile =3D qr{\.(?:(h|c)(\.inc)?|cpp|s|S|pl|py|sh)$}; =20 my $V =3D '0.31'; =20 @@ -1671,7 +1671,7 @@ sub process { } =20 # check we are in a valid C source file if not then ignore this hunk - next if ($realfile !~ /\.(h|c|cpp)$/); + next if ($realfile !~ /\.((h|c)(\.inc)?|cpp)$/); =20 # Block comment styles =20 --=20 2.25.1