From patchwork Tue Nov 8 21:35:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 17227 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ee07:0:0:0:0:0 with SMTP id y7csp6919wrn; Tue, 8 Nov 2022 13:51:40 -0800 (PST) X-Google-Smtp-Source: AMsMyM4N7UF5V1baBtC0iRz6hlo7+slXzk/d2ANeaGxGUZqoXTzEhmL5K7FAmr5eE2yTItqevoKZ X-Received: by 2002:a17:907:70a:b0:750:bf91:caa3 with SMTP id xb10-20020a170907070a00b00750bf91caa3mr55131236ejb.711.1667944300032; Tue, 08 Nov 2022 13:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667944300; cv=none; d=google.com; s=arc-20160816; b=Zp5wsO8MTQsbIrwiFh2H0Y2Jn6UqqrLW4J2+YRaUlaPm39xHr/5NrohWXQc+NeCaEe V17nupbnZvpJVqi0V5zdTrwD/fQBbkAczzzgVRHqT3SYpnB2bWxBcXoCq5T93m5Jp9Pz 7x4hIvgAzP/XV1uOm9bi1ADpIomceVUl/1ln2+Q3JAK/NpBHOmo7gB9cSR4lQnlnriEK 4btviIJJ0375QOaYSOYBhzccW8LhYYsbtZGSRUUhj7Gcj+3+lGh93p1PpHs0UGsWBgUY o6cH2LsiWLzw+aOykEoY1Hdks5CXAMBVbPQDknKJDEFiqoC0Q4932nQsqAWjjNAWji2x ABOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=dwI1cOu1CAqRFRpZ/qAxaAT22s+X8nsjOxog7of8jq0=; b=Yhl9FD7M5FFpj8V3lulDNIcoHAVeedTV5Xkd6J8ZlSVD/nJ/fx7Pqlsg2glf3DLVGr hOn0fPNhRHFOOssvz98nc6bHd4K9fy71lY8FFB0WC48BajYCcGB9hCtprj0Z0KJYjadu vJVmaAhP+uIkSdILvWUQFY0irsXNjlPR7+IfmoAJik4ZvtQM/fkjDw5pl0d4nPJbPDD6 Lpgg4uBWFubXggSazQUSjYWBPADMN99Uag8vqCtdPErkeie3wP5Cevs79M0YkiaKEN2Y cHhcs7UPG9RmhiUINlVk40mNfPC0z0M82GYoBjBL5h/LLAvFdc5rwiiA0ezOUOMumLdZ PJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EOtfLMR0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs7-20020a1709072d0700b007ad9c8201e7si4037123ejc.93.2022.11.08.13.51.15; Tue, 08 Nov 2022 13:51:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EOtfLMR0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbiKHVfZ (ORCPT + 99 others); Tue, 8 Nov 2022 16:35:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKHVfX (ORCPT ); Tue, 8 Nov 2022 16:35:23 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63105C755; Tue, 8 Nov 2022 13:35:22 -0800 (PST) Date: Tue, 08 Nov 2022 21:35:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1667943320; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dwI1cOu1CAqRFRpZ/qAxaAT22s+X8nsjOxog7of8jq0=; b=EOtfLMR0iqmpcRvEzNg//JD7cRfag+8Qu+/LsrUI+gMHur0Zk7ocE5nDXrqKfUXqAbfBPI 0JIOTydxex7m7fn4p+k4v/QSIA7eVihFzKNOgHrAbbTIo41O9fSuD6v2YUIpjgw5ych5jC rH4boX4ntxS6qJrwd506cBdxJ2w06z1+9ezCyuYgXsMFSmT4wL7n5/0xdK/f4zF7jjAlhY 1gaqXfztCbJ15VU47sAVocqeyvQn4oS8K48LThRHby2hAu3SRz8URzBqY+2nnlCwdYNnx6 SZiuv9+VCnlFU2O4rBQwosB5e92GEegDot8z/cPWEQllW4vIVMOe/XhkW2yyxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1667943320; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dwI1cOu1CAqRFRpZ/qAxaAT22s+X8nsjOxog7of8jq0=; b=5Bq666RNTfL0TNiI79i5Xpl0vmE3SVtornf/3yQIUw2O1HouSp9HEP3muBIe7g9G9BJ0l0 kYxWSgbvcnenFjAA== From: "tip-bot2 for Jiapeng Chong" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86: Fix misc small issues Cc: Abaci Robot , Jiapeng Chong , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1620902768-53822-1-git-send-email-jiapeng.chong@linux.alibaba.com> References: <1620902768-53822-1-git-send-email-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Message-ID: <166794331892.4906.5411586974851313804.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748966361886438605?= X-GMAIL-MSGID: =?utf-8?q?1748966361886438605?= The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 6426773410fd829c15b59575afe531d66abc7201 Gitweb: https://git.kernel.org/tip/6426773410fd829c15b59575afe531d66abc7201 Author: Jiapeng Chong AuthorDate: Tue, 08 Nov 2022 22:09:51 +01:00 Committer: Borislav Petkov CommitterDate: Tue, 08 Nov 2022 22:16:08 +01:00 x86: Fix misc small issues Fix: ./arch/x86/kernel/traps.c: asm/proto.h is included more than once. ./arch/x86/kernel/alternative.c:1610:2-3: Unneeded semicolon. [ bp: Merge into a single patch. ] Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/1620902768-53822-1-git-send-email-jiapeng.chong@linux.alibaba.com Link: https://lore.kernel.org/r/20220926054628.116957-1-jiapeng.chong@linux.alibaba.com --- arch/x86/kernel/alternative.c | 2 +- arch/x86/kernel/traps.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 5cadcea..d5f1e13 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -1608,7 +1608,7 @@ static void text_poke_loc_init(struct text_poke_loc *tp, void *addr, default: BUG_ON(len != insn.length); - }; + } switch (tp->opcode) { diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 178015a..c3bff64 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -67,13 +67,13 @@ #ifdef CONFIG_X86_64 #include -#include #else #include #include -#include #endif +#include + DECLARE_BITMAP(system_vectors, NR_VECTORS); static inline void cond_local_irq_enable(struct pt_regs *regs)