Re: [PATCH v3] drm/vkms: Fix cpu_to_le16()/le16_to_cpu() warnings

2024-08-08 Thread José Expósito
On Sun, Aug 04, 2024 at 05:46:55PM -0300, Maíra Canal wrote: > Hi José, > > On 8/4/24 14:14, José Expósito wrote: > > On Tue, Jul 16, 2024 at 06:17:26PM +0200, José Expósito wrote: > > > Building with Sparse enabled prints this warning for cpu_to_le16() > > > calls: > > > > > > warning: inco

Re: [PATCH v3] drm/vkms: Fix cpu_to_le16()/le16_to_cpu() warnings

2024-08-04 Thread Maíra Canal
Hi José, On 8/4/24 14:14, José Expósito wrote: On Tue, Jul 16, 2024 at 06:17:26PM +0200, José Expósito wrote: Building with Sparse enabled prints this warning for cpu_to_le16() calls: warning: incorrect type in assignment (different base types) expected unsigned short [usertype]

Re: [PATCH v3] drm/vkms: Fix cpu_to_le16()/le16_to_cpu() warnings

2024-08-04 Thread José Expósito
On Tue, Jul 16, 2024 at 06:17:26PM +0200, José Expósito wrote: > Building with Sparse enabled prints this warning for cpu_to_le16() > calls: > > warning: incorrect type in assignment (different base types) > expected unsigned short [usertype] > got restricted __le16 [usertype]

[PATCH v3] drm/vkms: Fix cpu_to_le16()/le16_to_cpu() warnings

2024-07-16 Thread José Expósito
Building with Sparse enabled prints this warning for cpu_to_le16() calls: warning: incorrect type in assignment (different base types) expected unsigned short [usertype] got restricted __le16 [usertype] And this warning for le16_to_cpu() calls: warning: cast to restricted