From: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: consulting@bugseng.com,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [XEN PATCH 1/2] pci: add suffix 'U' to PCI_CONF_ADDRESS macro.
Date: Wed, 24 Apr 2024 15:30:48 +0200 [thread overview]
Message-ID: <56c785a1e44ba3bba0112624c5b043fd@bugseng.com> (raw)
In-Reply-To: <86c746d0-b369-4bbb-9510-c18023ff61ab@suse.com>
On 2024-04-24 14:47, Jan Beulich wrote:
> On 24.04.2024 14:11, Alessandro Zucchelli wrote:
>> This addresses violations of MISRA C:2012 Rule 7.2 which states as
>> following: A “u” or “U” suffix shall be applied to all integer
>> constants
>> that are represented in an unsigned type.
>>
>> No functional change.
>>
>> Signed-off-by: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
>
> Acked-by: Jan Beulich <jbeulich@suse.com>
>
>> --- a/xen/arch/x86/x86_64/pci.c
>> +++ b/xen/arch/x86/x86_64/pci.c
>> @@ -9,7 +9,7 @@
>> #include <asm/io.h>
>>
>> #define PCI_CONF_ADDRESS(sbdf, reg) \
>> - (0x80000000 | ((sbdf).bdf << 8) | ((reg) & ~3))
>> + (0x80000000U | ((sbdf).bdf << 8) | ((reg) & ~3))
>>
>> uint8_t pci_conf_read8(pci_sbdf_t sbdf, unsigned int reg)
>> {
>
> This is x86'es PCI, so the subject prefix may ant to be "x86/pci:".
Noted, thanks.
--
Alessandro Zucchelli, B.Sc.
Software Engineer, BUGSENG (https://bugseng.com)
next prev parent reply other threads:[~2024-04-24 13:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 12:11 [XEN PATCH 0/2] x86: address remaining violation of Rule 7.2 Alessandro Zucchelli
2024-04-24 12:11 ` [XEN PATCH 1/2] pci: add suffix 'U' to PCI_CONF_ADDRESS macro Alessandro Zucchelli
2024-04-24 12:47 ` Jan Beulich
2024-04-24 13:30 ` Alessandro Zucchelli [this message]
2024-04-24 12:11 ` [XEN PATCH 2/2] x86/msr: add suffix 'U' to MSR_AMD_CSTATE_CFG macro Alessandro Zucchelli
2024-04-24 12:51 ` Jan Beulich
2024-04-24 12:56 ` Andrew Cooper
2024-04-24 12:53 ` Teddy Astie
2024-04-24 15:17 ` Alessandro Zucchelli
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=56c785a1e44ba3bba0112624c5b043fd@bugseng.com \
--to=alessandro.zucchelli@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=consulting@bugseng.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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.