Re: [PATCH] drm/i915: Explicitly cast divisor to fix Coccinelle warning

2024-07-10 Thread Ville Syrjälä
On Wed, Jul 10, 2024 at 01:55:32PM +0200, Thorsten Blum wrote: > On 10. Jul 2024, at 13:38, Ville Syrjälä > wrote: > > On Wed, Jul 10, 2024 at 09:46:51AM +0200, Thorsten Blum wrote: > >> As the comment explains, the if check ensures that the divisor oa_period > >> is a u32. Explicitly cast oa_per

Re: [PATCH] drm/i915: Explicitly cast divisor to fix Coccinelle warning

2024-07-10 Thread Thorsten Blum
On 10. Jul 2024, at 13:38, Ville Syrjälä wrote: > On Wed, Jul 10, 2024 at 09:46:51AM +0200, Thorsten Blum wrote: >> As the comment explains, the if check ensures that the divisor oa_period >> is a u32. Explicitly cast oa_period to u32 to remove the following >> Coccinelle/coccicheck warning report

Re: [PATCH] drm/i915: Explicitly cast divisor to fix Coccinelle warning

2024-07-10 Thread Ville Syrjälä
On Wed, Jul 10, 2024 at 09:46:51AM +0200, Thorsten Blum wrote: > As the comment explains, the if check ensures that the divisor oa_period > is a u32. Explicitly cast oa_period to u32 to remove the following > Coccinelle/coccicheck warning reported by do_div.cocci: > > WARNING: do_div() does a 64

[PATCH] drm/i915: Explicitly cast divisor to fix Coccinelle warning

2024-07-10 Thread Thorsten Blum
As the comment explains, the if check ensures that the divisor oa_period is a u32. Explicitly cast oa_period to u32 to remove the following Coccinelle/coccicheck warning reported by do_div.cocci: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead Signed-off-by: