From: Yury Norov Date: Thu, 19 Mar 2026 20:17:11 +0000 (-0400) Subject: net-sysfs: switch xps_queue_show() to sysfs_emit() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de69301dc2f6d4172c69c3d1c7ceaad7af89b0dc;p=thirdparty%2Fkernel%2Fstable.git net-sysfs: switch xps_queue_show() to sysfs_emit() Switch the function to use the proper sysfs_emit("%pb"). Suggested-by: Thomas Weißschuh Reviewed-by: Thomas Weißschuh Signed-off-by: Yury Norov Link: https://patch.msgid.link/20260319201713.941956-3-ynorov@nvidia.com Reviewed-by: Simon Horman Signed-off-by: Paolo Abeni --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 2ce011fae249..e430645748a7 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -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;