[bhnd] Fix DEFINE_CLASS_(2|3) multiple inheritance support.
authoradrian <adrian@FreeBSD.org>
Mon, 23 May 2016 03:29:43 +0000 (03:29 +0000)
committeradrian <adrian@FreeBSD.org>
Mon, 23 May 2016 03:29:43 +0000 (03:29 +0000)
commitc7d4687e20285b0f7f54aef15ceb07349e8d6c20
tree3f8d35ad12365d1fffbcef56fc244e1b8e79c3dd
parentd142cf7cea6adc20a96a0a7aa48a1c2ae61c7264
[bhnd] Fix DEFINE_CLASS_(2|3) multiple inheritance support.

This diff updates DEFINE_CLASS_2/_3 to support the specification of class
name separately from the class variable name, bringing them into sync
with their API documentation, as well as the behavior of DEFINE_CLASS_0/_1.

Nothing in the tree currently uses the _2/_3 variants, and I can't
find any references to the API outside of commits to the kobj.h
header itself; given the limitation that currently exists, I'd
be surprised if they've ever been used.

Submitted by: Landon Fuller <landonf@landonf.org>
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D6491
sys/sys/kobj.h