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 F3A98CD4F21 for ; Wed, 13 May 2026 20:47:14 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1308439.1579869 (Exim 4.92) (envelope-from ) id 1wNGTf-0001z4-Cq; Wed, 13 May 2026 20:46:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1308439.1579869; Wed, 13 May 2026 20:46:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wNGTf-0001yx-AB; Wed, 13 May 2026 20:46:47 +0000 Received: by outflank-mailman (input) for mailman id 1308439; Wed, 13 May 2026 20:46:47 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wNGTe-0001yr-UE for xen-devel@lists.xenproject.org; Wed, 13 May 2026 20:46:46 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wNGTc-00DGYm-M5 for xen-devel@lists.xenproject.org; Wed, 13 May 2026 22:46:46 +0200 Received: from [10.42.69.2] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a04e319-2eae-0a2a0a5409dd-0a2a450281a2-20 for ; Wed, 13 May 2026 22:46:46 +0200 Received: from [172.234.252.31] (helo=sea.source.kernel.org) by tlsNG-720697.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a04e334-af86-0a2a45020019-aceafc1f8f28-3 for ; Wed, 13 May 2026 22:46:45 +0200 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id F132A402B8; Wed, 13 May 2026 20:46:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC912C19425; Wed, 13 May 2026 20:46:43 +0000 (UTC) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=k20201202 header.d=kernel.org header.i="@kernel.org" header.h="Date:From:To:cc:Subject:In-Reply-To:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778705203; bh=wpV9StRR9YZtclK2hc4IXe7av7xmUbXWolQsdD9HKOs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=I8UYK5L4gmxgsKlaW4uGsBdS6Z1VJaxw7fJ9HjItqugPWpL5CRTQOP4cvSruEiUvu nIqHl6jwZkR9cWVmoVvhATWmE39aV8Vp/SNbQzGsEFcOQTSlbCMODg1LzIqzmqyTxz 54c12JTKxeQdXsbIFTpgR4Fmy3km6JDrai6HwYNx7XTByqOw7fANvNrlrx/20V2gF+ L8qT6+hxyptelTbz9vA6IxNFdd3UKXKBTuiHsT6Y4N1YrW9f678SWZk5dhl9aQslx3 oysqc9pttapQmNj7sWou4UjQANMmSzi9X8DtCVKYV47N84b220aukp7UtTmnigp32+ JVH0be2CfmZng== Date: Wed, 13 May 2026 13:46:40 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: Jan Beulich cc: "xen-devel@lists.xenproject.org" , Andrew Cooper Subject: Re: [PATCH 1/2] kexec: kexec_crash_save_info() vs Misra C:2012 rule 8.3 In-Reply-To: <0af810a1-3392-472a-93c9-c98fcb81c43a@suse.com> Message-ID: References: <13ca5f9f-d985-41bf-9c30-afd657dade89@suse.com> <0af810a1-3392-472a-93c9-c98fcb81c43a@suse.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-purgate-ID: tlsNG-720697/1778705206-A917D161-59822B90/0/0 X-purgate-type: clean X-purgate-size: 791 On Wed, 13 May 2026, Jan Beulich wrote: > ... ("All declarations of an object or function shall use the same names > and type qualifiers"). The declaration doesn't use the typedef, so the > definition shouldn't either. > > Signed-off-by: Jan Beulich Reviewed-by: Stefano Stabellini > --- > Really, is the typedef of much use? I.e. can't we drop it altogether? > > --- a/xen/common/kexec.c > +++ b/xen/common/kexec.c > @@ -333,7 +333,7 @@ void kexec_crash_save_cpu(void) > } > > /* Set up the single Xen-specific-info crash note. */ > -crash_xen_info_t *kexec_crash_save_info(void) > +struct crash_xen_info *kexec_crash_save_info(void) > { > int cpu = smp_processor_id(); > crash_xen_info_t info; > >