public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] driver core: class: remove class_compat code
@ 2024-12-03 20:08 Heiner Kallweit
  2024-12-03 20:10 ` [PATCH 1/3] driver core: class: add class_pseudo_register Heiner Kallweit
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Heiner Kallweit @ 2024-12-03 20:08 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J. Wysocki, Kirti Wankhede,
	Alex Williamson; +Cc: kvm

vfio/mdev is the last user of class_compat, and it doesn't use it for
the intended purpose. See kdoc of class_compat_register():
Compatibility class are meant as a temporary user-space compatibility
workaround when converting a family of class devices to a bus devices.

In addition it uses only a part of the class_compat functionality.
So inline the needed functionality, and afterwards all class_compat
code can be removed.

Heiner Kallweit (3):
  driver core: class: add class_pseudo_register
  vfio/mdev: inline needed class_compat functionality
  driver core: class: remove class_compat code

 drivers/base/class.c          | 89 ++++-------------------------------
 drivers/vfio/mdev/mdev_core.c | 12 ++---
 include/linux/device/class.h  |  8 +---
 3 files changed, 15 insertions(+), 94 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2025-01-13 22:10 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 20:08 [PATCH 0/3] driver core: class: remove class_compat code Heiner Kallweit
2024-12-03 20:10 ` [PATCH 1/3] driver core: class: add class_pseudo_register Heiner Kallweit
2024-12-04  9:33   ` Greg Kroah-Hartman
2024-12-04 17:04     ` Heiner Kallweit
2024-12-04 18:17       ` Greg Kroah-Hartman
2024-12-04 19:35         ` Heiner Kallweit
2024-12-03 20:11 ` [PATCH 2/3] vfio/mdev: inline needed class_compat functionality Heiner Kallweit
2024-12-04  9:32   ` Greg Kroah-Hartman
2024-12-04 17:01     ` Heiner Kallweit
2024-12-04 18:16       ` Greg Kroah-Hartman
2024-12-04 19:30         ` Alex Williamson
2024-12-06  7:35           ` Heiner Kallweit
2024-12-06  7:42             ` Greg Kroah-Hartman
2024-12-06 16:37               ` Alex Williamson
2024-12-07  8:38                 ` Greg Kroah-Hartman
2024-12-07 10:06                   ` Heiner Kallweit
2024-12-07 10:23                     ` Greg Kroah-Hartman
2024-12-12  4:42                     ` Christoph Hellwig
2024-12-12 18:12                       ` Alex Williamson
2024-12-12 18:21                         ` Greg Kroah-Hartman
2024-12-12 18:39                           ` Alex Williamson
2024-12-13 14:53                         ` Christoph Hellwig
2024-12-06 17:05               ` Heiner Kallweit
2024-12-04 19:35         ` Heiner Kallweit
2025-01-10 14:35   ` Greg Kroah-Hartman
2025-01-13 22:09     ` Alex Williamson
2024-12-03 20:12 ` [PATCH 3/3] driver core: class: remove class_compat code Heiner Kallweit
2024-12-12  4:27 ` [PATCH 0/3] " Christoph Hellwig

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