public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] block: sysfs cleanup for deprecated API usage
@ 2026-04-01  7:07 Jackie Liu
  2026-04-01  7:07 ` [PATCH 01/10] block: convert to sysfs_emit() in blk_ia_range show() Jackie Liu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Jackie Liu @ 2026-04-01  7:07 UTC (permalink / raw)
  To: axboe, yukuai; +Cc: linux-block

From: Jackie Liu <liuyun01@kylinos.cn>

A set of straightforward cleanups across the block layer sysfs
interfaces:

Patches 1-7 convert remaining sprintf()/snprintf() calls in sysfs
show functions to sysfs_emit()/sysfs_emit_at().

Patches 8-10 replace deprecated sscanf()/simple_strtoul() with
kstrtol()/kstrtoint() in sysfs store functions.

Jackie Liu (10):
  block: convert to sysfs_emit() in blk_ia_range show()
  block: convert blk-mq hw sysfs show to sysfs_emit/sysfs_emit_at
  block: convert disk events sysfs show to sysfs_emit/sysfs_emit_at
  block: convert partition sysfs show to sysfs_emit()
  block: convert part_timeout_show() to sysfs_emit()
  block: convert kyber latency show to sysfs_emit()
  block: convert bfq_var_show() to sysfs_emit()
  block: use kstrtol() instead of sscanf() in
    disk_events_poll_msecs_store()
  block: replace simple_strtoul() with kstrtoint() in
    part_timeout_store()
  block: replace sscanf() with kstrtoint() in part_fail_store()

 block/bfq-iosched.c     |  2 +-
 block/blk-ia-ranges.c   |  4 ++--
 block/blk-mq-sysfs.c    | 19 ++++++++++---------
 block/blk-timeout.c     | 18 ++++++++----------
 block/disk-events.c     | 12 ++++++------
 block/genhd.c           | 16 +++++++++-------
 block/kyber-iosched.c   |  2 +-
 block/partitions/core.c | 10 +++++-----
 8 files changed, 42 insertions(+), 41 deletions(-)

-- 
2.51.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-04-01  7:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01  7:07 [PATCH 00/10] block: sysfs cleanup for deprecated API usage Jackie Liu
2026-04-01  7:07 ` [PATCH 01/10] block: convert to sysfs_emit() in blk_ia_range show() Jackie Liu
2026-04-01  7:07 ` [PATCH 02/10] block: convert blk-mq hw sysfs show to sysfs_emit/sysfs_emit_at Jackie Liu
2026-04-01  7:07 ` [PATCH 03/10] block: convert disk events " Jackie Liu
2026-04-01  7:07 ` [PATCH 04/10] block: convert partition sysfs show to sysfs_emit() Jackie Liu
2026-04-01  7:07 ` [PATCH 05/10] block: convert part_timeout_show() " Jackie Liu
2026-04-01  7:07 ` [PATCH 06/10] block: convert kyber latency show " Jackie Liu
2026-04-01  7:07 ` [PATCH 07/10] block: convert bfq_var_show() " Jackie Liu
2026-04-01  7:07 ` [PATCH 08/10] block: use kstrtol() instead of sscanf() in disk_events_poll_msecs_store() Jackie Liu
2026-04-01  7:07 ` [PATCH 09/10] block: replace simple_strtoul() with kstrtoint() in part_timeout_store() Jackie Liu
2026-04-01  7:07 ` [PATCH 10/10] block: replace sscanf() with kstrtoint() in part_fail_store() Jackie Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox