kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* __devinit and __devexit removed in kernel ?
@ 2014-08-30  8:43 Raj Ravi
  2014-08-30 10:26 ` Paul Bolle
  0 siblings, 1 reply; 2+ messages in thread
From: Raj Ravi @ 2014-08-30  8:43 UTC (permalink / raw)
  To: kernelnewbies

Hi,
 __devinit and __devexit removed from recent kernel (3.10 ? )

This was helpful to save some memory (to discard from memory once
execution is done in case of __devexit).

Any specific reason why this is removed ? any pointers?

Thanks

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

* __devinit and __devexit removed in kernel ?
  2014-08-30  8:43 __devinit and __devexit removed in kernel ? Raj Ravi
@ 2014-08-30 10:26 ` Paul Bolle
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Bolle @ 2014-08-30 10:26 UTC (permalink / raw)
  To: kernelnewbies

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@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@google.com>

1) git log -1 54b956b90360
commit 54b956b903607f8f8878754dd4352da6a54a1da2
Author: Greg Kroah-Hartman <gregkh@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@virginia.edu>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Greg Kroah-Hartman <gregkh@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

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

end of thread, other threads:[~2014-08-30 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-30  8:43 __devinit and __devexit removed in kernel ? Raj Ravi
2014-08-30 10:26 ` Paul Bolle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).