mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/ioreq: address violations of MISRA C:2012 Rule 7.3
The xen sources contain violations of MISRA C:2012 Rule 7.3 whose headline states: "The lowercase character 'l' shall not be used in a literal suffix". Use the "L" suffix instead of the "l" suffix, to avoid potential ambiguity. If the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini <gianluca.luparini@bugseng.com> Signed-off-by: Simone Ballarin <simone.ballarin@bugseng.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Acked-by: Paul Durrant <paul@xen.org>
This commit is contained in:
1 parent
21ec0c4226
commit
933a71756c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1182,7 +1182,7 @@ static int ioreq_send_buffered(struct ioreq_server *s, ioreq_t *p)
|
||||
* - the count field is usually used with data_is_ptr and since we don't
|
||||
* support data_is_ptr we do not waste space for the count field either
|
||||
*/
|
||||
if ( (p->addr > 0xffffful) || p->data_is_ptr || (p->count != 1) )
|
||||
if ( (p->addr > 0xfffffUL) || p->data_is_ptr || (p->count != 1) )
|
||||
return 0;
|
||||
|
||||
switch ( p->size )
|
||||
|
||||
@@ -60,7 +60,7 @@ struct ioreq_server {
|
||||
static inline paddr_t ioreq_mmio_first_byte(const ioreq_t *p)
|
||||
{
|
||||
return unlikely(p->df) ?
|
||||
p->addr - (p->count - 1ul) * p->size :
|
||||
p->addr - (p->count - 1UL) * p->size :
|
||||
p->addr;
|
||||
}
|
||||
|
||||
|
||||