xen/arm: use unsigned int instead of plain unsigned
cover xen/arm: use unsigned int instead of plain unsigned
This is done purely for cosmetic/style reasons (as we tend to use unsigned int more often than just unsigned) and not to waste changes made as part of [1] series that contained invalid justification (this is not fixing MISRA 8.1 rule).
Most of these patches have already been reviewed/acked but because of changing the commit messages/titles the tags are dropped now.
[1] https://lore.kernel.org/all/[email protected]/t/
Michal Orzel (7):
xen/arm: Use unsigned int instead of plain unsigned xen/domain: Use unsigned int instead of plain unsigned xen/common: Use unsigned int instead of plain unsigned include/xen: Use unsigned int instead of plain unsigned include/public: Use uint32_t instead of unsigned (int) xsm/flask: Use unsigned int instead of plain unsigned drivers/acpi: Drop the unneeded casts to unsigned
xen/arch/arm/domain_build.c | 2 +- xen/arch/arm/guestcopy.c | 13 +++++++------ xen/arch/arm/include/asm/arm32/bitops.h | 8 ++++---- xen/arch/arm/include/asm/fixmap.h | 4 ++-- xen/arch/arm/include/asm/guest_access.h | 8 ++++---- xen/arch/arm/include/asm/mm.h | 2 +- xen/arch/arm/irq.c | 2 +- xen/arch/arm/kernel.c | 2 +- xen/arch/arm/mm.c | 4 ++-- xen/common/domain.c | 2 +- xen/common/grant_table.c | 6 +++--- xen/common/gunzip.c | 8 ++++---- xen/common/sched/cpupool.c | 4 ++-- xen/common/trace.c | 2 +- xen/drivers/acpi/tables/tbfadt.c | 6 +++--- xen/drivers/acpi/tables/tbutils.c | 1 - xen/include/public/physdev.h | 4 ++-- xen/include/public/sysctl.h | 10 +++++----- xen/include/xen/domain.h | 2 +- xen/include/xen/perfc.h | 2 +- xen/include/xen/sched.h | 2 +- xen/xsm/flask/ss/avtab.c | 2 +- 22 files changed, 48 insertions(+), 48 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/7 xen/arm: Use unsigned int instead of plain unsigned
This is just for the style and consistency reasons as the former is being used more often than the latter.
--- xen/arch/arm/domain_build.c | 2 +- xen/arch/arm/guestcopy.c | 13 +++++++------ xen/arch/arm/include/asm/arm32/bitops.h | 8 ++++---- xen/arch/arm/include/asm/fixmap.h | 4 ++-- xen/arch/arm/include/asm/guest_access.h | 8 ++++---- xen/arch/arm/include/asm/mm.h | 2 +- xen/arch/arm/irq.c | 2 +- xen/arch/arm/kernel.c | 2 +- xen/arch/arm/mm.c | 4 ++-- 9 files changed, 23 insertions(+), 22 deletions(-)
xen/arch/arm/domain_build.c +1 -1
@@ -1007,7 +1007,7 @@ static void __init set_interrupt(gic_interrupt_t interrupt,*/ static int __init fdt_property_interrupts (const struct kernel_info *kinfo,gic_interrupt_t *intr, -unsigned num_irq) +unsigned int num_irq) {int res;
xen/arch/arm/guestcopy.c +7 -6
@@ -56,7 +56,7 @@ static unsigned long copy_guest(void *buf, uint64_t addr, unsigned int len, copy_info_t info, unsigned int flags) {/* XXX needs to handle faults */ -unsigned offset = addr & ~PAGE_MASK ; +unsigned int offset = addr & ~PAGE_MASK ;BUILD_BUG_ON ((sizeof (addr)) <sizeof (vaddr_t));BUILD_BUG_ON ((sizeof (addr)) <sizeof (paddr_t));
@@ -64,7 +64,7 @@ static unsigned long copy_guest(void *buf, uint64_t addr, unsigned int len,while ( len ) {void *p; -unsigned size =min (len, (unsigned )PAGE_SIZE - offset); +unsigned int size =min (len, (unsigned int )PAGE_SIZE - offset);struct page_info *page; page = translate_get_page(info, addr, flags & COPY_linear,
@@ -106,26 +106,27 @@ static unsigned long copy_guest(void *buf, uint64_t addr, unsigned int len,return 0 ; } -unsigned long raw_copy_to_guest (void *to,const void *from,unsigned len) +unsigned long raw_copy_to_guest (void *to,const void *from,unsigned int len) {return copy_guest ((void *)from, (vaddr_t )to, len,GVA_INFO (current), COPY_to_guest | COPY_linear); }unsigned long raw_copy_to_guest_flush_dcache (void *to,const void *from, -unsigned len) +unsigned int len) {return copy_guest ((void *)from, (vaddr_t )to, len,GVA_INFO (current), COPY_to_guest | COPY_flush_dcache | COPY_linear); } -unsigned long raw_clear_guest (void *to,unsigned len) +unsigned long raw_clear_guest (void *to,unsigned int len) {return copy_guest (NULL , (vaddr_t )to, len,GVA_INFO (current), COPY_to_guest | COPY_linear); } -unsigned long raw_copy_from_guest (void *to,const void __user *from,unsigned len) +unsigned long raw_copy_from_guest (void *to,const void __user *from, +unsigned int len) {return copy_guest (to, (vaddr_t )from, len,GVA_INFO (current), COPY_from_guest | COPY_linear);
xen/arch/arm/include/asm/arm32/bitops.h +4 -4
@@ -6,17 +6,17 @@/* * Little endian assembly bitops. nr = 0 -> byte 0 bit 0. */ -extern int _find_first_zero_bit_le (const void * p,unsigned size); +extern int _find_first_zero_bit_le (const void * p,unsigned int size);extern int _find_next_zero_bit_le (const void * p,int size,int offset); -extern int _find_first_bit_le (const unsigned long *p,unsigned size); +extern int _find_first_bit_le (const unsigned long *p,unsigned int size);extern int _find_next_bit_le (const unsigned long *p,int size,int offset);/* * Big endian assembly bitops. nr = 0 -> byte 3 bit 0. */ -extern int _find_first_zero_bit_be (const void * p,unsigned size); +extern int _find_first_zero_bit_be (const void * p,unsigned int size);extern int _find_next_zero_bit_be (const void * p,int size,int offset); -extern int _find_first_bit_be (const unsigned long *p,unsigned size); +extern int _find_first_bit_be (const unsigned long *p,unsigned int size);extern int _find_next_bit_be (const unsigned long *p,int size,int offset);#ifndef __ARMEB__
xen/arch/arm/include/asm/fixmap.h +2 -2
@@ -30,9 +30,9 @@extern lpae_t xen_fixmap[XEN_PT_LPAE_ENTRIES ];/* Map a page in a fixmap entry */ -extern void set_fixmap (unsigned map,mfn_t mfn,unsigned attributes); +extern void set_fixmap (unsigned int map,mfn_t mfn,unsigned int attributes);/* Remove a mapping from a fixmap entry */ -extern void clear_fixmap (unsigned map); +extern void clear_fixmap (unsigned int map);#define fix_to_virt (slot) ((void *)FIXMAP_ADDR(slot))
xen/arch/arm/include/asm/guest_access.h +4 -4
@@ -4,11 +4,11 @@#include <xen/errno.h> #include <xen/sched.h> -unsigned long raw_copy_to_guest (void *to,const void *from,unsigned len); +unsigned long raw_copy_to_guest (void *to,const void *from,unsigned int len);unsigned long raw_copy_to_guest_flush_dcache (void *to,const void *from, -unsigned len); -unsigned long raw_copy_from_guest (void *to,const void *from,unsigned len); -unsigned long raw_clear_guest (void *to,unsigned len); +unsigned int len); +unsigned long raw_copy_from_guest (void *to,const void *from,unsigned int len); +unsigned long raw_clear_guest (void *to,unsigned int len);/* Copy data to guest physical address, then clean the region. */ unsigned long copy_to_guest_phys_flush_dcache(struct domain *d,
xen/arch/arm/include/asm/mm.h +1 -1
@@ -192,7 +192,7 @@ extern void setup_xenheap_mappings(unsigned long base_mfn, unsigned long nr_mfns/* Map a frame table to cover physical addresses ps through pe */ extern void setup_frametable_mappings (paddr_t ps,paddr_t pe);/* map a physical range in virtual memory */ -void __iomem *ioremap_attr (paddr_t start,size_t len,unsigned attributes); +void __iomem *ioremap_attr (paddr_t start,size_t len,unsigned int attributes);static inline void __iomem *ioremap_nocache (paddr_t start,size_t len) {
xen/arch/arm/irq.c +1 -1
@@ -631,7 +631,7 @@ void pirq_set_affinity(struct domain *d, int pirq, const cpumask_t *mask)BUG (); } -static bool irq_validate_new_type (unsigned int curr,unsigned new) +static bool irq_validate_new_type (unsigned int curr,unsigned int new) {return (curr ==IRQ_TYPE_INVALID || curr == new ); }
xen/arch/arm/kernel.c +1 -1
@@ -256,7 +256,7 @@ static __init int kernel_decompress(struct bootmodule *mod)char *output, *input;char magic[2 ];int rc; -unsigned kernel_order_out; +unsigned int kernel_order_out;paddr_t output_size;struct page_info *pages;mfn_t mfn;
xen/arch/arm/mm.c +2 -2
@@ -352,7 +352,7 @@ lpae_t mfn_to_xen_entry(mfn_t mfn, unsigned int attr) }/* Map a 4k page in a fixmap entry */ -void set_fixmap (unsigned map,mfn_t mfn,unsigned int flags) +void set_fixmap (unsigned int map,mfn_t mfn,unsigned int flags) {int res;
@@ -361,7 +361,7 @@ void set_fixmap(unsigned map, mfn_t mfn, unsigned int flags) }/* Remove a mapping from a fixmap entry */ -void clear_fixmap (unsigned map) +void clear_fixmap (unsigned int map) {int res;
Signature · 1 line
2.25.1
Re: [PATCH 1/7] xen/arm: Use unsigned int instead of plain unsigned
Hi,
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
Cheers,
Signature · 1 line
Julien Grall
PATCH 2/7 xen/domain: Use unsigned int instead of plain unsigned
In reply to Michal OrzelThis is just for the style and consistency reasons as the former is being used more often than the latter.
--- xen/common/domain.c | 2 +- xen/include/xen/domain.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
xen/common/domain.c +1 -1
@@ -1446,7 +1446,7 @@ int vcpu_reset(struct vcpu *v)* of memory, and it sets a pending event to make sure that a pending * event doesn't get missed. */ -int map_vcpu_info (struct vcpu *v,unsigned long gfn,unsigned offset) +int map_vcpu_info (struct vcpu *v,unsigned long gfn,unsigned int offset) {struct domain *d = v->domain;void *mapping;
xen/include/xen/domain.h +1 -1
@@ -65,7 +65,7 @@ void cf_check free_pirq_struct(void *);int arch_vcpu_create (struct vcpu *v);void arch_vcpu_destroy (struct vcpu *v); -int map_vcpu_info (struct vcpu *v,unsigned long gfn,unsigned offset); +int map_vcpu_info (struct vcpu *v,unsigned long gfn,unsigned int offset);void unmap_vcpu_info (struct vcpu *v); int arch_domain_create(struct domain *d,
Signature · 1 line
2.25.1
Re: [PATCH 2/7] xen/domain: Use unsigned int instead of plain unsigned
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
PATCH 3/7 xen/common: Use unsigned int instead of plain unsigned
In reply to Michal OrzelThis is just for the style and consistency reasons as the former is being used more often than the latter.
--- xen/common/grant_table.c | 6 +++--- xen/common/gunzip.c | 8 ++++---- xen/common/sched/cpupool.c | 4 ++-- xen/common/trace.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-)
xen/common/grant_table.c +3 -3
@@ -895,7 +895,7 @@ done: static int _set_status(const grant_entry_header_t *shah, grant_status_t *status, struct domain *rd, - unsigned rgt_version, + unsigned int rgt_version, struct active_grant_entry *act, int readonly, int mapflag,
@@ -1763,8 +1763,8 @@ static int gnttab_populate_status_frames(struct domain *d, struct grant_table *gt, unsigned int req_nr_frames) { - unsigned i; -unsigned req_status_frames; + unsigned int i; +unsigned int req_status_frames; req_status_frames =grant_to_status_frames (req_nr_frames);
xen/common/gunzip.c +4 -4
@@ -14,13 +14,13 @@ static memptr __initdata free_mem_end_ptr;#define WSIZE 0x80000000static unsigned char *__initdata inbuf; -static unsigned __initdata insize; +static unsigned int __initdata insize;/* Index of next byte to be processed in inbuf: */ -static unsigned __initdata inptr; +static unsigned int __initdata inptr;/* Bytes in output buffer: */ -static unsigned __initdata outcnt; +static unsigned int __initdata outcnt;#define OF (args) args
@@ -73,7 +73,7 @@ static __init void flush_window(void)* compute the crc. */ unsigned long c = crc; -unsigned n; +unsigned int n;unsigned char *in, ch; in = window;
xen/common/sched/cpupool.c +2 -2
@@ -850,7 +850,7 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op)case XEN_SYSCTL_CPUPOOL_OP_ADDCPU : { -unsigned cpu; +unsigned int cpu;const cpumask_t *cpus; cpu = op->cpu;
@@ -895,7 +895,7 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op)case XEN_SYSCTL_CPUPOOL_OP_RMCPU : { -unsigned cpu; +unsigned int cpu; c =cpupool_get_by_id (op->cpupool_id); ret = -ENOENT ;
xen/common/trace.c +1 -1
@@ -834,7 +834,7 @@ void __trace_hypercall(uint32_t event, unsigned long op,#define APPEND_ARG32 (i) \ do { \ - unsigned i_ = (i); \ + unsigned int i_ = (i); \ *a++ = args[(i_)]; \ d.op |= TRC_PV_HYPERCALL_V2_ARG_32(i_); \ } while( 0 )
Signature · 1 line
2.25.1
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
In reply to Michal OrzelQuoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
Juergen
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
In reply to Michal OrzelQuoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
It looks like this change was forgotten when merging other patches from the series.
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
Hi,
Quoted 7 lines · Michal Orzel
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>It looks like this change was forgotten when merging other patches from the series.
I noticed the same and was going to commit it yesterday night. However, it is technically missing an ack/review for trace.c (this is maintained by George).
The change is small and likely not controversial. So I guess we could do without George's review. That said, I would like to give him a chance to answer (I will commit it on Friday if there are no answer).
Cheers,
Signature · 1 line
Julien Grall
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
Hi Julien,
Quoted 9 lines · Julien Grall
Hi,
Quoted 4 lines · Michal Orzel
Quoted 3 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
Signed-off-by Michal Orzel <[email protected]>It looks like this change was forgotten when merging other patches from the series.
I noticed the same and was going to commit it yesterday night. However, it is technically missing an ack/review for
trace.c(this is maintained by George).The change is small and likely not controversial. So I guess we could do without George's review. That said, I would like to give him a chance to answer (I will commit it on Friday if there are no answer).
Just a gentle ping on this.
Cheers
Bertrand
Re: [PATCH 3/7] xen/common: Use unsigned int instead of plain unsigned
Quoted 1 line · Bertrand Marquis
Hi Julien,
Hi Bertrand,
Quoted 9 lines
Quoted 9 lines · Julien Grall
Hi,
Quoted 4 lines · Michal Orzel
Quoted 3 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
Signed-off-by Michal Orzel <[email protected]>It looks like this change was forgotten when merging other patches from the series.
I noticed the same and was going to commit it yesterday night. However, it is technically missing an ack/review for
trace.c(this is maintained by George).The change is small and likely not controversial. So I guess we could do without George's review. That said, I would like to give him a chance to answer (I will commit it on Friday if there are no answer).
Just a gentle ping on this.
Thanks for the reminder, the patch is now merged.
Cheers,
Signature · 1 line
Julien Grall
PATCH 4/7 include/xen: Use unsigned int instead of plain unsigned
In reply to Michal OrzelThis is just for the style and consistency reasons as the former is being used more often than the latter.
--- xen/include/xen/perfc.h | 2 +- xen/include/xen/sched.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
xen/include/xen/perfc.h +1 -1
@@ -49,7 +49,7 @@ enum perfcounter {#undef PERFSTATUS#undef PERFSTATUS_ARRAY -typedef unsigned perfc_t ; +typedef unsigned int perfc_t ;#define PRIperfc ""DECLARE_PER_CPU (perfc_t[NUM_PERFCOUNTERS ], perfcounters);
xen/include/xen/sched.h +1 -1
@@ -519,7 +519,7 @@ struct domain/* hvm_print_line() and guest_console_write() logging. */ #define DOMAIN_PBUF_SIZE 200char *pbuf; -unsigned pbuf_idx; +unsigned int pbuf_idx;spinlock_t pbuf_lock;/* OProfile support. */
Signature · 1 line
2.25.1
Re: [PATCH 4/7] include/xen: Use unsigned int instead of plain unsigned
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
PATCH 5/7 include/public: Use uint32_t instead of unsigned (int)
In reply to Michal OrzelPublic interfaces shall make use of types that indicate size and signedness. Take the opportunity to also modify places where explicit unsigned int is used.
--- xen/include/public/physdev.h | 4 ++-- xen/include/public/sysctl.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
xen/include/public/physdev.h +2 -2
@@ -211,8 +211,8 @@ struct physdev_manage_pci_ext {/* IN */ uint8_t bus;uint8_t devfn; -unsigned is_extfn; -unsigned is_virtfn; +uint32_t is_extfn; +uint32_t is_virtfn;struct {uint8_t bus;uint8_t devfn;
xen/include/public/sysctl.h +5 -5
@@ -624,7 +624,7 @@ struct xen_sysctl_arinc653_schedule {/* If a domain has multiple VCPUs, vcpu_id specifies which one * this schedule entry applies to. It should be set to 0 if * there is only one VCPU for the domain. */ -unsigned int vcpu_id; +uint32_t vcpu_id;/* runtime specifies the amount of time that should be allocated * to this VCPU per major frame. It is specified in nanoseconds */ uint64_aligned_t runtime;
@@ -644,18 +644,18 @@ struct xen_sysctl_credit_schedule {/* Length of timeslice in milliseconds */ #define XEN_SYSCTL_CSCHED_TSLICE_MAX 1000#define XEN_SYSCTL_CSCHED_TSLICE_MIN 1 -unsigned tslice_ms; -unsigned ratelimit_us; +uint32_t tslice_ms; +uint32_t ratelimit_us;/* * How long we consider a vCPU to be cache-hot on the * CPU where it has run (max 100ms, in microseconds) */ #define XEN_SYSCTL_CSCHED_MGR_DLY_MAX_US (100 * 1000) -unsigned vcpu_migr_delay_us; +uint32_t vcpu_migr_delay_us; };struct xen_sysctl_credit2_schedule { -unsigned ratelimit_us; +uint32_t ratelimit_us; };/* XEN_SYSCTL_scheduler_op */
Signature · 1 line
2.25.1
Re: [PATCH 5/7] include/public: Use uint32_t instead of unsigned (int)
Quoted 5 lines · Michal Orzel
Public interfaces shall make use of types that indicate size and signedness. Take the opportunity to also modify places where explicit unsigned int is used.
Signed-off-by Michal Orzel <[email protected]>
PATCH 6/7 xsm/flask: Use unsigned int instead of plain unsigned
In reply to Michal OrzelThis is just for the style and consistency reasons as the former is being used more often than the latter.
--- xen/xsm/flask/ss/avtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/xsm/flask/ss/avtab.c +1 -1
@@ -349,7 +349,7 @@ int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,struct avtab_key key;struct avtab_datum datum;int i, rc; -unsigned set; +unsigned int set;memset (&key,0 ,sizeof (struct avtab_key ));memset (&datum,0 ,sizeof (struct avtab_datum ));
Signature · 1 line
2.25.1
Re: [PATCH 6/7] xsm/flask: Use unsigned int instead of plain unsigned
Quoted 4 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>
Re: [PATCH 6/7] xsm/flask: Use unsigned int instead of plain unsigned
In reply to Michal OrzelQuoted 13 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>--- xen/xsm/flask/ss/avtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/xsm/flask/ss/avtab.c +0
-0
xen/xsm/flask/ss/avtab.c int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, · line 355
Quoted 8 lines
xen/xsm/flask/ss/avtab.c +1
-1@@ -349,7 +349,7 @@ int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,struct avtab_key key;struct avtab_datum datum;int i, rc; -unsigned set; +unsigned int set;memset (&key,0 ,sizeof (struct avtab_key ));memset (&datum,0 ,sizeof (struct avtab_datum ));
Is this not v2? Jason gave a Rb on the similar patch if I am not mistaken.
v/r,
dps
Re: [PATCH 6/7] xsm/flask: Use unsigned int instead of plain unsigned
Hi Daniel,
Quoted 21 lines · Daniel P. Smith
Quoted 19 lines · Michal Orzel
This is just for the style and consistency reasons as the former is being used more often than the latter.
Signed-off-by Michal Orzel <[email protected]>--- xen/xsm/flask/ss/avtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/xsm/flask/ss/avtab.c +1
-1@@ -349,7 +349,7 @@ int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,struct avtab_key key;struct avtab_datum datum;int i, rc; -unsigned set; +unsigned int set;
Quoted 5 lines
xen/xsm/flask/ss/avtab.c int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, · line 355
Quoted 2 lines
xen/xsm/flask/ss/avtab.c +0
-0memset (&key,0 ,sizeof (struct avtab_key ));memset (&datum,0 ,sizeof (struct avtab_datum ));Is this not v2? Jason gave a Rb on the similar patch if I am not mistaken.
No it is not. This applies to all the patches in this series that was pushed as a new one due to different justification/commit titles/commit msgs (see cover letter).
Quoted 2 lines
v/r,
dps
Cheers,
Michal
PATCH 7/7 drivers/acpi: Drop the unneeded casts to unsigned
In reply to Michal Orzel... and make use of PRIu format specifiers when applicable.
--- xen/drivers/acpi/tables/tbfadt.c | 6 +++--- xen/drivers/acpi/tables/tbutils.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-)
xen/drivers/acpi/tables/tbfadt.c +3 -3
@@ -233,9 +233,9 @@ void __init acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 lengt*/ if (length >sizeof (struct acpi_table_fadt )) {ACPI_WARNING ((AE_INFO , -"FADT (revision %u) is longer than ACPI 5.0 version," -" truncating length %u to %zu" , - table->revision, (unsigned )length, +"FADT (revision %" PRIu8") is longer than ACPI 5.0 version," +" truncating length %" PRIu32" to %zu" , + table->revision, length,sizeof (struct acpi_table_fadt ))); }
xen/drivers/acpi/tables/tbutils.c +0 -1
@@ -481,7 +481,6 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)if (ACPI_FAILURE (status)) {ACPI_WARNING ((AE_INFO ,"Truncating %u table entries!" , - (unsigned ) (acpi_gbl_root_table_list.size - acpi_gbl_root_table_list. count)));
Signature · 1 line
2.25.1
Re: [PATCH 7/7] drivers/acpi: Drop the unneeded casts to unsigned
Quoted 3 lines · Michal Orzel
... and make use of PRIu format specifiers when applicable.
Signed-off-by Michal Orzel <[email protected]>