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

2024-07-16 Thread Louis Chauvet
Le 15/07/24 - 17:16, José Expósito a écrit : > 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 warn

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

2024-07-15 Thread Thomas Zimmermann
Hi Am 15.07.24 um 17:16 schrieb 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

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

2024-07-15 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