lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75Vc_GYzDw77deKjK5Pn9duGi0p8W4C2Z9kmVWBWK5qgETg@mail.gmail.com>
Date: Wed, 20 Aug 2025 12:52:18 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Junjie Cao <junjie.cao@...el.com>
Cc: jic23@...nel.org, linux-iio@...r.kernel.org, dlechner@...libre.com, 
	nuno.sa@...log.com, andy@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] iio: core: switch info_mask fields to unsigned long to
 match find_bit helpers

On Wed, Aug 20, 2025 at 3:48 AM Junjie Cao <junjie.cao@...el.com> wrote:
>
> for_each_set_bit()/find_*_bit() expect arrays of unsigned long (see
> include/linux/find.h), but industrialio-core passed const long * into
> iio_device_add_info_mask_type{,_avail}().
>
> These masks are used purely as bit arrays and are populated via BIT()
> (1UL << n). Switch the info_mask_* fields and the corresponding function
> parameters to unsigned long so the types match the helpers. This removes
> sparse warnings about signedness mismatches (seen with 'make C=1'
> CF='-Wsparse-all') without changing behavior or struct layout.
>
> No functional change intended.

Thanks, this is better than v1.
Reviewed-by: Andy Shevchenko <andy@...nel.org>

-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ