Skip to content

char: misc: Various cleanup for miscdevice

Zijun Hu linux-parisc lkml sparclinux 5 versions – New

Get series with b4
b4 am [email protected] change-id 20250701-rfc_miscdev-35dd3310c7c0

Versions newest first

  1. v6 Latest8 patches 0 repliesNew
  2. v58 patches 6 repliesSuperseded
  3. v48 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v38 patches0 repliesSuperseded
v29 patches2 repliesSuperseded

Changes in v6 from the cover letter

- Correct title and commit message as cascardo's suggestion for [PATCH 5/8]
- Link to v5: https://lore.kernel.org/r/[email protected]

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8char: misc: Move drivers/misc/misc_minor_kunit.c to drivers/char/drivers/char/Makefile drivers/char/misc_minor_kunit.c drivers/misc/Makefile+1 -10 replies
2/8char: misc: Adapt and add test cases for simple minor space divisiondrivers/char/misc_minor_kunit.c+21 -300 replies
3/8char: misc: Disallow registering miscdevice whose minor > MISC_DYNAMIC_MINORdrivers/char/misc.c include/linux/miscdevice.h+14 -00 replies
4/8char: misc: Add a case to test registering miscdevice again without reinitializationdrivers/char/misc_minor_kunit.c+44 -00 replies
5/8char: misc: Make misc_register() reentry for miscdevice who wants dynamic minordrivers/char/misc.c+2 -00 replies
6/8char: misc: Does not request module for miscdevice with dynamic minordrivers/char/misc.c+5 -30 replies
7/8char: misc: Register fixed minor EISA_EEPROM_MINOR in linux/miscdevice.hdrivers/parisc/eisa_eeprom.c include/linux/miscdevice.h+1 -20 replies
8/8sparc: kernel: apc: Remove macro APC_MINOR definitionarch/sparc/kernel/apc.c+1 -20 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchThadeu Lima de Souza Cascardo
1/8
2/8
3/8
4/8
5/8
6/8A-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/8] char: misc: Various cleanup for miscdevice

This patch series is to do cleanup for:

- Miscdevice APIs
- Miscdevice kunit test cases
- Drivers which use miscdevice APIs

---
Previous discussion link:
https://lore.kernel.org/all/[email protected]

---
Changes in v6:
- Correct title and commit message as cascardo's suggestion for [PATCH 5/8]
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Replace space with table in fist patch's Makefile
- Correct title and commit messages
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Fix WARNINGs reported by "kernel test robot <[email protected]>"
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Drop the change which allocates 4 fixed minors for watchdog
- Correct tile and commit message
- Link to v2: https://lore.kernel.org/r/[email protected]

---
Zijun Hu (8):
char: misc: Move drivers/misc/misc_minor_kunit.c to drivers/char/
char: misc: Adapt and add test cases for simple minor space division
char: misc: Disallow registering miscdevice whose minor > MISC_DYNAMIC_MINOR
char: misc: Add a case to test registering miscdevice again without reinitialization
char: misc: Make misc_register() reentry for miscdevice who wants dynamic minor
char: misc: Does not request module for miscdevice with dynamic minor
char: misc: Register fixed minor EISA_EEPROM_MINOR in linux/miscdevice.h
sparc: kernel: apc: Remove macro APC_MINOR definition

 arch/sparc/kernel/apc.c                   |  3 +-
 drivers/char/Makefile                     |  1 +
 drivers/char/misc.c                       | 16 +++++-
 drivers/{misc => char}/misc_minor_kunit.c | 95 +++++++++++++++++++++----------
 drivers/misc/Makefile                     |  1 -
 drivers/parisc/eisa_eeprom.c              |  2 -
 include/linux/miscdevice.h                |  9 +++
 7 files changed, 89 insertions(+), 38 deletions(-)

---
base-commit: db15ec7abd33ce245120f36be91f56f0ba0b247e
change-id: 20250701-rfc_miscdev-35dd3310c7c0

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>