From patchwork Tue Oct 3 19:51:15 2023 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: 148051 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2315338vqb; Tue, 3 Oct 2023 12:51:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsRl4V34jpzO4zcvFXC4FC0JTwR1ITM/FHjcJjwODJHoRHkozKOm5l/CGdvcnqMbdpU7SO X-Received: by 2002:a17:902:ed01:b0:1c6:335b:1d75 with SMTP id b1-20020a170902ed0100b001c6335b1d75mr523005pld.69.1696362701431; Tue, 03 Oct 2023 12:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696362701; cv=none; d=google.com; s=arc-20160816; b=qy94rC9EeNjUdGWmawQ4KJkM4vS2cU2XFuqlAUrK5BSszxRhlPyxrM77xW6aAzNidq XT/cRSEORDK3EDV4k6hz+trKPDicdCFa9TaTVHC8NELMbte4KZ0w3AvabC1Q6KiiuZwK O4+Ah/1rdpEn/QEFTpyia32KGz7WI+yLeNWpZD9rYTEngUliEBwGdq3SRIJStwcHRhk0 QZIduhH2vD5BAvLfc3lLtfXA+sv1tTGBzVuHRFh15chHbS7ofpwuHpjOa402IKJGkkdA 089scAZAHsErxL/4pjqpVySDklwxP9QMj9K/Mx634ckDUau9xsmGV3GkMH01CtNFvN8Q zeQw== 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:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=ZXCjKAMJ43Hx8H2yxrjCWOCM50v4ZybjcsaCrgUcl6s=; fh=Q+3CqMN94SCLqStgWFQXOUDA21MYFl/WoNPzIfzuyUw=; b=xZSGqanl9G3f5Dbw/69HmWzyd1Gi0lY+SYghValJ1ra1oxz95cxojyyffDGUJkr9UH iflJsyM2egGzMq7LUHS2mKBuccXiL4Yln7DCwn0wG22gTN63zkwhUeuAwomkcpkCbzLc RDNs5E/RXA3Ez/kzLcdODz9/gG5Esme4OWjoWFNclrp64QmRLhScinoEu8JVtMBcrVJw TckCXigJRE7plH4AyoWOAE4V2sPiGiSjGFQEgtNjWktN4DLPeIdBV9qBigOy38A/O2XM ujHbf2+hVTu18WvtVtsqOT5EW3UjeAu2nZIDWYyCETeYUP9HCuyRXZP29YkWHg3dHcIo SYdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xBxOwRqv; dkim=neutral (no key) header.i=@linutronix.de header.b=7bp6B8eJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b14-20020a170903228e00b001c5e1816251si2322547plh.497.2023.10.03.12.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xBxOwRqv; dkim=neutral (no key) header.i=@linutronix.de header.b=7bp6B8eJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 543D481A5AFE; Tue, 3 Oct 2023 12:51:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240985AbjJCTvW (ORCPT + 17 others); Tue, 3 Oct 2023 15:51:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240878AbjJCTvV (ORCPT ); Tue, 3 Oct 2023 15:51:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B459FA1; Tue, 3 Oct 2023 12:51:18 -0700 (PDT) Date: Tue, 03 Oct 2023 19:51:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696362676; 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; bh=ZXCjKAMJ43Hx8H2yxrjCWOCM50v4ZybjcsaCrgUcl6s=; b=xBxOwRqvn1zqhred2g4OZxj0ojfsvth4zakJRZ1s75XvsfRfFPGevfvoYJEF+ZLlQ9lc3v s+Wfb0R/YULEtN+j8NUw/Le6sSfiX9JUwkG5R1yigpegm+7NsG/Pahn5pno3LCxJGE5nvK DoZzbieOTRz22KJa3dAIrvQmzEcPnWXJi5w7+oD75JSspIn34GSOhDzI9B15aM0TAqZ2i1 0ROTJSbMB104VMFC5C1NeLqNcA9W06KMJuucI6tt7rLiwxjZLdqZ2JM3sV3kupX7rnQM4I RxwQu2fntJ6rjnpTX+JuaU6qAImfncSyzeOUytMFg71YSMsaNAuGzGl4MERugg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696362676; 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; bh=ZXCjKAMJ43Hx8H2yxrjCWOCM50v4ZybjcsaCrgUcl6s=; b=7bp6B8eJIcCtkEtCX48v/oz87RB/Txi8KtRRp2e3IAzy7PybQRDWn9l3UjLIqS+meyha6P fsVxg6WnUXhhYICg== From: "tip-bot2 for Ruan Jinjie" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool: Use 'the fallthrough' pseudo-keyword Cc: Ruan Jinjie , Ingo Molnar , Josh Poimboeuf , Peter Zijlstra , linux-kernel@vger.kernel.org, x86@kernel.org MIME-Version: 1.0 Message-ID: <169636267584.3135.4440528386397949914.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 12:51:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778765216068543197 X-GMAIL-MSGID: 1778765216068543197 The following commit has been merged into the objtool/core branch of tip: Commit-ID: 758a74306f1076b50cb9872af18cb900bafd9497 Gitweb: https://git.kernel.org/tip/758a74306f1076b50cb9872af18cb900bafd9497 Author: Ruan Jinjie AuthorDate: Tue, 01 Aug 2023 11:52:30 +08:00 Committer: Ingo Molnar CommitterDate: Tue, 03 Oct 2023 21:37:35 +02:00 objtool: Use 'the fallthrough' pseudo-keyword Replace the existing /* fallthrough */ comments with the new 'fallthrough' pseudo-keyword macro: https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Ruan Jinjie Signed-off-by: Ingo Molnar Cc: Josh Poimboeuf Cc: Peter Zijlstra Cc: linux-kernel@vger.kernel.org --- tools/objtool/arch/x86/decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index c0f25d0..e327cd8 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c @@ -291,7 +291,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec switch (modrm_reg & 7) { case 5: imm = -imm; - /* fallthrough */ + fallthrough; case 0: /* add/sub imm, %rsp */ ADD_OP(op) { @@ -375,7 +375,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec break; } - /* fallthrough */ + fallthrough; case 0x88: if (!rex_w) break; @@ -656,7 +656,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec break; } - /* fallthrough */ + fallthrough; case 0xca: /* retf */ case 0xcb: /* retf */