Skip to content

device.h: split up into smaller pieces

Greg Kroah-Hartman lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drivers/base: base.h: add proper copyright and header infodrivers/base/base.h+11 -00 replies
2/6device.h: move devtmpfs prototypes out of the filedrivers/base/base.h include/linux/device.h+8 -40 replies
3/6device.h: move dev_printk()-like functions to dev_printk.hinclude/linux/dev_printk.h include/linux/device.h+236 -2160 replies
4/6device.h: move 'struct bus' stuff out to device/bus.hdrivers/base/bus.c include/linux/device.h include/linux/device/bus.h+290 -2640 replies
5/6device.h: move 'struct class' stuff out to device/class.hdrivers/base/class.c include/linux/device.h include/linux/device/class.h+268 -2400 replies
6/6device.h: move 'struct driver' stuff out to device/driver.hdrivers/base/driver.c include/linux/device.h include/linux/device/driver.h +1 more+295 -2720 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] device.h: split up into smaller pieces

During the 5.4-rc merge Linus complained about the size of device.h and how it can be a pain to merge things into at times. It's also become kind of a "kitchen sink" for anything related to drivers / devices / busses / classes and is the 10th largest include/linux/*.h file by size.

So let's split it up into smaller pieces, moving things out by logical parts where it can be.

Greg Kroah-Hartman (6):
drivers/base: base.h: add proper copyright and header info device.h: move devtmpfs prototypes out of the file device.h: move dev_printk()-like functions to dev_printk.h device.h: move 'struct bus' stuff out to device/bus.h device.h: move 'struct class' stuff out to device/class.h device.h: move 'struct driver' stuff out to device/driver.h

 drivers/base/base.h           |  19 +
 drivers/base/bus.c            |   1 +
 drivers/base/class.c          |   1 +
 drivers/base/driver.c         |   1 +
 include/linux/dev_printk.h    | 235 ++++++++
 include/linux/device.h        | 999 +---------------------------------
 include/linux/device/bus.h    | 288 ++++++++++
 include/linux/device/class.h  | 266 +++++++++
 include/linux/device/driver.h | 292 ++++++++++
 init/main.c                   |   2 +-
 10 files changed, 1108 insertions(+), 996 deletions(-)
 create mode 100644 include/linux/dev_printk.h
 create mode 100644 include/linux/device/bus.h
 create mode 100644 include/linux/device/class.h
 create mode 100644 include/linux/device/driver.h
Signature · 1 line
2.24.0