From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: Luca Fancellu <Luca.Fancellu@arm.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
Stefano Stabellini <sstabellini@kernel.org>,
michal.orzel@amd.com, xenia.ragiadakou@amd.com,
ayan.kumar.halder@amd.com, consulting@bugseng.com,
Andrew Cooper <andrew.cooper3@citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
Wei Liu <wl@xen.org>
Subject: Re: [XEN PATCH 3/8] xen: address MISRA C:2012 Rule 8.4
Date: Wed, 09 Aug 2023 16:14:57 +0200 [thread overview]
Message-ID: <f0fd8d910c0eb3d127eaa776e7819455@bugseng.com> (raw)
In-Reply-To: <F44603D5-6DB1-4266-AD2A-482AD481E9C2@arm.com>
On 09/08/2023 15:50, Luca Fancellu wrote:
>> On 9 Aug 2023, at 12:02, Nicola Vetrini <nicola.vetrini@bugseng.com>
>> wrote:
>>
>> The variable 'saved_cmdline' can be defined static,
>> as its only uses are within the same file. This in turn avoids
>> violating Rule 8.4 because no declaration is present.
>>
>> Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
>> ---
>> xen/common/kernel.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/xen/common/kernel.c b/xen/common/kernel.c
>> index fb919f3d9c..52aa287627 100644
>> --- a/xen/common/kernel.c
>> +++ b/xen/common/kernel.c
>> @@ -28,7 +28,7 @@ CHECK_feature_info;
>>
>> enum system_state system_state = SYS_STATE_early_boot;
>>
>> -xen_commandline_t saved_cmdline;
>> +static xen_commandline_t saved_cmdline;
>
> I see this line was touched by
> fa97833ae18e4a42c0e5ba4e781173457b5d3397,
> have you checked that making it static was not affecting anything else?
>
>
Though Jan already replied on this, the commit(s) were tested by patchew
and our
pipeline. This is normally our process, apart from MISRA checks.
--
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)
next prev parent reply other threads:[~2023-08-09 14:15 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 11:02 [XEN PATCH 0/8] xen: address MISRA C:2012 Rule 8.4 Nicola Vetrini
2023-08-09 11:02 ` [XEN PATCH 1/8] arm/efi: " Nicola Vetrini
2023-08-09 13:46 ` Luca Fancellu
2023-08-09 20:03 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 2/8] xen/memory: " Nicola Vetrini
2023-08-09 13:34 ` Luca Fancellu
2023-08-09 13:41 ` Jan Beulich
2023-08-09 20:04 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 3/8] xen: " Nicola Vetrini
2023-08-09 13:50 ` Luca Fancellu
2023-08-09 14:06 ` Jan Beulich
2023-08-09 14:14 ` Luca Fancellu
2023-08-09 20:06 ` Stefano Stabellini
2023-08-09 14:14 ` Nicola Vetrini [this message]
2023-08-09 11:02 ` [XEN PATCH 4/8] xen/arm: " Nicola Vetrini
2023-08-09 12:42 ` Jan Beulich
2023-08-09 12:51 ` Luca Fancellu
2023-08-09 13:25 ` Nicola Vetrini
2023-08-09 13:08 ` Nicola Vetrini
2023-08-09 20:10 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 5/8] x86: " Nicola Vetrini
2023-08-09 13:48 ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 6/8] xen/arm: mm: " Nicola Vetrini
2023-08-09 13:43 ` Luca Fancellu
2023-08-09 20:11 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 7/8] x86/i8259: " Nicola Vetrini
2023-08-09 12:52 ` Jan Beulich
2023-08-09 14:17 ` Nicola Vetrini
2023-08-09 14:22 ` Jan Beulich
2023-08-09 20:15 ` Stefano Stabellini
2023-08-10 8:33 ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 8/8] x86/nmi: " Nicola Vetrini
2023-08-09 12:58 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0fd8d910c0eb3d127eaa776e7819455@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=Luca.Fancellu@arm.com \
--cc=andrew.cooper3@citrix.com \
--cc=ayan.kumar.halder@amd.com \
--cc=consulting@bugseng.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xenia.ragiadakou@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.