From patchwork Tue Sep 10 09:13:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alessandro Zucchelli X-Patchwork-Id: 13798154 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4100ECE582 for ; Tue, 10 Sep 2024 09:13:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.795164.1204341 (Exim 4.92) (envelope-from ) id 1snwwR-0000vH-Bf; Tue, 10 Sep 2024 09:13:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 795164.1204341; Tue, 10 Sep 2024 09:13:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snwwR-0000v8-8i; Tue, 10 Sep 2024 09:13:43 +0000 Received: by outflank-mailman (input) for mailman id 795164; Tue, 10 Sep 2024 09:13:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snwwP-0000uu-Sg for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 09:13:41 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f87f4741-6f54-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 11:13:41 +0200 (CEST) Received: from delta.bugseng.com.homenet.telecomitalia.it (host-87-1-204-86.retail.telecomitalia.it [87.1.204.86]) by support.bugseng.com (Postfix) with ESMTPSA id 105C04EE079F; Tue, 10 Sep 2024 11:13:37 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: f87f4741-6f54-11ef-a0b5-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725959620; bh=QcU5Da4ktj/P01VY4CMaXtB1BLdZaSbVnPFlS6EMHw4=; h=From:To:Cc:Subject:Date:From; b=QPDVMWdB5ZRW60XVNp7v7Te/TlZe/FC5fwOjUTI6F1t6WNuySJ7RCbwj+LlrDdjXF e/QiKuxckX+G7Iow9L7Bgvtv4RVnCxNCSd28r7eQdzyuMW4yPP8C22BkJW5qIqcRWd oHAAW46ZUEfm6kto4f+amB5KdpGhsu2ZzuvbDrVbglUy+7UsyVeR6RpNsuYhmh9aji o15jYNbc8hTVMUj69XNmR9ZdhkspuzLcjW/fPkyhTBC7NMSqa91/6hmaGthQHE7ewu B/wW5OHLmZr9yX/DH6yshdO84waax0hEnM2xak4KjIRN9A8cUPp9ZujdSCQ6tji3OH z0JRTQOoRl+gQ== From: Alessandro Zucchelli To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Nicola Vetrini , Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Alessandro Zucchelli Subject: [XEN PATCH v2] x86/APIC: address violation of MISRA C Rule 21.2 Date: Tue, 10 Sep 2024 11:13:24 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 From: Nicola Vetrini The rule disallows the usage of an identifier reserved by the C standard. All identfiers starting with '__' are reserved for any use, so the label can be renamed in order to avoid the violation. No functional change. Signed-off-by: Nicola Vetrini Signed-off-by: Alessandro Zucchelli Acked-by: Jan Beulich --- Changes in v2: - added correct signature - applied proper indentation for label `next' xen/arch/x86/apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c index e077bf7edc..254ab5d388 100644 --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -925,7 +925,7 @@ void __init init_apic_mappings(void) unsigned long apic_phys; if ( x2apic_enabled ) - goto __next; + goto next; /* * If no local APIC can be found then set up a fake all * zeroes page to simulate the local APIC and another @@ -941,7 +941,7 @@ void __init init_apic_mappings(void) apic_printk(APIC_VERBOSE, "mapped APIC to %p (%08lx)\n", fix_to_virt(FIX_APIC_BASE), apic_phys); -__next: + next: /* * Fetch the APIC ID of the BSP in case we have a * default configuration (or the MP table is broken).