Skip to content

block: sysfs cleanup for deprecated API usage

Jackie Liu linux-block 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block: convert to sysfs_emit() in blk_ia_range show()block/blk-ia-ranges.c+2 -20 replies
2/10block: convert blk-mq hw sysfs show to sysfs_emit/sysfs_emit_atblock/blk-mq-sysfs.c+10 -90 replies
3/10block: convert disk events sysfs show to sysfs_emit/sysfs_emit_atblock/disk-events.c+5 -50 replies
4/10block: convert partition sysfs show to sysfs_emit()block/partitions/core.c+5 -50 replies
5/10block: convert part_timeout_show() to sysfs_emit()block/blk-timeout.c+1 -10 replies
6/10block: convert kyber latency show to sysfs_emit()block/kyber-iosched.c+1 -10 replies
7/10block: convert bfq_var_show() to sysfs_emit()block/bfq-iosched.c+1 -10 replies
8/10block: use kstrtol() instead of sscanf() in disk_events_poll_msecs_store()block/disk-events.c+1 -10 replies
9/10block: replace simple_strtoul() with kstrtoint() in part_timeout_store()block/blk-timeout.c+7 -90 replies
10/10block: replace sscanf() with kstrtoint() in part_fail_store()block/genhd.c+9 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] block: sysfs cleanup for deprecated API usage

From: Jackie Liu <[email protected]>

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(-)
Signature · 1 line
2.51.1