]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net-sysfs: switch xps_queue_show() to sysfs_emit()
authorYury Norov <ynorov@nvidia.com>
Thu, 19 Mar 2026 20:17:11 +0000 (16:17 -0400)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 10:08:17 +0000 (11:08 +0100)
Switch the function to use the proper sysfs_emit("%pb").

Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Link: https://patch.msgid.link/20260319201713.941956-3-ynorov@nvidia.com
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/net-sysfs.c

index 2ce011fae2490b3bd950cf8d9089e7d71cc0fd7a..e430645748a7d1929525a721b943bcebc3119e51 100644 (file)
@@ -1739,7 +1739,7 @@ static ssize_t xps_queue_show(struct net_device *dev, unsigned int index,
 out_no_maps:
        rcu_read_unlock();
 
-       len = bitmap_print_to_pagebuf(false, buf, mask, nr_ids);
+       len = sysfs_emit(buf, "%*pb\n", nr_ids, mask);
        bitmap_free(mask);
 
        return len < PAGE_SIZE ? len : -EINVAL;