Re: [PATCH v2] ata: ahci: use hweight_long() to count port_map bits

From: Niklas Cassel

Date: Thu May 28 2026 - 02:57:45 EST


On Thu, 28 May 2026 14:00:50 +0800, kensanya@xxxxxxx wrote:
> Replace the open loop used to calculate the number of set bits
> in the port mapping with the `hweight_long()` function, which
> simplifies the code without altering its functionality.

Applied to libata/linux.git (for-next), thanks!

[1/1] ata: ahci: use hweight_long() to count port_map bits
https://git.kernel.org/libata/linux/c/b7ed008e

Kind regards,
Niklas