__devinit and __devexit removed in kernel ?

Paul Bolle pebolle at tiscali.nl
Sat Aug 30 06:26:27 EDT 2014


On Sat, 2014-08-30 at 14:13 +0530, Raj Ravi wrote:
> Any specific reason why this is removed ? any pointers?

0) git log --no-merges -1 --grep __devinit
commit 10874f5a00266343a06e95da680e8a5a383d9a80
Author: Bjorn Helgaas <bhelgaas at google.com>
Date:   Mon Apr 14 16:11:40 2014 -0600

    PCI: Remove unnecessary __ref annotations
    
    [...]
    
    But CONFIG_HOTPLUG and __devinit are now gone, and the need for the __ref
    annotations is also gone, so remove them.  Relevant historical commits:
    
      54b956b90360 Remove __dev* markings from init.h
      [...]
        
    Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>

1) git log -1 54b956b90360
commit 54b956b903607f8f8878754dd4352da6a54a1da2
Author: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Date:   Thu Jan 10 10:57:01 2013 -0800

    Remove __dev* markings from init.h
    
    Now that all in-kernel users of __dev* are gone, let's remove them from
    init.h to keep them from popping up again and again.
    
    Thanks to Bill Pemberton for doing all of the hard work to make removal
    of this possible.
    
    Cc: Bill Pemberton <wfp5p at virginia.edu>
    Cc: Stephen Rothwell <sfr at canb.auug.org.au>
    Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>

2) git log --no-merges --author Pemberton --grep __devinit
[256 commits]

Apparently all this had to do with the removal of the Kconfig symbol
HOTPLUG. Which was done in commit 40b313608ad4 ("Finally eradicate
CONFIG_HOTPLUG").

Hope this helps.


Paul Bolle




More information about the Kernelnewbies mailing list