From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752805AbcKPH4i (ORCPT ); Wed, 16 Nov 2016 02:56:38 -0500 Received: from mga05.intel.com ([192.55.52.43]:60610 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbcKPH4h (ORCPT ); Wed, 16 Nov 2016 02:56:37 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,647,1473145200"; d="scan'208";a="787007584" From: Tomas Winkler To: Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH] checkpatch: don't check c99 types like uint8_t under tools Date: Wed, 16 Nov 2016 10:52:59 +0200 Message-Id: <1479286379-853-1-git-send-email-tomas.winkler@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tools contains user space code so uintX_t types are just fine. Signed-off-by: Tomas Winkler --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a8368d1c4348..42c3221be6eb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5548,8 +5548,9 @@ sub process { "Using weak declarations can have unintended link defects\n" . $herecurr); } -# check for c99 types like uint8_t used outside of uapi/ +# check for c99 types like uint8_t used outside of uapi/ and tools/ if ($realfile !~ m@\binclude/uapi/@ && + $realfile !~ m@\btools/@ && $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { my $type = $1; if ($type =~ /\b($typeC99Typedefs)\b/) { -- 2.7.4