Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp426759pxh; Wed, 10 Nov 2021 04:05:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4GdVEBVe7NmIYndBWOIFYi1n1iPWSBtGzIgYWDmlUZAOodto/P1oki7ieOTGjbbGpCwmV X-Received: by 2002:a17:906:d930:: with SMTP id rn16mr20662424ejb.223.1636545925346; Wed, 10 Nov 2021 04:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636545925; cv=none; d=google.com; s=arc-20160816; b=PaP3cJC7JrztGNWebpnJ3FhwnEP/K2SabU+KsGOV4lZls5k7uKPfX4bTSAIJ2Tmsie AOB9dSHAxPouDNzAHBXQNLvSicU7zda9Ky0OvktNN3b5pXqO+BGJ7NjxMjfbFGyTsKYO fck5ay5etfmBTo8T+8iLadU+cFfZE6m2CFcmpVX4zFZIBnUIEPP/XUikn0UcjCWcahMl Bz2Q6/cf5/eixX5S8Xlysl3NJ5uKf+tYyPanylilWsG/vSCqxbE522qm/gU1Oexe3V8+ DoHYBXkuJwYGQJLOPc089GHClACz8RXxe/rz+me/sO2qqhb+4YB2w7yh2mQfIc2r+BnS t0Tg== 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:date:subject:cc:to:from :dkim-signature; bh=SEODT4cHy8v1YRxwVEuwYrnWfee/2o+OJs75MXKU8sk=; b=rmHC8MCRz1h3XS7kkofE8ZhT8ArFTg69gUOz1lwqBJ1sImSGdcZ7lxFfc4Qh3lSo6W jIOLGwirfdXLpybZGYVybE6fdV++gyUNFW7pKtNxVEnPSlt9W59y5C6I+RdnTb4tWDS8 MocfO1X9n20aVKtFtfC49jX4MgA+9fCsvPjsYX9Wposk/8+43jWUDQZEjOXIhtaoc9+r KUIDdAzogTicTZaD/yLIF3Sefug4ErpDvWkuacHCCwQvsQyLPH+IKY0lOXUE343H5o8N 1WfB+UV4GuEklG5TCYmUhPs+JLgLWcs814jmSwauatpEJ6anzJkFXqt/Cg/eP606byb0 xS8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zrmd7fa+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt31si42365708ejc.644.2021.11.10.04.04.59; Wed, 10 Nov 2021 04:05:25 -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=@gmail.com header.s=20210112 header.b=Zrmd7fa+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231615AbhKJMEf (ORCPT + 99 others); Wed, 10 Nov 2021 07:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbhKJMEe (ORCPT ); Wed, 10 Nov 2021 07:04:34 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD8BC061764 for ; Wed, 10 Nov 2021 04:01:47 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id y5so2472773pfb.4 for ; Wed, 10 Nov 2021 04:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SEODT4cHy8v1YRxwVEuwYrnWfee/2o+OJs75MXKU8sk=; b=Zrmd7fa+3Ae0nY8/E/aUhBKEZFFRzG4u53Z+J/mky2yYqFGCZzfGqflBzVlXX98Fm+ zvGuuY8WEk/K7JqQc7akevuDWhTiRBp/m/CVIsQ46nHu+19gPAtUq1O3Odsevy2cnX6z C4cIylownqw4yL3zwLFIDzf90OtWxwpWw37+091rbDiqOZOj1IxIweDFtHjwVKgRy7Ew c3DkjjU9IilFldgcy1RCI77j/gQ0es0Cnm+uD3NK/QrEdQQAVw+2UOuKV46lqf01AHh8 usIfTC+Pe4M5dfQHnoORn2RRAggh0IBqG01aM/bCc3DV140xURCTyFBVOw9ZbZLMjTA+ OJKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SEODT4cHy8v1YRxwVEuwYrnWfee/2o+OJs75MXKU8sk=; b=YbRuoEHNvkFc4wE1LQsDAA7Pyb/FdQFD5pz8SdB3BxIoFCvcBE0lwr5qWhz+J18KcL aRpWt2NPm0NgBDCDwq7wQYu8Pyxq2E6UfseIeQiuRmeilhQcWc+gVhwhK2KuxdzU14P0 fdwWtPt0ekwMwdKBODblNOdOYQHNobD89jUSuaz4czgkQYKTgOP6T1yCPmrEnxT5YQJz dduD6TLhHsfMDEfxyR5WDFK6Mkr64mLslVWwg57h079gpSlsmcZ1o63wvpOv60tcZM4m ZmObje/LE6D39uH9dy9N6Xh/RMEyymE13Bs5J//dIIDV7RZHU432LhN1+UKkeUXYivmH hlFw== X-Gm-Message-State: AOAM532WX67kqm3qXMqfIRuSqSKzTbYfZVye4yTT/bwrWbjoGncZYSO9 nBbVoDHdTWa/SXsY24k+lEEqePCKdTk= X-Received: by 2002:a63:2a8d:: with SMTP id q135mr901318pgq.167.1636545706857; Wed, 10 Nov 2021 04:01:46 -0800 (PST) Received: from localhost ([198.11.178.15]) by smtp.gmail.com with ESMTPSA id p23sm5464852pjg.55.2021.11.10.04.01.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Nov 2021 04:01:46 -0800 (PST) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Lai Jiangshan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Joerg Roedel , Brijesh Singh Subject: [PATCH V5 41/50] x86/nmi: Use DEFINE_IDTENTRY_NMI for nmi Date: Wed, 10 Nov 2021 19:57:27 +0800 Message-Id: <20211110115736.3776-42-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20211110115736.3776-1-jiangshanlai@gmail.com> References: <20211110115736.3776-1-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lai Jiangshan DEFINE_IDTENTRY_NMI is defined, but not used. It is better to use it. It is also prepared for later patch to define DEFINE_IDTENTRY_NMI differently in 32bit and 64bit. Signed-off-by: Lai Jiangshan --- arch/x86/kernel/nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c index 4bce802d25fb..44c3adb68282 100644 --- a/arch/x86/kernel/nmi.c +++ b/arch/x86/kernel/nmi.c @@ -473,7 +473,7 @@ static DEFINE_PER_CPU(enum nmi_states, nmi_state); static DEFINE_PER_CPU(unsigned long, nmi_cr2); static DEFINE_PER_CPU(unsigned long, nmi_dr7); -DEFINE_IDTENTRY_RAW(exc_nmi) +DEFINE_IDTENTRY_NMI(exc_nmi) { irqentry_state_t irq_state; -- 2.19.1.6.gb485710b