Re: [PATCH v2] exynos4210_gic: Suppress gcc9 format-truncation warnings

2019-11-21 Thread Richard Henderson
On 11/21/19 2:38 AM, David Gibson wrote: > exynos4210_gic_realize() prints the number of cpus into some temporary > buffers, but it only allows 3 bytes space for it. That's plenty: > existing machines will only ever set this value to EXYNOS4210_NCPUS > (2). But the compiler can't always figure th

Re: [PATCH v2] exynos4210_gic: Suppress gcc9 format-truncation warnings

2019-11-21 Thread Philippe Mathieu-Daudé
On 11/21/19 2:38 AM, David Gibson wrote: exynos4210_gic_realize() prints the number of cpus into some temporary buffers, but it only allows 3 bytes space for it. That's plenty: existing machines will only ever set this value to EXYNOS4210_NCPUS (2). But the compiler can't always figure that out

[PATCH v2] exynos4210_gic: Suppress gcc9 format-truncation warnings

2019-11-20 Thread David Gibson
exynos4210_gic_realize() prints the number of cpus into some temporary buffers, but it only allows 3 bytes space for it. That's plenty: existing machines will only ever set this value to EXYNOS4210_NCPUS (2). But the compiler can't always figure that out, so some[*] gcc9 versions emit -Wformat-tr