]> git.baikalelectronics.ru Git - kernel.git/commit
headers/deps: USB: Optimize <linux/usb/ch9.h> dependencies, remove <linux/device.h>
authorIngo Molnar <mingo@kernel.org>
Fri, 2 Jul 2021 22:23:39 +0000 (00:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 15:21:44 +0000 (16:21 +0100)
commit57b53c004531e9870d0621b93218da60f18c792a
tree4a42dcb07670fd9c0da29fd93809144ba6f2f7d0
parentd8dec857c714556091b2374c6a816168ed8456af
headers/deps: USB: Optimize <linux/usb/ch9.h> dependencies, remove <linux/device.h>

The <linux/usb/ch9.h> header is used over 1,400 times in a typical distro
build, but few of its users actually need the full <linux/device.h> header.

          --------------------------------------------------------------------
          | Combined, preprocessed C code size of header, without line markers,
          | with comments stripped:
          -------------------------
  before: | #include <linux/usb/ch9.h>              | LOC:  7,078 | headers:  172
   after: | #include <linux/usb/ch9.h>              | LOC:    812 | headers:   38

Remove it and add it to the places that need it.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/ch9.h