Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp582525pxu; Tue, 5 Jan 2021 21:23:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRssp7a2litmM4wIOpFf/oDjtZoY0sUPtC/zdiFVda7Pqg2CAB99VR6sXX0l4YSQgSkWr5 X-Received: by 2002:a17:906:810:: with SMTP id e16mr1888179ejd.34.1609910594412; Tue, 05 Jan 2021 21:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609910594; cv=none; d=google.com; s=arc-20160816; b=vNTDj6ieZ7pSgfnF6FkzoTil6xdMzSA0NEfXhC1oDEg/R5dzf4FDgKY5qNCm4ulp4v b0BVNJ5WS8e+jv9/Kjsk7CNA2VPj41oKw+8ahn7rN6vczteD1t9EY44LaLazNtJOlJvm B/m9MsfN8x4MgHbcmtVVFONiC6m6tKLivxb6zRAH+RukBbnPI1upezXsvqKMQTBdbzry D+Rju6zTccLIkwn5NfZgBrjLBhCma61prSdaQ3P9IXwIulvHZ0BeMFP91m3Q3uDl6xfa 5JeArdP45S3tiBoURy+ZpmU/UOMYel7BgccqVZ8N+M6qGWQhwFA2xo4TTNtRDZiiLUFs uwlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Q1YR+OvGhgoCcICsHiNnO9sxmy2PbSsjc2BY3RkbDg0=; b=aFjKoRHJ3Tyo4gZqP45m8yWA0TspIhJVouI2l3nrVsPWZmAv8FjIhGbhg8fJf7Du7r sW+w9foBIBIgFdxta5vZs2Tfxhjh4Nhk7f1JLWuy2aGl9ZouOHyhiG9PLw2I/2f9Nhq5 Md190of9mdgIRH+II93cBzW7/q5OIuYBUKzz7ijWbIpJQyuU2UeJSh629uI9vS1nDNJj dabMgKH5XfgfpuEEYkmEkmadDTg+emSAv/ikkOGt7sxE0NYWsQk25HXzrOWlIoSIhpZU lKC9lh4re3y8u5BzqMBMz7h21wlBDkpwRvMAc0wcrgFw/UCgMymRbKcJnyVbBWrdwk5H NBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aT0KDthG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si536750edj.524.2021.01.05.21.22.50; Tue, 05 Jan 2021 21:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aT0KDthG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725835AbhAFFWA (ORCPT + 99 others); Wed, 6 Jan 2021 00:22:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:40426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbhAFFV7 (ORCPT ); Wed, 6 Jan 2021 00:21:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 110DF22CB9; Wed, 6 Jan 2021 05:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609910478; bh=boxdZNrCes9phB/H6KelJrXD4jwDAkI2Od6BcLKPhD0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aT0KDthGB3PXY1hrTcQvMM4tEqpTcsN2AVS8fv6ZQC9lUKG/OX7N/MkL+Xrim2f0v AQ+rHzRP8uNGE02iQHg4ZNFX03N8bnr7RVufFI259hi65Gd4bdP6+YoxrAhpOdEMDk /qH/dNnLNigs0SgzA6YuPXOSc7joKR0j5sD7vJ4woKx5RSjq8zffspqfXJi36f7xlE 5iSwSHFmEpcg1kMxkWmgebIUB4AAeLTRmZjnk5cmCLkz4qPs+aEmz7M6RlqQFkXXoI B19F43O/4XNYNxW+2QABSOJVj3Xy6hcP3Eb3xy3J8jLPYZCceu4ND+Ch/AVNeBYc72 2aqiIP9SCvIYQ== Date: Wed, 6 Jan 2021 14:21:14 +0900 From: Masami Hiramatsu To: Borislav Petkov Cc: Andy Lutomirski , X86 ML , LKML , Arnaldo Carvalho de Melo Subject: Re: [PATCH v1 03/19] x86/insn: Add an insn_decode() API Message-Id: <20210106142114.5e9ce2cc107f6386e36b4ff4@kernel.org> In-Reply-To: <20201230092833.GE22022@zn.tnic> References: <20201223174233.28638-1-bp@alien8.de> <20201223174233.28638-4-bp@alien8.de> <20201228101510.49082d470ed328d81486ef04@kernel.org> <20201229200654.GF29947@zn.tnic> <20201230180052.7e1931b4e1b17079023b65b7@kernel.org> <20201230092833.GE22022@zn.tnic> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Dec 2020 10:28:33 +0100 Borislav Petkov wrote: > I still haven't thought about what do to exactly there wrt making > sync-check.sh happy but the aspect of failing the build is a nice one. So I think it is possible to introduce a keyword in a comment for ignoring sync check something like below. This will allow us a generic pattern matching. The keyword is just an example, "no-sync-check" etc. is OK. What would you think about it? Thank you, diff --git a/arch/x86/include/asm/inat.h b/arch/x86/include/asm/inat.h index 4cf2ad521f65..ff3d119610f5 100644 --- a/arch/x86/include/asm/inat.h +++ b/arch/x86/include/asm/inat.h @@ -6,7 +6,7 @@ * * Written by Masami Hiramatsu */ -#include +#include /* Different from tools */ /* * Internal bits. Don't use bitmasks directly, because these bits are diff --git a/arch/x86/include/asm/insn.h b/arch/x86/include/asm/insn.h index a8c3d284fa46..dda4fe208659 100644 --- a/arch/x86/include/asm/insn.h +++ b/arch/x86/include/asm/insn.h @@ -8,7 +8,7 @@ */ /* insn_attr_t is defined in inat.h */ -#include +#include /* Different from tools */ struct insn_field { union { diff --git a/tools/arch/x86/include/asm/inat.h b/tools/arch/x86/include/asm/inat.h index 877827b7c2c3..1fcfb4efb5f4 100644 --- a/tools/arch/x86/include/asm/inat.h +++ b/tools/arch/x86/include/asm/inat.h @@ -6,7 +6,7 @@ * * Written by Masami Hiramatsu */ -#include "inat_types.h" +#include "inat_types.h" /* Different from kernel */ /* * Internal bits. Don't use bitmasks directly, because these bits are diff --git a/tools/arch/x86/include/asm/insn.h b/tools/arch/x86/include/asm/insn.h index 52c6262e6bfd..702135ddb4fd 100644 --- a/tools/arch/x86/include/asm/insn.h +++ b/tools/arch/x86/include/asm/insn.h @@ -8,7 +8,7 @@ */ /* insn_attr_t is defined in inat.h */ -#include "inat.h" +#include "inat.h" /* Different from kernel */ struct insn_field { union { diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh index dded93a2bc89..b112d68c5513 100755 --- a/tools/perf/check-headers.sh +++ b/tools/perf/check-headers.sh @@ -137,8 +137,8 @@ check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"' check include/linux/build_bug.h '-I "^#\(ifndef\|endif\)\( \/\/\)* static_assert$"' check include/linux/ctype.h '-I "isdigit("' check lib/ctype.c '-I "^EXPORT_SYMBOL" -I "^#include " -B' -check arch/x86/include/asm/inat.h '-I "^#include [\"<]\(asm/\)*inat_types.h[\">]"' -check arch/x86/include/asm/insn.h '-I "^#include [\"<]\(asm/\)*inat.h[\">]"' +check arch/x86/include/asm/inat.h '-I "^.*/\* Different from \(tools\|kernel\) \*/"' +check arch/x86/include/asm/insn.h '-I "^.*/\* Different from \(tools\|kernel\) \*/"' check arch/x86/lib/inat.c '-I "^#include [\"<]\(../include/\)*asm/insn.h[\">]"' check arch/x86/lib/insn.c '-I "^#include [\"<]\(../include/\)*asm/in\(at\|sn\).h[\">]" -I "^#include [\"<]\(../include/\)*asm/emulate_prefix.h[\">]"' -- Masami Hiramatsu