Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5180227ybl; Tue, 27 Aug 2019 00:16:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqygfsfLEnNkZSmn1tbKK2tfgz2RwX3NJ2VcJjmB8kpZkGbwIRV62VaEwFaYqvzVgza4Spii X-Received: by 2002:a17:902:8348:: with SMTP id z8mr23465303pln.38.1566890180397; Tue, 27 Aug 2019 00:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566890180; cv=none; d=google.com; s=arc-20160816; b=BNmci4ayhBIaJeWZmHgXa5Kc7Vg/vhXI3phuduoA08nJcuZrU8WrRUmvjkjHQ8pIkg C8op5gzmX3w5Rg+OJRVCa+G5rE9bCY8CLD1h7WtXbKKFZQwG5Pj+rc88+wmB4U9mr5S3 Xc/t1WeaMdaGgSnbIcZJEmmojvh1A0bLypmgXuC7eHCv2dlk+PZcAPjPoZiqCOl61xuM zOQVe4VOqYcK68qUzLIsuey5nY254Jpu9n/g9PwS9QKRQY84kTBqWItMNsnQRIVTOadJ 0K18/YEIsKIo/gjsl5UcGi4vtW6vOZteRRhiMnkl9H8G0NNuVYI4hVCsr0jZQJik7UyT W6Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=FZO7fqlulViwJQvi66hIB1MRl17fqF61ZG5/fvDBGUs=; b=nDTXAZAAtu2xE70N/rzBg+rbsET1GlL5t/9nUoKAxEP7Ag2syP2bBo+bdJ40evdqtJ 9CS3EyTm253MgAJOLz99G2mPkg8nZDQUCXT49LmdkXPg0j2ArjHXJ8X6jOF0eOwCWhqy +SI9eWDx/FsUghzEPsCgeJfnAttIwNp9rPYQcpd4XzeEw8q7TiqLU50plM8j+zYaAMsn cq5hs5mS0mGD2MXO05Ebk1LKPQOJpHSU1Z1aQewyWtfonXxnCIcTBH83rju4yJJNhReJ +d9g7oGxYsW33Z89COoUy3i+wDMGKh/VuKaBlB1IhQCl+YJ2FQbYGkU8Tui32ban9inB ZbzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si11334234pgs.228.2019.08.27.00.16.05; Tue, 27 Aug 2019 00:16:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbfH0HPO (ORCPT + 99 others); Tue, 27 Aug 2019 03:15:14 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:46330 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725811AbfH0HPN (ORCPT ); Tue, 27 Aug 2019 03:15:13 -0400 X-IronPort-AV: E=Sophos;i="5.64,436,1559491200"; d="scan'208";a="74331670" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 27 Aug 2019 15:04:59 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 137304CE086C; Tue, 27 Aug 2019 15:04:48 +0800 (CST) Received: from TSAO.g08.fujitsu.local (10.167.226.60) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 27 Aug 2019 15:05:01 +0800 From: Cao jin To: , CC: , , , Subject: [PATCH] x86/cpufeature: drop *_MASK_CEHCK Date: Tue, 27 Aug 2019 15:05:50 +0800 Message-ID: <20190827070550.15988-1-caoj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 137304CE086C.AE53D X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org They are wrappers of BUILD_BUG_ON_ZERO(NCAPINTS != n), which is already present in corresponding *_MASK_BIT_SET. And fill the missing period in head comments by the way. Signed-off-by: Cao jin --- arch/x86/include/asm/cpufeature.h | 2 -- arch/x86/include/asm/disabled-features.h | 1 - arch/x86/include/asm/required-features.h | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 58acda503817..232ffb88039c 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h @@ -81,7 +81,6 @@ extern const char * const x86_bug_flags[NBUGINTS*32]; CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 16, feature_bit) || \ CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 17, feature_bit) || \ CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 18, feature_bit) || \ - REQUIRED_MASK_CHECK || \ BUILD_BUG_ON_ZERO(NCAPINTS != 19)) #define DISABLED_MASK_BIT_SET(feature_bit) \ @@ -104,7 +103,6 @@ extern const char * const x86_bug_flags[NBUGINTS*32]; CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 16, feature_bit) || \ CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 17, feature_bit) || \ CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 18, feature_bit) || \ - DISABLED_MASK_CHECK || \ BUILD_BUG_ON_ZERO(NCAPINTS != 19)) #define cpu_has(c, bit) \ diff --git a/arch/x86/include/asm/disabled-features.h b/arch/x86/include/asm/disabled-features.h index a5ea841cc6d2..8a2eafa86739 100644 --- a/arch/x86/include/asm/disabled-features.h +++ b/arch/x86/include/asm/disabled-features.h @@ -84,6 +84,5 @@ #define DISABLED_MASK16 (DISABLE_PKU|DISABLE_OSPKE|DISABLE_LA57|DISABLE_UMIP) #define DISABLED_MASK17 0 #define DISABLED_MASK18 0 -#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19) #endif /* _ASM_X86_DISABLED_FEATURES_H */ diff --git a/arch/x86/include/asm/required-features.h b/arch/x86/include/asm/required-features.h index 6847d85400a8..cb98b66d3e81 100644 --- a/arch/x86/include/asm/required-features.h +++ b/arch/x86/include/asm/required-features.h @@ -1,7 +1,7 @@ #ifndef _ASM_X86_REQUIRED_FEATURES_H #define _ASM_X86_REQUIRED_FEATURES_H -/* Define minimum CPUID feature set for kernel These bits are checked +/* Define minimum CPUID feature set for kernel. These bits are checked really early to actually display a visible error message before the kernel dies. Make sure to assign features to the proper mask! @@ -101,6 +101,5 @@ #define REQUIRED_MASK16 0 #define REQUIRED_MASK17 0 #define REQUIRED_MASK18 0 -#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19) #endif /* _ASM_X86_REQUIRED_FEATURES_H */ -- 2.17.0